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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

DTM - Tracking New and Repeat Visitors

chads47842055
Level 2
Level 2

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

1 Accepted Solution
taciac
Correct answer by
Level 9
Level 9

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!

View solution in original post

5 Replies
shekhardhiman
Employee
Employee

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
Correct answer by
Level 9
Level 9

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!

View solution in original post

edward_hor1
Level 1
Level 1

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
Level 10

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
Level 1
Level 1

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