setCustomVariable in asynch mode


#1

Hi,

I want to use the setCustomVariable in asynch mode, however in the documentation it is not clear whether I can specify the scope (visit, page):
_paq.push([‘setCustomVariable’,‘1’,‘VisitorType’,‘Member’]);
I tried including one more parameter
_paq.push([‘setCustomVariable’,‘1’,‘VisitorType’,‘Member’,‘page’]);

but does not seem working, looks like it is recorded with scope=visit every time.

Please advice,


(Matthieu Aubry) #2

You would need to use 1.5 RC for page scope (check out blog post)


#3

Thank you Matt, I did not realize that functionality belong to a different version, I am using 1.4. I will give it a try.


#4

actually, going back to my original question once I upgrade to 1.5, for asynch mode, how do I specify the scope for the custom variable?, just adding the extra parameter?

Thanks,


(Matthieu Aubry) #5

yes