Common Analytics Plugin : getNewRepeat plugin | Community
Skip to main content
June 21, 2021
Solved

Common Analytics Plugin : getNewRepeat plugin

  • June 21, 2021
  • 1 reply
  • 1352 views

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.


This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by digitaldarpan1

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

1 reply

digitaldarpan1Accepted solution
Level 2
November 14, 2022

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