Implement custom visitorID with DTM | Community
Skip to main content
August 3, 2020
Solved

Implement custom visitorID with DTM

  • August 3, 2020
  • 2 replies
  • 1843 views

Hi guys

I am complete Adobe Analytic rookie but happened to need to modify existing setup to include visitorID variable.  The implementation is using DTM and the custom for the system variables are already properly set. visitorID however is native to AA. According to documentation I should just set it to whatever I want s.visitorID = 'whateverIwant'; however I find it hard to find exactly where I should be making the change. Is there a comprehensible example to go with? 

I would prefer not to mess with launch.....js file and if possible to set it with the _satelite object

e.g I am thinking something like 

_satelite.track('DirectCall', visitorID: 'whateverIwant')

 

Second: once it is implemented it should be possible to see 'vid' in the cookie directly in the browser correct? If that is not so what is the best way to confirm that the fix is correctly applied?

 

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 shesingh

Hey there,

 

visitorID is now integrated in Adobe Analytics tool/extension in DTM and Launch respectively. As rightly mentioned by you, it helps you set custom unique identifier for the visitor.

 

https://docs.adobe.com/content/help/en/analytics/implementation/vars/config-vars/visitorid.html

 

You may go to DTM > Go to your property > Edit Adobe Analytics tool > Cookies > Visitor ID:

 

Similarly, you may set Visitor ID in Launch.

Once implemented, you will see 'vid' in the server call(Developer tool > Network tab > Filter by b/ss)

 

Hope this helps!

2 replies

shesinghAdobe EmployeeAccepted solution
Adobe Employee
August 4, 2020

Hey there,

 

visitorID is now integrated in Adobe Analytics tool/extension in DTM and Launch respectively. As rightly mentioned by you, it helps you set custom unique identifier for the visitor.

 

https://docs.adobe.com/content/help/en/analytics/implementation/vars/config-vars/visitorid.html

 

You may go to DTM > Go to your property > Edit Adobe Analytics tool > Cookies > Visitor ID:

 

Similarly, you may set Visitor ID in Launch.

Once implemented, you will see 'vid' in the server call(Developer tool > Network tab > Filter by b/ss)

 

Hope this helps!

rhin_Author
August 4, 2020

Is there a way to set it directly from my system code behind?

I mean from AppMeasument.js for example?

 

Reason is that want to assign my own unique value as visitorId so I need to be able to access it from the project. 

 

 

August 4, 2020

You can refer to following article for implementing s.visitorID.

 

https://docs.adobe.com/content/help/en/analytics/implementation/vars/config-vars/visitorid.html