Configuration

Snapchat Ads & Conversions API Setup

Configure Snapchat Snap Pixel and Snapchat Conversions API (CAPI) in a hybrid tracking layout. Send accurate storefront interactions and transaction milestones directly from your Shopify server to Snapchat.

Deduplication and Server-Side Recovery

Snapchat tracking is highly sensitive to mobile browser constraints, adblockers, and browser-level cookie deprecation. Integrating Snapchat's Conversions API recovers lost sales by transmitting checkout completions and basket additions directly from TrakIt's server.

To prevent double-counting, TrakIt attaches matching event_id tokens to both client browser triggers and server-side webhook payloads. Snapchat's server matches these IDs and dedupes the actions, preserving clean attribution statistics.

Additionally, TrakIt automatically bundles customer first-party parameters (like emails, phone numbers, and IP addresses) alongside browser identifiers inside Conversions API payloads to maximize Snapchat's Event Match Quality rating.


Step-by-Step Configuration Guide

Step A: Retrieve Your Snap Pixel ID

  1. Log into your Snapchat Ads Manager dashboard.
  2. Open the main menu and select Events Manager.
  3. Locate your web source and copy your 36-character Pixel ID (e.g. abc12345-6789-0xyz-abcd-1234567890ab).
  4. Paste the ID into TrakIt's Pixel ID field under the Configuration panel.

Step B: Generate Conversions API Access Token

  1. Inside Snapchat Events Manager, select your pixel source and navigate to Settings.
  2. Locate the **Conversions API** token creation section.
  3. Click Generate Token and copy the generated key string.
  4. Paste it into the Api Access Token field inside TrakIt.
  5. Click Save.

Configuration Lock Behavior

Note that in TrakIt, the **Save** buttons under the *Event Selection* and *Settings* cards are disabled initially. They will unlock for editing once you have successfully entered and saved your Pixel ID and Access Token in the *Configuration* card.

Step C: Google Tag Manager (GTM) Container Sync

To load Snap Pixel web triggers onto storefront pages, the tracking tag configuration must be synced with your Google Tag Manager (GTM) workspace:

Automatic GTM Import (Recommended)

If your Google Account is connected to TrakIt, all Snapchat Ads events and tag configurations will be imported automatically into your GTM container via GTM API. There is no need to download or upload container files manually.

If your Google account is not connected, you must download the container JSON file from TrakIt's right-hand sidebar and import it manually:

How to import manually into GTM:

  1. Open your Google Tag Manager workspace.
  2. Go to AdminImport Container.
  3. Upload the downloaded container file.
  4. Choose Merge.
  5. Click Confirm to integrate the tag configurations.

* Note: Since we automatically import the tags into the container when the Google account is connected, there is no need to manually import it.


Offered Events Mapping

TrakIt supports the following standard events for Snapchat Ads. Check the boxes to activate Web or Server reporting for each event:

Event NameTrigger DescriptionServerWeb
Page ViewCustomer loads any page on your storefront.-
View ContentCustomer opens a product detail page.-
SearchCustomer executes a storefront search query.-
Add to BasketCustomer adds a product to their shopping cart.
Start CheckoutCustomer clicks to begin Shopify checkout.
PurchaseCustomer completes payment and finishes the checkout.

Granular Settings & Parameters

The **Settings** panel at the bottom of the left column provides customization options for your parameter data feeds:

Order Identifier

Define the order ID sent to Snapchat. Select between **Transaction ID** (recommended), **Order Number**, or **Order Name**.

Product Identifier

Align item catalog matches with your Snapchat catalog. Choose **Product ID**, **Variant ID**, or **SKU**.

Exclude Sales Channels

Filter out specific non-storefront orders from triggering Conversions API payloads. Select channels like Recharge, Point of Sale (POS), or Shopify Draft Orders.

Conversion Value Adjustments

Set checkable toggles to exclude taxes or shipping costs, or deduct discount values from order total amounts.


Testing Server Events via Test Code

Snapchat Ads settings in TrakIt include a dedicated **Test Code** input field under the Settings panel. This lets you route and verify Snapchat Conversions API payloads inside Events Manager in real-time:

  1. Log into Snapchat Ads Manager and navigate to the Events Manager screen.
  2. Select your Web Pixel source, and click on the Test Events tab at the top.
  3. Copy the generated alphanumeric test code.
  4. Paste the code into TrakIt's Test Code text field in the settings card.
  5. Click Save Settings.
  6. Perform testing behaviors on your Shopify storefront (e.g. click a product, add to cart, or start checkout).
  7. Verify inside Snapchat's *Test Events* console that server-side payloads are immediately received, displaying Conversions API as the connection method.

Remove Test Code After Testing

Always clear the Test Code field and click **Save Settings** once you have confirmed event delivery. Leaving a test code active in production will route merchant conversions to the test log stream.


Unlinking & Tag Deletion

To remove the integration:

  1. Click Disconnect in the Disconnect panel.
  2. TrakIt automatically triggers an API removal run on your Tag Manager workspace to clean up Snapchat Ads tags and parameters. (If you are in manual setup mode, you will need to delete these variables inside GTM yourself).