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
BedrockMission!

Learn more

View all

Sign in to view all badges

Event Serialization Not Working

LGalliers
Level 2
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!

10 Replies
ishans52004352
Employee
Employee

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
Level 1
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

yuhuisg
Community Advisor
Community Advisor

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

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

evolytics_brian
Community Advisor
Community Advisor

@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?
erinm23058054
Level 1
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.

evolytics_brian
Community Advisor
Community Advisor

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

 

jantzen_belliston-Adobe
Community Manager
Community Manager
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?
Uditgupta1
Level 2
Level 2

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

 

 

 

evolytics_brian
Community Advisor
Community Advisor
@Uditgupta1 - The purchaseID belongs in s.linkTrackVars, not s.linkTrackEvents. Otherwise, your code example looks good.
Uditgupta1
Level 2
Level 2
@evolytics_brian Thanks for the correction by mistake if wrote it in s.linkTrackEvents