Event Serialization Not Working | Community
Skip to main content
Level 2
December 8, 2020
Solved

Event Serialization Not Working

  • December 8, 2020
  • 5 replies
  • 3530 views

Hi all,

 

I'm trying to serialize an event, transactions actually, and whenever I set the eventID the event isn't passed in the call off to Adobe Analytics. I've also tried using purchaseID both set in transactionID in the rule and set using custom code and neither of those approaches works so I'm trying to see if a custom success event will work.

 

If I take the event ID out the event is sent but that doesn't really do what I need.

 

TIA!

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 Uditgupta1

Hi @lgalliers-1 ,

 

For s.tl() call if you are using transactionID or purschaseID event for trigger than you need to define them in s.linkTrackVars like:-

 

 

s.events = "event1:123456789"; s.purchaseID = "234322323"; s.linkTrackVars = "events,purchaseID"; s.linkTrackEvents = "event1";

 

 

 

5 replies

Adobe Employee
December 8, 2020

Success Event should work. Can you please check and ensure that the syntax is correct? Also, the settings are correctly chosen in the Analytics UI.

erinm23058054
December 9, 2020

I am facing the same issue. I am trying to serialize using Launch. Whenever I keep cart ID in the Event ID, the event doesn't fire. When I remove the event ID the event fire accurately. Adobe analytics configuration are also correct, Unique event recording is chosen through event ID.

 

yuhuisg
Community Advisor
Community Advisor
December 9, 2020

@erinm23058054is it possible that %cartID% is returning "null" or "undefined" or a blank string?

Never mind, I saw your reply in @brian_johnson_'s comment

Brian_Johnson_
Level 8
December 9, 2020

@lgalliers-1 and @erinm23058054 - What kind of call are you sending?

  • If s.t(), assuming the data element you're using for the ID has a value, it should just work. If not, if you can provide more detail (call type, rule config, etc), someone here can likely offer more guidance.
  • if s.tl(), are you able to confirm that 1) the data element has a value and 2) the s.linkTrackVars and s.linkTrackEvents are populated correctly?
erinm23058054
December 9, 2020

I am sending s.tl() and I was able to confirm that data element has value. I haven't written any custom code to set s.linkTrackVars and s.linkTrackEvents so I dont think those could be set incorrectly. I am however using Search Discovery's product string extension later. However, I dont think any of these should matter, because if I remove the event ID, the event is passed correctly in the call, but if I keep it, this particular event is not send in the call. If there was any issue with s.linkTrackVars and s.linkTrackEvents then call should have affected other variables and event that are getting send on the call. Interestingly, only this event is affected among all the other events and evars on the call.

jantzen_b
Adobe Employee
Adobe Employee
January 5, 2021
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?
Uditgupta1Accepted solution
Level 3
January 6, 2021

Hi @lgalliers-1 ,

 

For s.tl() call if you are using transactionID or purschaseID event for trigger than you need to define them in s.linkTrackVars like:-

 

 

s.events = "event1:123456789"; s.purchaseID = "234322323"; s.linkTrackVars = "events,purchaseID"; s.linkTrackEvents = "event1";

 

 

 

Brian_Johnson_
Level 8
January 6, 2021
@uditgupta1 - The purchaseID belongs in s.linkTrackVars, not s.linkTrackEvents. Otherwise, your code example looks good.