Event Serialization | Community
Skip to main content
Level 4
June 25, 2019
Solved

Event Serialization

  • June 25, 2019
  • 3 replies
  • 3356 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Andrey_Osadchuk

Hi Dinesh,

Yes, that's correct.

3 replies

Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
June 25, 2019

Hi Dinesh,

Yes, that's correct.

Level 2
June 25, 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.html​. "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

Level 2
June 25, 2019

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

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