Event serialization is the process of implementing measures to prevent duplicate events from entering Analytics reporting. De-duplicating events is important in cases where you don’t want metrics inflated by visitors refreshing the page.
Data Sources does not support event serialization or de-duplication.
You must first set an event’s Unique Event Recording to Use Event ID in report suite settings. See Success Events in the Admin user guide.
When using event IDs, de-duplication happens on the following levels:
event1:ABC
and event2:ABC
are both counted in reporting.event1:ABC
then visitor B also sends event1:ABC
, Adobe ignores the second instance from visitor B.event1:ABC
then comes back 2 years later and sends event1:ABC
again, Adobe ignores the second instance.If you want to de-duplicate the purchase
event, use the purchaseID
variable instead.
You can set the event ID field either while configuring the Analytics extension (global variables) or as an action in a rule.
Valid values are alpha-numeric characters up to 20 bytes in length.
Event serialization is part of the s.events
variable. Assign an ID to each event using a colon in the string.
// Assign custom ID serialization to a single value
s.events = "event1:ABC123";
// Assign custom ID serialization to multiple values
s.events = "event1:ABC123,event2:ABC123";
If an event has serialization enabled but does not contain a serialization ID, the event is always counted.