DTM - Tracking New and Repeat Visitors

Avatar

Avatar

chads47842055

Avatar

chads47842055

chads47842055

15-10-2015

What is the most popular means for tracking new and repeat customers in DTM? Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

taciac

Avatar

taciac

taciac

02-11-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!

Answers (4)

Answers (4)

Avatar

Avatar

sviataslauk9162

Avatar

sviataslauk9162

sviataslauk9162

15-11-2018

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

Avatar

Avatar

ParitMittal

Avatar

ParitMittal

ParitMittal

05-05-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.

Avatar

Avatar

edward_hor1

Avatar

edward_hor1

edward_hor1

05-05-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

Avatar

Avatar

shekhardhiman

Employee

Avatar

shekhardhiman

Employee

shekhardhiman
Employee

16-10-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!