Purchase Event, Serialization and purchaseID in DTM

Avatar

Avatar
Springboard
Level 7
jeff_bloomer
Level 7

Likes

146 likes

Total Posts

222 posts

Correct reply

16 solutions
Top badges earned
Springboard
Validate 10
Validate 1
Contributor
Shape 1
View profile

Avatar
Springboard
Level 7
jeff_bloomer
Level 7

Likes

146 likes

Total Posts

222 posts

Correct reply

16 solutions
Top badges earned
Springboard
Validate 10
Validate 1
Contributor
Shape 1
View profile
jeff_bloomer
Level 7

26-10-2017

Something I've found to be a little less than intuitive, and even less documented, is how to properly fire the purchase event in DTM to get proper serialization.  The UI in DTM allows you to fire the purchase event, but my question is this: How do I ensure the event is serialized in the same way it would be in a traditional JavaScript call?  In other words, in JavaScript, I would fire the s.purchase event and then fire s.purchaseID=orderID.

My assumption is that if I were to serialize the purchase event in the DTM User Interface with %orderID% would not result in s.purchaseID receiving the same value.  Is that correct?  I know someone out there has done this before, it's just a matter of implementing the proper process.

Thanks in advance!

Jeff

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Employee
Kaushalendra
Employee

Likes

65 likes

Total Posts

142 posts

Correct reply

69 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Kaushalendra
Employee

Likes

65 likes

Total Posts

142 posts

Correct reply

69 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Kaushalendra
Employee

27-10-2017

Hi Jeff,

Your understanding is absolutely correct. If you use Data Element to serialize the purchase event, it won't update the purchaseID variable. Also, there is no field to populate the s.purchaseID in DTM tools/rules.

Hence, to set s.purchaseID you would have to rely on script statement as mentioned below:

s.purchaseID = _satellite.getVar("orderID")

You would need to have this statement under "Custom Page Code" of Adobe Analytics section in the rule preferable in the one which populates the purchase event.

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
Level 7
jeff_bloomer
Level 7

Likes

146 likes

Total Posts

222 posts

Correct reply

16 solutions
Top badges earned
Springboard
Validate 10
Validate 1
Contributor
Shape 1
View profile

Avatar
Springboard
Level 7
jeff_bloomer
Level 7

Likes

146 likes

Total Posts

222 posts

Correct reply

16 solutions
Top badges earned
Springboard
Validate 10
Validate 1
Contributor
Shape 1
View profile
jeff_bloomer
Level 7

27-10-2017

Much appreciated.  Meanwhile, it would be extremely helpful if this information were provided in the Help documentation for DTM implementation.  I spent quite a while looking to make sure I wasn't missing anything before posting to the forum.