Pinterest Tag and Conversions API: Event and Deduplication QA
A Pinterest Checkout event should represent a completed transaction. If a browser Tag and a server integration both describe that transaction, they need a coordinated event identity so Pinterest can recognize the overlap. Begin by defining the business action, then inspect the two delivery paths. A successful request alone cannot tell you whether you measured the right action once.
This guide gives marketers and developers a shared event contract and four reproducible QA scenarios. It follows a website journey from PageVisit to AddToCart to Checkout, with Lead as a separate service-business alternative. The examples use synthetic identifiers and contain no executable tracking code, tokens or customer data. Actual account responses and Events Manager observations are NOT_RUN until someone records them.
Define the action before the event name
Pinterest’s event-code guide distinguishes completed transactions from adding to a cart and viewing a primary page. It also lists InitiateCheckout separately from Checkout. Therefore, a button labelled “Checkout” is not enough evidence that a Checkout event should fire.
For the fictional shop in this guide, the business definition is: the order system has confirmed a successfully paid order. A payment attempt, a rejected payment and opening the checkout form do not meet that definition. Your actual order workflow may differ, so record the precise authoritative state and the component that confirms it.
For AddToCart, specify whether success means the server accepted an item and quantity into the cart. A click that fails because a variant is unavailable should not look like a successful addition merely because the button was pressed. For PageVisit, identify the pages and navigation behavior that the measurement covers.
For a service business, define Lead as the chosen confirmed expression of interest—for example, a valid enquiry accepted by the form system. Distinguish that from a submit-button click, an invalid form and a page view. This is your business rule; the platform event label does not choose the rule for you.
Write the rule in language both teams can test: “When this state occurs, emit this event; when these near-miss states occur, do not emit it.” Include the owner of that state. This gives QA a way to detect early firing before anyone begins discussing dashboard totals.
Keep Tag and API names in separate columns
Pinterest’s Conversions API reference guide maps Tag event names to API names. The browser snippets and API payload do not use identical spelling for every event. Keep the mapping explicit rather than copying the Tag label into event_name.
| Intended action | Tag label | Browser event string in documented examples | API event_name |
|---|---|---|---|
| Primary page viewed | PageVisit | pagevisit |
page_visit |
| Cart addition succeeds | AddToCart | addtocart |
add_to_cart |
| Transaction completes | Checkout | checkout |
checkout |
| Defined interest action succeeds | Lead | lead |
lead |
Browser strings are illustrated in Pinterest’s Tag event examples. This table is a mapping aid, not a complete implementation. The developer must use the current schema and the installed integration’s supported configuration for the actual request.
Also record where each path originates. A commerce plugin, a tag manager and a custom confirmation-page snippet may all send similar events. List them before adding another integration. Otherwise, the new setup can produce a third copy while the team investigates only the browser/server pair it intended to create.
Give one occurrence one shared identity
An event ID identifies an occurrence, not a person or an event type. In the DEMO, DEMO-CHECKOUT-A identifies one completed fictional order. Its browser and server copies use the same value. Another order uses DEMO-CHECKOUT-B, even if the same fictional shopper placed both.
Pinterest documents matching event IDs across corresponding Tag and API events for deduplication, and its developer guide also identifies the event name in that coordination. The Tag accepts documented case-sensitive aliases for its ID field; the worksheet uses event_id consistently. See event codes and the API deduplication guidance.
Choose the identity at a point both paths can reference. For a purchase, the order system can provide a stable non-personal identifier or mapping. For a non-purchase action, the integration needs a shared occurrence identifier. Generating an unrelated random string independently in the browser and server defeats the intended match.
Document retry and reload behavior too. A delivery retry for the same completed order should preserve its identity. A second real order needs a different identity. Avoid a hard-coded sample ID, a single ID for an entire visitor session or a new purchase ID every time the thank-you page renders.
Platform deduplication is one part of the design. The application should also know whether the business action actually happened and whether a notification is a retry. Do not rely on a thank-you URL alone as proof of a new transaction. A bookmarked page, browser back action or delayed payment callback can otherwise produce misleading activity.
Reconcile value, currency and items before sending
Make the event contract trace each value to a source field. For the DEMO order, the merchandise amount is USD 40.00 for two units of DEMO-ITEM-01. Those are invented exercise values, not a transaction or revenue claim.
The current API guide describes custom_data.value as a pre-tax, pre-shipping amount, accepted as a string, with currency supplied alongside it. The Tag examples use numeric value and a different item structure. Do not treat the two payloads as interchangeable objects. Source: API product parameters and Tag event data.
Ask the developer to explain discount treatment and the exact field used for the total. Then compare both paths for the same occurrence. If the browser sends a merchandise subtotal and the server sends a total including shipping, deduplication does not resolve that semantic conflict. The retained event would still depend on a path whose amount may not match your contract.
Map product IDs to the identifiers used by the intended product source. Do not substitute display names for IDs because they look more readable. Include variant handling where it applies, and distinguish an order identifier from an event identifier even when the implementation intentionally derives one from the other.
The worksheet records parameter locations but omits user-data payloads. Production authentication, permitted data handling, consent and identifier requirements belong in the authorized integration design. Keep tokens and personal data out of public examples and shared QA screenshots; do not hard-code an opt-out choice into a generic snippet.
Validate a request without confusing it with reporting
Pinterest’s event-testing instructions describe the endpoint with test=true and the Test Events view. Use the current official request schema through the approved integration, then capture the response status, per-event result and warnings. The worksheet provides evidence fields without pretending to send a request.
The developer guide says test events go to a sandbox and are not processed for reporting or optimization. Consequently, a successful Test Events observation does not establish a production reporting or deduplication result. Keep those stages separate in the record. Source: API test events.
Review the response body as well as the HTTP status. A request-level response can contain information about individual events, and warnings can identify incomplete data. Preserve the relevant redacted output with the exact test time and build version so a developer can reproduce the issue.
For any later controlled production observation, use the account owner’s approved procedure and distinguish it from sandbox data. Do not silently turn a synthetic exercise into a real charge or an unlabelled production conversion. The article and working forms are usable before that observation; unperformed steps simply remain NOT_RUN.
Run four tests that expose different mistakes
1. One completed checkout
Create one permitted test transaction through the chosen test environment. Confirm the authoritative completion state first. Inspect whether the expected browser and server paths describe the same action, amount, currency and items. If the event appears before completion, fix the trigger before evaluating duplication.
The expected logical result is one transaction. The observed request count can be greater than one because two ingestion paths may intentionally represent it. Record both concepts instead of calling every second request an extra sale.
2. Reload the confirmation page
Reload or revisit the confirmation page for that same order. The expected purchase count does not increase. A new PageVisit may be appropriate under your page-view rule, but that does not make a second Checkout appropriate.
If another checkout notification is emitted as a delivery retry, inspect whether it preserves the original occurrence identity and whether the integration’s retry design is correct. Do not “fix” the problem by globally suppressing all events after one visit; that could hide a legitimate later purchase.
3. Send the browser and server copies
For one controlled occurrence, compare the Tag and API copies side by side. Confirm the mapped event type and identical occurrence ID, then compare their meaningful data. Review the account’s deduplication evidence when an eligible observation is available. A matching string in source code is necessary evidence, but it is not the observed platform outcome.
4. Complete two distinct orders
Use two separate permitted test orders with different occurrence IDs. The expected business result is two transactions, with each order’s browser/server pair coordinated independently. This catches the opposite error: an overly broad shared ID that makes distinct purchases look like duplicates.
Use Events Overview to explain what was observed
Pinterest documents Event ID Coverage and Rate of duplicate events removed within the Deduplication view. The described view covers Pinterest Tag and Conversions API events. Record the event type, selected interval and observed values; do not extend that view’s result to every possible ingestion source. Source: event testing and deduplication.
Coverage answers whether IDs are present. It does not prove that two corresponding paths used the same ID or that Checkout represented a completed order. A high duplicate-removal rate also needs context: intentional overlap and an accidental duplicate installation are different explanations.
Keep technical receipt, logical event correctness, deduplication and campaign attribution as separate checks. For aggregate discrepancies, the clicks-versus-GA4-sessions guide explains why different counters should not be forced into equality. A correctly received conversion is not automatically a conversion attributed to a particular ad.
Downloads and implementation handoff
Hand off a failed row with the expected action, actual business state, timestamp, event type and ID, redacted request/response evidence, integration version and next owner. That is enough to begin a focused investigation without exposing customer records.
Pinterest’s Conversions API overview describes a server integration requiring its own setup; access does not automatically grant access to the wider API. Likewise, Pinterest promotion services and advertising promotion services have their own stated scopes. Keep ordered Pin activity separate from the verified website actions and native campaign reporting in this QA record.