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

Usage of ContextData

Avatar

Avatar
Validate 25
Level 3
laetizia_w
Level 3

Likes

32 likes

Total Posts

91 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
laetizia_w
Level 3

Likes

32 likes

Total Posts

91 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
laetizia_w
Level 3

23-05-2018

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Gigazelle
Employee

Likes

470 likes

Total Posts

1,947 posts

Correct Reply

739 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile

Avatar
Coach
Employee
Gigazelle
Employee

Likes

470 likes

Total Posts

1,947 posts

Correct Reply

739 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile
Gigazelle
Employee

30-05-2018

contextData variables don't differentiate between dimensions and event values until after you create a processing rule for them. On the Context Data Variables help page, there is a reliable way to get contextdata variable in link tracking image requests:

s.contextData['myco.value'] = "some value";

s.linkTrackVars = "contextData.myco.value";

s.tl(true,"o","Link Name");

Answers (0)