Interactive by Nature

Adobe Analytics Serialize Event With Variable Value

Monday, May 2nd, 2016

NOTE: This post assumes you know a lil somethin’ somethin’ about Adobe Analytics, formally known as Omniture.

Recently I had the need to serialize an event with the value of a DTM Data Layer. Doing an internet search did not bring up anything nor was Adobe Analytics Methods of Event Serialization documentation helpful. Serializing an event is pretty straight forward.

Here’s the syntax for serializing an event:

s.events="[event]:[serial number]"

If you need to serialize an event with the value of a variable, here’s the code for that:

var myVariable = digitalData.someInfo.somethingSpecific;
s.linkTrackEvents='event1';
s.events='event1:'+myVariable;

Posted in Analytics, Code, Development | No Comments »