Send events to Snapchat’s Conversion API using RudderStack cloud mode.
6 minute read
After you have successfully instrumented Snapchat Conversion as a destination in RudderStack, follow this guide to correctly send your events to Snapchat in cloud mode by leveraging their Conversions API.
You must generate the events at least 28 days before for them to be eligible for reporting via the Conversions API.
Find the open source transformer code for this destination in the GitHub repository.
Track
You can use the track event to capture user actions along with their associated properties and send this information to Snapchat.
Note that:
RudderStack tracks and sends the web, mobile, and offline events to Snapchat via their v3 endpoint (https://tr.snapchat.com/v3/{ID}/events), where {ID} is the Advertiser ID associated with your Snapchat business account.
It uses Bearer authentication leveraging the Snap API token for authenticating all requests. OAuth is not supported currently.
RudderStack recommends passing at least one of the following fields to send a track event to Snapchat successfully:
email
phone
idfa
ip and userAgent
You can also send the eventConversionType property in your track events to determine the type of event to send to Snapchat (web, mobile, or offline).
Snapchat event type
eventConversionType property value
WEB
web
MOBILE_APP
mobile / mobile_app
OFFLINE
offline
Make sure to specify the exact property values.
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:
traits.firstName traits.firstname traits.first_name context.traits.firstName context.traits.firstname context.traits.first_name Transformed and sent as hashed value by RudderStack.
user_data.fn
traits.lastName traits.lastname traits.last_name context.traits.lastName context.traits.lastname context.traits.last_name Transformed and sent as hashed value by RudderStack.
user_data.ln
traits.address.city context.traits.address.city Transformed and sent as hashed value by RudderStack.
user_data.ct
traits.email context.traits.email properties.email Transformed and sent as hashed value by RudderStack.
user_data.em
traits.phone context.traits.phone properties.phone Transformed and sent as hashed value by RudderStack.
user_data.ph
traits.gender context.traits.gender Transformed and sent as hashed value by RudderStack.
user_data.ge
traits.state context.traits.state Transformed and sent as hashed value by RudderStack.
user_data.st
traits.country context.traits.country Transformed and sent as hashed value by RudderStack.
user_data.country
Click the relevant event to understand how RudderStack tracks the event properties and maps them to the corresponding Snapchat Conversion properties:
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.