Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Event Serialization

dinesh_kumar_r
Level 5
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
Andrey_Osadchuk
Correct answer by
Community Advisor
Community Advisor

Hi Dinesh,

Yes, that's correct.

View solution in original post

0 Replies
Andrey_Osadchuk
Correct answer by
Community Advisor
Community Advisor

Hi Dinesh,

Yes, that's correct.

View solution in original post

ntaillet
Level 2
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

stephenr6438258
Level 3
Level 3

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

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