Snapchat's Conversions API lets you send your web, mobile, and offline events to Snapchat via a S2S (server-to-server) integration. You can then leverage this data to optimize your Snapchat ad campaigns and measure user conversions effectively.
RudderStack supports Snapchat Conversion as a destination where you can send your event data seamlessly.
Getting started
Before configuring Snapchat Conversion as a destination in RudderStack, verify if the source platform is supported by referring to the table below:
Connection Mode | Web | Mobile | Server |
---|---|---|---|
Device mode | - | - | - |
Cloud mode | Supported | Supported | Supported |
Once you have confirmed that the source platform supports sending events to Snapchat Conversion, follow these steps:
- From your RudderStack dashboard, add the source. Then, from the list of destinations, select Snapchat Conversion.
- Assign a name to your destination and click Continue.
Connection settings
To successfully configure Snapchat Conversion as a destination, configure the following settings:
- API Token: Enter your API token generated from your Snapchat dashboard.
- Pixel ID: Enter your Snap Pixel ID. This is required for sending the web and offline events.
- Snap App ID: Enter your Snapchat App ID. This is required for sending the app events.
- App ID: Enter the unique ID associated with your application. This is required for sending the app events.
For more information, refer to the Conversions API reference.
- Map your events with Snapchat Standard Events: Enter the event name and select the corresponding Snapchat standard event from the dropdown to be triggered when that event is called.
- Enable Event Deduplication: Enable this setting to deduplicate the events. If enabled, you need to enter the following:
- Deduplication key: Enter the field/property name to be mapped to a standard Snapchat Conversion property
client_dedup_id
, using which Snapchat Conversion deduplicates the events.
- Deduplication key: Enter the field/property name to be mapped to a standard Snapchat Conversion property
Track
The track
event lets you capture user events along with the properties associated with them.
RudderStack tracks and sends the web, mobile, and offline events to Snapchat via the conversion
endpoint.
A sample track
call is shown below:
rudderanalytics.track("Order Completed", { order_id: "1234", currency: "USD", products: [{ product_id: "345676543", price: 7.99 }, ],}, { context: { traits: { email: "alex@example.com", phone: "+1-202-555-0146"
} }})
email
phone
idfa
ip
anduserAgent
RudderStack checks the eventConversionType
event property to determine the type of event to send to Snap Conversion (web, mobile, or offline) as specified below:
web -> "WEB",mobile -> "MOBILE_APP",mobile_app -> "MOBILE_APP",offline -> "OFFLINE"
If eventConversionType
is not found in the event, RudderStack checks if channel
is present. If channel
is absent too, RudderStack automatically sets eventConversionType
to OFFLINE
.
An example highlighting the use of eventConversionType
is shown below:
rudderanalytics.track("Products Searched", {query: "HDMI cable",eventConversionType: "mobile"});
RudderStack tracks the following properties and maps them to the corresponding Snapchat Conversion properties:
RudderStack property | Snapchat Conversion property |
---|---|
properties.order_id properties.checkout_id | transaction_id |
context.page.url properties.url | page_url |
properties.event | event_type |
properties.event_tag | event_tag |
properties.eventConversionType | event_conversion_type |
properties.quantity | number_items |
properties.currency | currency |
properties.category | category |
properties.query | search_string |
properties.products.price properties.price properties.value properties.revenue | price |
properties.product_id properties.products.product_id | item_ids |
properties.SignUpMethod properties.sign_up_method | sign_up_method |
properties.client_dedup_id | client_dedup_id |
Event mapping
RudderStack maps the following ecommerce events to the corresponding Snapchat Conversion events:
RudderStack event | Snapchat Conversion event |
---|---|
Products Searched | SEARCH |
Product List Viewed | VIEW_CONTENT |
Promotion Viewed | AD_VIEW |
Promotion Clicked | AD_CLICK |
Product Viewed | VIEW_CONTENT |
Product Added | ADD_CART |
Checkout Started | START_CHECKOUT |
Payment Info Entered | ADD_BILLING |
Order Completed | PURCHASE |
Product Added to Wishlist | ADD_TO_WISHLIST |
RudderStack does not map the following events and passes their properties as is, without any modification:
SIGN_UP
APP_OPEN
APP_INSTALL
SAVE
SUBSCRIBE
COMPLETE_TUTORIAL
INVITE
LOGIN
SHARE
RESERVE
ACHIEVEMENT_UNLOCKED
SPENT_CREDITS
RATE
START_TRIAL
LIST_VIEW
PAGE_VIEW
FAQ
Where can I find the Conversions API token?
To get your Snap Conversions API token, follow these steps:
- Go to your Snap Ads Manager account.
- Click Create Ads option in the top left section of the dashboard and go to Business Details > Conversions API Tokens. You will find all the API tokens associated with your account listed here.
- To generate a new Conversions API token, click Generate Token.
Where can I find the Pixel ID associated with my account?
To get your Snap Conversions Pixel ID, follow these steps:
- Go to your Snap Ads Manager account.
- Click Create Ads option in the top left section of the dashboard and go to Events Manager.
- Then, click Setup Snap Pixel. You will see the following options:
- Select Pixel Code and click Continue.
- You will see the Snap Pixel ID at the top left of the resulting window, as shown:
Where can I find the App ID associated with my application?
To get your Snap Conversions Pixel ID, follow these steps:
- Go to your Snap Ads Manager account.
- Click Create Ads option in the top left section of the dashboard and go to Apps. You will find the App ID associated with all your apps listed here.
To add a new app, follow these steps:
- Click Add an App.
- You can either create a new Snap App ID or importing an existing App ID.
- Then, enter your App Name and the relevant app ID/URL depending on your app's platform.
- Finally, add any postbacks and click Continue to finish the setup.
Contact us
For more information on the topics covered on this page, email us or start a conversation in our Slack community.