DTM - Tracking New and Repeat Visitors | Community
Skip to main content
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 taciac

Hi Chad,

If you want a stand alone report for new and repeat visitors you can pass the values new/repeat into a variable with the getNewRepeat plugin. This plugin can be added to the customize page code section of DTM. 

For more information on this plugin the documentation is available here: https://marketing.adobe.com/resources/help/en_US/sc/implement/getNewRepeat.html

Thanks!

5 replies

WhoaShekhar
Level 10
October 16, 2015

Hi there,

Thanks for reaching out to Adobe Community.

There are a couple of ways which can help you understand this difference. Adobe Analytics does not have a report that explicitly compares new visitors to return visitors. However, you can obtain this information by minor calculations or segmentation. All first-time visits are technically also first--time visitors. Therefore, you can take the number of first-time visits and subtract this number from total unique visitors to find the number of return visitors.

See this doc here for more:

https://helpx.adobe.com/analytics/kb/comparing-new-visitors-to-return-visitors.html

Thanks!

taciac
taciacAccepted solution
Level 9
November 3, 2015

Hi Chad,

If you want a stand alone report for new and repeat visitors you can pass the values new/repeat into a variable with the getNewRepeat plugin. This plugin can be added to the customize page code section of DTM. 

For more information on this plugin the documentation is available here: https://marketing.adobe.com/resources/help/en_US/sc/implement/getNewRepeat.html

Thanks!

May 6, 2016

Hi Tacia,

Can the getNewRepeat plugin script be used in data element as custom code or it must be within custom code for Analytics as an even/page/direct rule?

I'm currently using it as a page rule as custom Analytics code and setting the variable directly but would be good to have it as a data element also.

Cheers,

Ed

ParitMittal
Level 10
May 6, 2016

Hi Edward, 

As the Data Element are initialized and collects the value before the Load on Adobe Analytics Tool as well as Page Load/Event rule. Hence If you use getNewRepeat plugin script like  below in custom script  of a Data Element , It will throw an error "S is not defined" .

s.usePlugins=true;
function s_doPlugins(s) {

  var visitor_type=s.getNewRepeat(30,'s_getNewRepeat')
}
s.doPlugins=s_doPlugins

return visitor_type;

 Hence In the present cndition if you still want to create the data element , you can create the Data Element on the fly in a Page Load rule or an Event based rule by using the script :

s.usePlugins=true;
function s_doPlugins(s) {

_satellite.setVar('visitor type', s.getNewRepeat(30,'s_getNewRepeat')); }

s.doPlugins=s_doPlugins

Please note that the scope of data element will be Page View only.

sviataslauk9162
November 15, 2018

Maybe you know, how to simulate test for 'repeat' value? When I refresh page the eVar still keep 'new' value