Expand my Community achievements bar.

Join us for our next community Coffee Break on February 28th! Four of our Analytics Champions will be joining us to discuss Summit tips, best practices, and any of your Analytics questions!
SOLVED

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 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

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