event_id
and occur within a short time window, TikTok will count only one conversion.Follow this guide to set up Event Deduplication on TikTok and enable hybrid tracking correctly.function() {
return 'tt_evt_' + Date.now() + '_' + Math.floor(Math.random() * 100000);
}
window.dataLayer.push({
event: 'purchase',
event_id: 'tt_evt_1721456789123_45678',
// ...other parameters
});
Parameter name: event_id
Value: {{DLV – event_id}}
Create a data layer variable for event_id in the server container.
Add the event_id to your TikTok Events API HTTP Request payload:json
{
"event": "Purchase",
"event_id": "{{event_id}}",
"timestamp": {{Timestamp}},
// ...user_data and custom_data
}
Consistency:
Always generate and assign the event_id at the moment of the user action—before any tags fire.
Parameter Naming:
Use the exact parameter name event_id in both Pixel and Events API implementations.
Uniqueness:
Ensure your event_id is unique per event to avoid accidental deduplication of separate actions.
Debugging:
Regularly monitor deduplication in TikTok Events Manager and resolve mismatches promptly.