Expand my Community achievements bar.

SOLVED

Event Serialization Not Working

Avatar

Level 2

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!

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi @LGalliers ,

 

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";

 

 

 

View solution in original post

10 Replies

Avatar

Employee Advisor

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.

Avatar

Level 1

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.

 

Screen Shot 2020-12-08 at 8.41.34 PM.png

Avatar

Community Advisor

@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

Avatar

Level 8

@LGalliers 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?

Avatar

Level 1

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.

Avatar

Level 8

I would recommend double-checking the s.linkTrackVars and s.linkTrackEvents values. You should see "events" in the former, and the event number (eg: "event99") in the latter. If you see the serialization in s.linkTrackEvents, the event won't be included on the call.

Using "event99" and a serialized ID of "123456789" as examples, I would expect the following:

s.events = "event99:123456789";
s.linkTrackVars = "events"; // and any other variables you need
s.linkTrackEvents = "event99";

 

Avatar

Level 10
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?

Avatar

Correct answer by
Level 3

Hi @LGalliers ,

 

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";

 

 

 

Avatar

Level 8
@Uditgupta1 - The purchaseID belongs in s.linkTrackVars, not s.linkTrackEvents. Otherwise, your code example looks good.

Avatar

Level 3
@Brian_Johnson_ Thanks for the correction by mistake if wrote it in s.linkTrackEvents