Skip to main content

Event deduplication limit

The SDK caches recent event deduplicationId values to avoid sending duplicate events. Configure the cache size with eventDeduplicationListLimit in initSdk.

Parameter

ParameterTypeDescription
eventDeduplicationListLimitnumberNumber of recent deduplication IDs to remember. Default is 10. Must be a positive number.

Example

Adtrace.initSdk({
appToken: '{YourAppToken}',
environment: 'sandbox',
eventDeduplicationListLimit: 20,
});

Track events with deduplication IDs

Pass deduplicationId on individual events. See Track events.

Adtrace.trackEvent({
eventToken: '{YourEventToken}',
deduplicationId: 'order-12345',
});

Keep the limit reasonable. Very large values increase memory use without much benefit for most apps.