Snapchat CAPI
Tag setup

Snapchat CAPI tag setup

As detailed in our documentation, the integration of Snapchat CAPI has become an imperative for advertisers. It is currently the most effective solution for maximizing the number of conversions attributed to your advertising campaigns. If implementing Snapchat CAPI seems complex, don't worry, the tag developed by Addingwell will simplify the process considerably! Follow our detailed guide to the optimal configuration of Snapchat CAPI...

Import Snapchat CAPI tag

Download Snapchat CAPI tag

Click here (opens in a new tab) to download the Snapchat Conversion API tag and click on the download icon to retrieve the file.

Download Snapchat CAPI Addingwell tag

Import tag into sGTM

Go to the Templates tab of the server container, then, in the Tag templates section, click on New.

Create a new tag for Snapchat CAPI Addingwell

Then click on the three small dots in the top right-hand corner, and select Import.

Import Snapchat CAPI Addingwell tag

Save the new imported tag

Then select the newly uploaded template.tpl file, and click Save.

Save Snapchat CAPI Addingwell tag

Configuring the Snapchat CAPI tag

Create a new tag in Google Tag Manager Server-Side and select the newly created Snapchat CAPI tag.

To configure the tag, two pieces of information are required:

Once you've retrieved the access token and pixel ID, configure the Snapchat CAPI tag.

Configuring the Snapchat CAPI tag

Event Name Setup Method

Setup MethodDescription
Inherit from clientTell the tag to map between GA4 events received from the client-side container and standard Snapchat events.
OverrideMatch GA4 events to what needs to be sent to Snapchat. Choose to send either a standard event or a custom event (CUSTOM_EVENT_[1-5]).

Access Token

Enter here the access token retrieved in Business Settings.

Pixel ID

Enter the pixel ID retrieved from Business Settings or Event Manager.

Test Events

Check this box only for test sending events to Snapchat

⚠️

It's not advisable to keep this box checked in the Snapchat Conversion API tag in production. Remember to uncheck it before publishing your server container.

Triggering the Snapchat CAPI tag

Trigger the Snapchat CAPI tag on relevant GA4 events using the tag mapping table.

For example, for an e-commerce site, the following events are typically used:

Event name
page_view
view_item_list
view_item
add_to_cart
begin_checkout
add_payment_info
purchase
💡

This list of events is of course not exhaustive and depends on your situation.

For optimal organization, create a Lookup Table variable configured as follows:

Setting up a lookup table in Google Tag Manager Server-Side

In the Snapchat CAPI tag, create a custom trigger verifying that the events come from GA4 (Client Name = GA4) and that the previously configured Lookup Table returns true.

Configuring a custom trigger in Google Tag Manager Server-Side

Congratulations, you've completed the configuration of Addingwell's Snapchat CAPI tag.

Snap Pixel setup (Optional)

As explained in our documentation, the Snap Pixel remains the most effective solution when third-party cookies are still available (especially on browsers like Chrome). If deduplicating events between Snap Pixel and Snapchat CAPI seems complex, don't worry, we'll explain it all in this documentation.

In this documentation, we'll assume that you've already configured the Snap Pixel tag, and that all that's left is for you to handle deduplication with the event ID.

Add event id to Snap Pixel

In addition to your usual Snap Pixel tag configuration, you need to add the client_deduplication_id parameter in the Additionnal Initialization Data section.

Additionnal Initialization Data section in the Snap Pixel

Click on Add Row, then enter client_deduplication_id in the Key field.

Add client_deduplication_id key in Snap Pixel

For the Value field, click on the LEGO to the right of the field and create a new variable. Click on Discover more variable types in the Community Template Gallery to access the variable template gallery. Then select the Event Id variable from mbaersch.

Variable Event Id de mbaersch

Then click on Add to workspace.

Variable Event Id de mbaersch

Here is the result after this configuration:

Deduplication configured in Snap Pixel

Event id added to GA4 events

We're now going to do the same thing for all GA4 events that are common with those sent to Snapchat via the Snap Pixel.

For the Google tag

Deduplication configured in Snap Pixel

For a GA4 event tag

Deduplication configured in the Snap Pixel

Triggering the Snap Pixel tag

For deduplication to work properly on the Snapchat side, it's necessary to trigger your Snapchat events from the same triggers used for GA4.

Similar triggers between Snap Pixel and GA4

Next step

Now that you've finished configuring the Addingwell Snapchat CAPI tag and Snap Pixel, it's time to check received data.

Did this page help you?