Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Event Serialization

Avatar

Level 5

Hi Team,

If we do event serialization with products variable, then order count, order value, quantity & order value will be counted only once even if there is multiple confirmation page refresh?

s.purchaseID = "uniqueCode";

s.products = ;shoe;1;100;

s.events = 'purchase';

Thanks,

Dinesh

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Dinesh,

Yes, that's correct.

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hi Dinesh,

Yes, that's correct.

Avatar

Level 2

Hi,

Andrey is right. And every additional event you send in the same server call (beacon / hit) is serialized.

Please check with the documentation: https://docs.adobe.com/help/en/analytics/implementation/javascript-implementation/event-purchase.htm...​. "The purchaseID variable serializes all events passed in the variable s.events, and overrides any serialization value for events. If purchaseID is left blank, each instance of the purchase event, even page reloads, is counted."

And beware purchaseID is limited to 20 characters.

Nicolas

Avatar

Level 3

s.purchaseID should do the job without having to serialize an event...

Unless you're using some random number for s.purchaseID?