While creating the Targeting Rule Javascript Variable It asks me to create two variables:
- Global Variable Name
- Variable Name
Where we need to define that variable in our code file?
I am having variable my_variable
in my javascript declared and defined in between <head>
tag before the google analytics code.
How I can show the experiment when my_variable
is having value 10
? Nothing else I need to match.
Note: I need only this Rule to be applied (only One).