Event Serialization

Avatar

Avatar

dinesh_b_kumar_

Avatar

dinesh_b_kumar_

dinesh_b_kumar_

25-06-2019

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Andrey_Osadchuk

MVP

Avatar

Andrey_Osadchuk

MVP

Andrey_Osadchuk
MVP

25-06-2019

Hi Dinesh,

Yes, that's correct.

Answers (2)

Answers (2)

Avatar

Avatar

ntaillet

Avatar

ntaillet

ntaillet

25-06-2019

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

Avatar

stephenr6438258

Avatar

stephenr6438258

stephenr6438258

25-06-2019

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

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