Applying context data to List Vars | Community
Skip to main content
emily_adams
April 10, 2017
Solved

Applying context data to List Vars

  • April 10, 2017
  • 1 reply
  • 1488 views

We are looking at updating analytics on a page that has multiple images within a scroll module, and want to track these elements individually within a page load.

We were looking at using List vars for tracking views for each individual image that appears within the module. As an example, we would use the list variable to say list1=image33, image21, image18, image83, image38, image69, image78, image4; and set 'event4=1' and define event4 as image view.

We'd like more details about that image also applied for reporting, so for example the first image in the module is image33. We would like to apply context data to that stating that image is for product=tree_oak and then image 21 would have context data of product=tree_elm and so on. 

Can context data be applied to individual value in a list var? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bruno.brandao

Hi Emily
One possible solution is to classify the list variable (or prop list if you don't need to see conversion) with name and description. 

Template: list1 = name_image1|description_image1, name_image2|description_image2, name_image3|description_image3

Example: list1 = image33|tree_oak, image43|tree_elm, image77|tree_abc

At the AA you can create 2 classifications for list1: Image Name and Image Description. You'll have something like this: 


Hope this help you :)

Regards,
Brandão.

1 reply

bruno.brandaoAccepted solution
Level 2
April 11, 2017

Hi Emily
One possible solution is to classify the list variable (or prop list if you don't need to see conversion) with name and description. 

Template: list1 = name_image1|description_image1, name_image2|description_image2, name_image3|description_image3

Example: list1 = image33|tree_oak, image43|tree_elm, image77|tree_abc

At the AA you can create 2 classifications for list1: Image Name and Image Description. You'll have something like this: 


Hope this help you :)

Regards,
Brandão.