PostHog’s Snapchat Ads Conversions destination sends selected PostHog events to Snap’s Conversions API v3 at https://tr.snapchat.com/v3/{pixel_id}/events. (+) Connect your Snapchat account and Pixel ID, then configure matching data and event mappings. Two fixes need particular attention: capture Snap’s ScCid explicitly, and edit the destination’s source code so it sends the Event ID you configure.
Snap needs more than an event name: the original conversion time, page context, matching identifiers, and a shared event ID determine how the event can be matched and deduplicated.
Use this setup when PostHog already records the conversions you want Snapchat to optimize for. Send the leads, signups, checkouts, trials and purchases that you deliberately use for ad optimization; leave out autocaptured clicks, pageviews, scroll events, field interactions and low-intent behavioral events.
For the prerequisites shared by all six platforms and a comparison of their destinations, see our overview of PostHog’s ad destinations.
What You Need Before You Start
Before creating the destination, make sure you have:
- access to the relevant PostHog project
- a Snapchat Business account with access to the Pixel’s organisation
- a Snapchat Pixel ID for web events
- PostHog conversion events that meet the checks below
- person or event properties for matching
- a decision on whether the Snap Pixel also fires in the browser; Snap recommends that web advertisers run the Conversions API alongside the Pixel (+)
- consent logic that permits sending these identifiers to Snapchat
This guide focuses on the common web destination flow through a Pixel ID. Although Action source offers MOBILE_APP, the stock template cannot build valid app events: it uses the Pixel endpoint and omits the required app_data. (+ / +)
Step 1: Confirm the PostHog Events You Actually Want to Send
Start in PostHog, not Snapchat.
Choose the exact events that represent conversion moments. If those moments are not defined yet, start with our event tracking plan guide.
| Business action | Example PostHog event | Snapchat event name |
|---|---|---|
| Lead submitted | lead_submitted | CUSTOM_EVENT_1 |
| Signup completed | signup_completed | SIGN_UP |
| Checkout started | checkout_started | START_CHECKOUT |
| Trial started | trial_started | START_TRIAL |
| Purchase completed | purchase_completed | PURCHASE |
Map each source event to the Snapchat event that describes the same action. (+)
Before mapping an event, verify it in PostHog:
- it fires once per real conversion
- it fires at the right business moment
- it is not triggered by internal testing or preview traffic
- it has a stable unique ID, such as an order ID, lead ID, transaction ID, or generated event ID
- it has useful person or event properties for matching
- purchase events have value and currency
For a subscription funnel, this can mean sending checkout from the website, then trial and purchase from a billing webhook. Use the checkout ID for that checkout action and the provider’s transaction ID for each trial or payment; a user ID alone cannot distinguish successive conversions.
Step 2: Capture Snapchat Click ID and Browser Context
Snap appends ScCid to ad landing URLs; its help examples also show scCid. (+) Send its value as sc_click_id; Snap can also extract it from event_source_url while that URL still contains the parameter. (+)
PostHog’s JavaScript SDK captures lowercase sccid and matches query keys case-sensitively. It therefore does not populate sccid or $initial_sccid from Snap’s ScCid parameter. It also does not read the Pixel’s _scid cookie. (+ / +)
After posthog.init, and only once your consent logic permits storing the advertising identifier, register it under a separate name:
// Snap appends ScCid (or scCid); PostHog only reads lowercase sccid.
const snapClickId = [...new URLSearchParams(location.search)]
.find(([key]) => key.toLowerCase() === 'sccid')?.[1];
if (snapClickId) posthog.register({ snap_click_id: snapClickId });Use snap_click_id rather than registering sccid: PostHog’s campaign properties can contain sccid: null, which overrides a registered value on events in the landing tab. (+)
Then replace the destination’s default sc_click_id mapping, {person.properties.sccid ?? person.properties.$initial_sccid}, with one expression for browser and backend events alike. User data is shared by every mapping in the destination, so the expression reads the event’s registered value first, then the value saved on the person, then PostHog’s lowercase properties: (+)
{event.properties.snap_click_id ?? person.properties.snap_click_id ?? person.properties.sccid ?? person.properties.$initial_sccid}Registered super properties accompany browser events; they do not automatically accompany events sent by your server. Once the SDK has loaded and you know the buyer’s userId, copy the stored value to the person before the conversion: (+)
const savedSnapClickId = posthog.get_property('snap_click_id');
if (savedSnapClickId) {
posthog.identify(userId, { snap_click_id: savedSnapClickId });
}Backend conversions then find the saved value through the same expression; alternatively, send the click ID on the server event itself as snap_click_id. The capture and persistence rules are covered in our ad URL parameters guide.
The destination has no sc_cookie1 field by default. If the Snap Pixel runs, also send its first-party _scid cookie as sc_cookie1, without hashing; Snap strongly recommends it. (+)
After the Pixel has created the cookie, and consent permits reading it, register it in the same way:
const snapCookie = document.cookie.split(';')
.map(value => value.trim())
.find(value => value.startsWith('_scid='))?.slice(6);
if (snapCookie) posthog.register({ snap_cookie1: snapCookie });Add sc_cookie1 to User data with {event.properties.snap_cookie1 ?? person.properties.snap_cookie1}, and copy the cookie value to the person at identification, as with the click ID, so backend conversions find it.
The purchase event may not naturally carry the original browser IP, user agent, URL, or click ID unless you stored those values earlier. A backend or billing event can carry the sending server’s IP instead of the visitor’s, and lack a browser user agent. Preserve the visitor’s $ip, $raw_user_agent and page URL before the webhook arrives; our guide to saving the visitor’s IP on the person shows how. (+)
A destination reads person properties as they are when PostHog processes the conversion. An identify() or $set that arrives later cannot fill that destination run. Identify before capture, or put the required values directly on the conversion event; the email and phone expressions in Step 4 read the event first. (+)
Step 3: Create the Snapchat Ads Conversions Destination in PostHog
- In PostHog, open Destinations and click New destination.
- Search for Snapchat Ads Conversions and click + Create.
- Connect your Snapchat Business account and add the Pixel ID.
- Configure the inputs and filters below before enabling live traffic.
The Snapchat account connection uses OAuth. Connect a user who can access the Pixel’s organisation; PostHog refreshes the token, so you do not need to generate a long-lived token for this destination. (+ / +)

The destination is Experimental, can change, and has no official customer support for unexpected issues. Plan around PostHog’s warning of 10 events per second, shown in the settings screenshot below, and verify delivery yourself. (+)

A new destination starts with 11 mappings, including Page viewed → PAGE_VIEW, and sends one event per request. Delete mappings you will not use, starting with Page viewed, before enabling. Keep pageviews and other high-volume events out of this destination, and check its logs after traffic spikes. (+ / +)
The destination has four settings; the first three are required: (+)
| Setting | What to configure |
|---|---|
Snapchat account | Required account connection. |
Pixel ID | Required Pixel receiving the website events. |
User data | Required dictionary of customer and browser identifiers. |
Test Event Mode | Optional payload validation through /events/validate. Enable it for the first tests, then turn it off for production. |
Step 4: Map User Data for Snapchat Matching
For web events, include at least one matching route: hashed email (em), hashed phone (ph), or client_ip_address and client_user_agent together. (+)

The defaults SHA-256-hash em, ph, fn, ln, ct, st, zp, country and external_id. They send sc_click_id, IP and user agent raw. These are the sources they read: (+)
| Snapchat field | Default PostHog source |
|---|---|
em / ph | person. / person. |
fn / ln | person. / person. |
ct / st | person. / person. |
zp / country | person. / person. |
external_id | person., PostHog’s person UUID |
sc_click_id | person.; replace as in Step 2 |
client_ip_address / client_user_agent | event. / event.; remap to stored visitor context for backend events |
Normalize first, hash second. Trim and lowercase email; send phone as digits including the country code, without a leading 00 or a national trunk zero. Do not hash IP address or user agent. Lowercase names and cities and remove punctuation; remove city spaces too. Lowercase postal codes and remove spaces and hyphens; use only the first five digits for US ZIP codes. Use lowercase state codes and two-letter country codes. (+)
The default email expression is {sha256Hex(lower(person.properties.email))}. It does not trim whitespace. Replace it with this expression. It uses the conversion event’s email when that is not blank, otherwise the person’s, and never hashes an empty address:
{not empty(trim(toString(event.properties.email ?? ''))) ? sha256Hex(lower(trim(toString(event.properties.email)))) : (not empty(trim(toString(person.properties.email ?? ''))) ? sha256Hex(lower(trim(toString(person.properties.email)))) : null)}The default phone expression is {not empty(person.properties.phone) ? sha256Hex(replaceAll(person.properties.phone, '+', '')) : null}. It removes only +. This replacement reads the event’s phone first, then the person’s, and hashes the first one stored in E.164 form, without its +:
{match(toString(event.properties.phone ?? ''), '^[+][1-9][0-9]{6,14}$') ? sha256Hex(replaceAll(toString(event.properties.phone), '+', '')) : (match(toString(person.properties.phone ?? ''), '^[+][1-9][0-9]{6,14}$') ? sha256Hex(replaceAll(toString(person.properties.phone), '+', '')) : null)}A number stored without its country code, or with spaces and other characters, is left out, so store the E.164 form where you collect it.
Review the optional name and location fields too: lowercasing alone does not remove punctuation, and GeoIP values are not a customer’s supplied billing or shipping address. Map normalized customer values when you have them, or omit fields you cannot prepare correctly.
The default external_id hashes PostHog’s person UUID. It matches a browser identifier only if the Pixel sends the same underlying value with the corresponding hashing. If you use your app’s user ID, map that ID consistently across both integrations; hashing two different IDs does not make them match.
Step 5: Map the Snapchat Event Fields
Each mapping sends these fields: (+)
| Field | What to send |
|---|---|
event_name | The supported Snapchat name for the conversion. |
event_time | The conversion timestamp; the template uses Unix seconds. |
action_source | WEB for the website conversions covered here. |
event_source_url | Required website URL, including https:// or http://. |
event_id | A stable conversion ID; the source edit in Step 7 is needed to send it. |
user_data | The matching fields configured in Step 4. |
custom_data | Purchase value, currency, order ID and relevant product context. |
The Event source URL default is {event.properties.$current_url}. For backend events without it, the template sends null, which fails Snap’s required-field validation. Map a saved page URL on the event or person, such as {event.properties.conversion_page_url ?? person.properties.conversion_page_url}, or the checkout URL associated with that conversion. (+ / +)
For PURCHASE, send a numeric order total as value and its supported ISO 4217 currency code as currency, both inside custom_data. Use the amount in that currency; convert cents or other minor units before mapping. Include order_id for purchase deduplication. (+)
The value default is {toFloat(event.properties.price ?? event.properties.value ?? event.properties.revenue)}, so price takes precedence even if it means a single item’s price in your schema. Map the total deliberately. Currency reads {event.properties.currency} with no fallback; require the actual order currency rather than inserting a fixed one.

Step 6: Add Filters So Only Real Conversions Are Sent
Create one mapping per conversion action in the same destination. For each mapping, filter by the exact PostHog event and the properties its payload needs. Keep overlapping filters from sending the same conversion twice. (+)
| Conversion | Example mapping conditions |
|---|---|
| Signup | signup_completed and a conversion ID is set. |
| Checkout | checkout_started and checkout ID and product ID are set. |
| Trial | trial_started and the provider’s transaction ID is set. |
| Purchase | purchase_completed and transaction ID, numeric order total and currency are set. |
Apply the matching-data and consent conditions to every mapping. A browser SDK opt-out stops browser capture (+); it does not stop your server or billing provider sending events. Record permission in a property such as ads_consent = true, include it on backend conversions, and require it in the destination’s filters. (+)
Switch on Filter out internal and test users in Global filters, using the exclusions in our internal-user filtering guide. Defining the project’s list does not activate it on this destination. Inline person-property filters work here; cohorts with behavioral conditions can make destination filters fail. (+)
Also exclude:
- internal team email domains
- agency users
- localhost URLs
- staging domains
- QA events
- preview traffic
- events missing all Snapchat matching fields
- events missing value or currency when the Snapchat event is
PURCHASE

The stock template silently skips events with no non-empty em, ph, or IP-and-user-agent pair: no request, skip message or error. PostHog still counts the run as succeeded, so a success metric alone cannot prove delivery. (+ / +)
When editing the destination’s source, optionally add this one line immediately before the return inside that existing matching-data guard. Hog’s print becomes an info log, making skipped runs visible without logging personal data. (+)
print('Skipped Snapchat event: no email, phone, or IP plus user agent')Step 7: Set Up Deduplication if the Snap Pixel Is Also Running
If the Snap Pixel and CAPI send the same conversion, use these pairs. The Pixel ID and event name must match, and each pair’s IDs must be identical, including casing and whitespace. (+)
| Browser Snap Pixel | Snapchat CAPI v3 | Window |
|---|---|---|
client_dedup_id | event_id at the event’s top level | 48 hours |
transaction_id | custom_data. for PURCHASE | Up to 30 days |
When both pairs are present, the cross-channel pair takes precedence; the purchase order pair is a fallback. Its 30-day matching window does not extend the 7-day event-age rule in Step 8.
The stock PostHog template never reads its Event ID input, and it sends event_id only inside custom_data, not at the top level where Snap’s deduplication pair expects it. Changing the Event ID field without the code edit changes nothing in the request. (+)
Open Show source code in the destination and add 'event_id': inputs.eventId, beside event_name. The edited lines should be: (+)
'event_name': inputs.eventType,
'event_id': inputs.eventId,
'action_source': inputs.actionSource,Practical rule: generate or reuse one stable conversion ID at the moment of conversion, then pass the same value to the browser Pixel event and the PostHog-to-Snapchat CAPI event.
Set Event ID to the property carrying that ID, for example {event.properties.conversion_id}, instead of the default {event.uuid}. PostHog’s event UUID cannot match the browser Pixel unless you explicitly give both integrations that same value. On PURCHASE, also set custom_data.order_id to the Pixel’s transaction_id.
For a purchase, the same order ID travels through both integrations: (+)
// The Snap Pixel and PostHog send the same order ID.
snaptr('track', 'PURCHASE', {
client_dedup_id: order.id,
transaction_id: order.id,
price: order.total,
currency: order.currency,
});
posthog.capture('purchase_completed', {
conversion_id: order.id,
order_id: order.id,
value: order.total,
currency: order.currency,
});In the destination, Event ID reads {event.properties.conversion_id}, which the source edit above sends as the top-level event_id, and Custom data’s order_id reads {event.properties.order_id}.
Good deduplication IDs:
- order ID
- transaction ID
- lead ID
- checkout ID
- generated UUIDv4 created at conversion time
Bad deduplication IDs:
- session ID reused across many actions
- user ID reused across many purchases
- placeholder strings like
{{order_id}} null,undefined,NA- a new random ID generated separately on the server
If the Snap Pixel sends client_dedup_id = abc123 and CAPI sends event_id = xyz789, Snapchat cannot deduplicate them through that pair.
Step 8: Handle Timestamps Carefully
Send the time the conversion happened and plan for a maximum age of 7 days. (+)
Most web events can use the original PostHog event timestamp. The default is {floor(toUnixTimestamp(event.timestamp))}, which sends Unix seconds. (+)
Be more careful with backend, subscription, and billing events. Some systems send lifecycle events with timestamps that refer to purchase time, renewal time, entitlement time, or provider processing time. Choose the field that records the conversion you are sending.
| Event source | Timestamp recommendation |
|---|---|
| Web signup or checkout | Use the original PostHog event time. |
| Trial started from billing provider | Use the actual trial-start time; guard against a future-dated provider value. |
| Purchase or renewal from billing provider | Use the purchase or renewal time. A current-processing-time fallback is only for an invalid or future-dated provider timestamp on a conversion happening now. |
| Backfilled historical events | Keep their original times. Do not send events outside the 7-day limit or re-date old conversions to make them pass. |
For provider timestamps, a useful guard is: if the mapped event_time is in the future, cap it at the current send time. This is a fallback for a bad provider timestamp; correct the source clock or timestamp field as well.
Put the guard in the mapping’s Event time expression; it needs no source-code edit. If your provider’s purchase_time property holds Unix seconds, use: (+)
{toInt(event.properties.purchase_time) > toInt(toUnixTimestamp(now())) ? toInt(toUnixTimestamp(now())) : toInt(event.properties.purchase_time)}This guard only caps future values. It leaves old timestamps untouched and does not repair an invalid timestamp; validate those before the event reaches the destination.
Step 9: Test Before Sending Live Traffic
Enable Test Event Mode for payload validation. It switches the request to /events/validate; the template raises an error containing Snap’s response body for HTTP statuses of 400 or higher, but does not display successful response bodies or their warnings. (+)
Validation checks construction without creating a production conversion. Snap retains test-event logs for the past 24 hours and shows test events in Events Manager; a validated payload does not prove matching or deduplication. (+)
- Trigger one signup, checkout, trial or purchase path at a time.
- Confirm the event appears in PostHog, matches exactly one intended mapping, and passes consent and internal-user filters.
- Inspect the mapped payload: event name, Pixel ID, timestamp, source URL, top-level event ID, user data, order value and currency.
- Check destination logs for errors and the optional skip message, then inspect the test event in Snap Events Manager.
- Once validation passes, turn Test Event Mode off and send one controlled real conversion. If the Pixel also runs, send that same conversion through both integrations.

Check the live result separately at each stage:
| Outcome | Where to check | What it establishes |
|---|---|---|
| Delivery | PostHog destination logs and receipt in Snap Events Manager | A request was sent and the event reached Snap; exclude silent skips. |
| Matching | Signal Readiness in Snap Events Manager (+) | How effective the identifiers are likely to be at matching; this is not proof that a particular event matched. Missing click IDs show as a “Click ID return rate” recommendation. (+) |
| Deduplication | The event’s Diagnostics in Snap Events Manager | Pixel and CAPI carry the same IDs and their duplicate submissions are recognised. |
| Attribution | Snap Ads Manager campaign reporting (+) | Whether Snap credits an ad for the conversion; receipt alone does not establish that. |
Allow up to 24 hours before assessing the deduplication diagnostics. Open the Pixel and the event’s Diagnostics in Events Manager, then check both identifier pairs where applicable. (+)
Success looks like:
- the event is sent only once from PostHog
- Snapchat accepts the payload
- matching fields are present
- purchase value and currency are present when required
- browser and server events deduplicate when both are running
- no internal or staging events are sent
Recheck logs after launch and after any tracking change. If source conversions continue but nothing reaches Snapchat, check the destination’s status as well: PostHog quarantines a destination that keeps failing and eventually disables it. (+) Reconcile source conversions with sent events and Snap’s results; our conversion tracking audit covers how to investigate discrepancies.
Frequently asked questions
Do I need a Snapchat Pixel ID?
Yes, for this web destination. If your site already uses the Snap Pixel, reuse its Pixel ID for CAPI so both integrations send to the same asset. (+)
Can I send subscription or billing events from PostHog to Snapchat?
Yes, for web subscription conversions, once each billing event carries the visitor’s stored context and its own transaction ID. Step 8 covers provider timestamps.
What happens if an event is missing email or phone?
It can still be sent if it has both the visitor’s IP address and user agent. Without either email, phone or that pair, the template returns without sending. A click ID or Pixel cookie alone does not pass its matching gate. (+)
Does Test Event Mode prove that deduplication works?
No. It validates a test payload without creating a production conversion. Turn it off for a controlled live conversion sent by both the Pixel and CAPI, then inspect deduplication in Events Manager after its diagnostics have updated. (+)
