Requirements
Using this requires either PostHog Cloud with the data pipelines add-on, or a self-hosted PostHog instance running a recent version of the Docker image.
You'll also need access to the relevant Snapchat Business account.
Installation
In PostHog, click the Data pipeline tab in the left sidebar.
Click the Destinations tab.
Search for Snapchat Ads Conversions and select the destination.
Connect your Snapchat Business account at the configuration step.
Visit the Snapchat Business Manager.
- If you’ve already set up a Pixel for your website, we recommend that you use the same Pixel ID for your browser and server events.
- To create a new Pixel, click Pixels and then click Create Pixel button.
- Choose a name for your Pixel, and then click Create.
- Go to your Pixel by clicking Pixels and then click the Pixel you want to use.
- Copy the Pixel ID.
- If you’ve already set up a Pixel for your website, we recommend that you use the same Pixel ID for your browser and server events.
Back in PostHog, add the Pixel ID to the destination configuration.
Set up your event and property filters to remove unnecessary events. You only want to send events that are conversions. Filter out unrelated events or ones missing required data.
Press Create & enable, test your destination, and then watch your conversions get sent to Snapchat Ads.
Configuration
Option | Description |
---|---|
Snapchat account Type: integration Required: True | |
Pixel ID Type: string Required: True | You must obtain a Pixel ID to use the Conversions API. If you’ve already set up a Pixel for your website, we recommend that you use the same Pixel ID for your browser and server events. |
User data Type: dictionary Required: True | A map that contains customer information data. See this page for options: https://developers.snap.com/api/marketing-api/Conversions-API/Parameters#user-data-parameters |
Event Type Type: string Required: True | Check out this page for possible event types: https://businesshelp.snapchat.com/s/article/pixel-direct-implementation |
Event ID Type: string Required: True | This field represents a unique identifier chosen to represent an event |
Event time Type: string Required: True | A Unix timestamp in seconds indicating when the actual event occurred. You must send this date in GMT time zone. |
Event source URL Type: string Required: True | The URL of the web page where the event took place. |
Action source Type: choice Required: True | This field allows you to specify where your conversions occurred. Knowing where your events took place helps ensure your ads go to the right people. |
Custom data Type: dictionary Required: True | A map that contains custom data. See this page for options: https://developers.snap.com/api/marketing-api/Conversions-API/Parameters#custom-data-parameters |
Test Event Mode Type: boolean Required: False | Use this field to specify that events should be test events rather than actual traffic. You'll want to disable this field when sending real traffic through this integration. |
FAQ
Is the source code for this destination available?
PostHog is open-source and so are all the destination on the platform. The source code is available on GitHub.
Who maintains this?
This is maintained by PostHog. If you have issues with it not functioning as intended, please let us know!
What if I have feedback on this destination?
We love feature requests and feedback. Please tell us what you think.
What if my question isn't answered above?
We love answering questions. Ask us anything via our community forum.