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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Common Analytics Plugin : getNewRepeat plugin

Avatar

Level 1

Hi All,
I have installed the common analytics plugin and configured the getNewRepeatVisitor plugin to identify new Vs repeat visitors to my site.
I configured an evar to capture the value new / repeat.
Despite multiple visits to the site, I could see only "NEW" being passed to the evar. (instead of repeat)
Then in the cookies section, I noticed that the s_nr cookie, meant for the identification of repeat visitors, wasn't getting set.
I am not sure how to solve this.

By the way, I am testing the implementation and hence the site is running on my local host.


Thanks in advance for helping me out.


1 Reply

Avatar

Level 1

Hi @H_Kanchan ,

 

You can probably change the cookie name by using do plugin. You just need to call s.getNewRepeat as shown below:
s.eVar1 = s.getNewRepeat(30,'s_getNewRepeat_xx');

The first parameter says, days to expire the cookie. It does refresh every time user loads the page. Value will reset to "New" in case of site is not loaded for 30 days.

The second parameter is your cookie name. I would recommand to set xx value if multiple site is running on same domain.

 

If the cookie name is changing after the above change then the value also should be change. You need to wait for session to expire otherwise you will get same value(New).

 

Regards,

Darpan