I am having some regular questions using context data,numeric events and event-serialization.
For example I am having a page where I would like to track a numeric event as context data. How would I need to implement this:
s.contextData['EventJobDetails'] = "5";
s.t()
In case I would like to track that info into a link would it look like this?
s.linkTrackVars="events"
s.linkTrackEvents="contextData.EventJobDetails=5"
s.t() //
<a href="test.php" onClick="s=s_gi('rs1');s.eVar1='value C';s.events='';s.tl(this,'o')">test</a>
Would this now record the value 5 for the link? or do I have to do it differntly? When leaving " what does this mean?
Or would I do it like this?
s.linkTrackVars="events"
s.linkTrackEvents="contextData.EventJobDetails=5"
s.t() //
<a href="test.php" onClick="s=s_gi('rs1');s.eVar1='value C';s.events='contextData.EventJobDetails=5';s.tl(this,'o')">test</a>
Another question:
When using ContextData within the Data Insertion API how would I be able to use merchandise evars for a product and numeric events:
Would it be like this?
<EventJobDetails>5</JeventJobDetails>
<events>EventJobDetails=5</events>
Is this correct?
But what about the product variable in case I want to include an evar on product level:
<product>Sports;Ball;1;5.95;EventJobDetails=5;JobDetails= Jobs;JobsDetailSection: New, Toys; Top;1;1.99</product>
Plus what if I would need to inlcude an event-serialization within the data insertion API, would it just look lik this:
<EventCategory>5:1235566 </EventCategory>
Same question for EventSerialization and using Product varaibles in Apps and on Websites. How would I create this?
cdata["&&events"]="event1:122566"
and for product:
cdata["&&products"]="SKU1,;SKU2");
But how would it look like for the appmeasruement using contextdata on regular websites?