How to add additional text to variable data into data passed by extension such as jQuery onHandler

Bronze Contributor
Bronze Contributor

Use Case for clarity:
I want to track an event with google analytics when a user views a page with a certain jQuery Selector.

What I want the end result to look like in format category,action,label:
Screenview, (s1) ascreen, (s1) product

Challenge: All data points with the exception of product are text, product is a UDO variable. So how to I append in this extension "(s1)" to the front of the value?

2 REPLIES 2

How to add additional text to variable data into data passed by extension such as jQuery onHandler

Employee Emeritus

Hi @chris_meek,

 

Say you'ved mapped "ga_label" a UDO variable for to Google Analytics Event Label.  You can use a Set Data Value extension and set it to the following:


Screen Shot 2015-10-20 at 9.46.44 PM.png

 

You can use this in a variation of scenarios.  Is this what you are trying to accomplish?

How to add additional text to variable data into data passed by extension such as jQuery onHandler

Bronze Contributor
Bronze Contributor

Close @meng_lim, however, "product" is a UDO variable as well and what your showing looks as though your just writing the text "product" to the ga_label UDO

Public