Advanced Deduplication: Event ID
All events can now be deduplicated using the event ID parameter
You can now prevent duplicate events by using the event ID parameter. This ID helps ensure that the same event isn’t tracked multiple times.
Requirements
Your event ID must be at least 4 characters long, but it’s best to make it longer and truly unique, such as using a generated value or order number. This reduces the chance of accidental deduplication between unrelated events.
Deduplication Period: 30 Days
When checking for duplicates, the system looks back 30 days. If another event with the same event ID is found within that time frame, it won’t be tracked again.
Event-Specific Deduplication
Deduplication works per event name. In other words, the same event ID can exist across different event names without conflict. Because of this, you can in practice even use event ID similarly to a session identifier, it then limits each event name as a unique event per session.
Event ID Takes Priority
The event ID is the first thing the system checks for duplicates. This means that even if other identifiers (like email, cookies, or fingerprints) differ, events with the same event ID will still be treated as duplicates.
Code Example
tlq('track', 'Purchase', {value: 25.5, currency: 'EUR', eventId: 'order_2239'});