Visitor ID - Dynamic Tag Manager DTM - Duplicate visits | Community
Skip to main content
julià_pujol_ar1
Level 2
October 16, 2015
Solved

Visitor ID - Dynamic Tag Manager DTM - Duplicate visits

  • October 16, 2015
  • 13 replies
  • 7259 views

Hi all,

I'm testing Dynamic Tag Manager on Test rsuite for apply it in future implementation, really is a good good tool.

So, a pair of week ago, I can see updates on Visitor ID implemention, and I did it (http://microsite.omniture.com/t2/help/en_US/mcvid/mcvid_implement.html). My surpise is when implement this, visites was multiplied for 10 :S, yes I make a mistake sure, but I'm not able to see error, and neither I can found nothing page that use the same sistem (put VisitorAPI.js into Appmesurement into DTM manage code). So, this is my code:

____________________________________________________________________________________________________________________________________

// 1.1 - <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Unique visitor configuration code >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> var visitor = new Visitor("F050097853468AB40A490D4C@AdobeOrg");   // Provided from Client Care. visitor.trackingServer = "seat.d3.sc.omtrdc.net";                 // Same as s.trackingServer. visitor.trackingServerSecure = "seat.d3.sc.omtrdc.net";           // Same as s.trackingServerSecure. // 1.2 - <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< MODULE 0: Visitor API v 1.2.1 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Visitor API code... /*******************************************************+****** -2- ****************************************************************/ /******************************************************** DYNAMIC S_ACCOUNT ********************************************************/ /***********************************************************************************************************************************/ /*     This part of code assigns dinamically smetrics.accounts (formely s.accounts) that was assigned into Dynamic Tag Manager     */ /***********************************************************************************************************************************/ smetrics = new AppMeasurement(); function getAnalyticsAccount() { for(var toolid in _satellite.tools) { if(_satellite.tools[toolid].settings.engine == "sc") { return _satellite.tools[toolid].settings.account; } } } smetrics.account = getAnalyticsAccount(); smetrics.visitorNamespace = "seat"; smetrics.trackingServer = "seat.d3.sc.omtrdc.net"; /*******************************************************+****** -3- ****************************************************************/ /*************************************** VISITOR ID SERVICE CONFIG - REQUIRES VisitorAPI.js ****************************************/ /***********************************************************************************************************************************/ /*     This part of code tells to Appmesaurment that visitor cookie must used, in this case as Visitor ID is installed, use it.    */ /***********************************************************************************************************************************/ smetrics.visitor = Visitor.getInstance("F050097853468AB40A490D4C@AdobeOrg","seat"); /*******************************************************+****** -4- ****************************************************************/ /********************************************************* CONFIG SECTION **********************************************************/ /***********************************************************************************************************************************/ /*  This part of code contains the main configuration/personalization of AppMesaurment. This section contains _doPlugins function  */ /*            whose is called each time that each page is charged. Normally is used for automate some kinds of process.            */ /***********************************************************************************************************************************/ // 4.1 - <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< General Configuration >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> smetrics.linkTrackVars = "None"; smetrics.linkTrackEvents = "None"; smetrics.linkInternalFilters = "javascript:,seat.com,seat.lu"; // 4.2 - <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Activate "_doPlugins" function >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> smetrics.usePlugins=true;          // This parameter allowed use/not use do_Plugins function. function smetrics_doPlugins(smetrics) { if (typeof window['dataLayer'] != "undefined"){                         // if (typeof window['dataLayer']=='object') {                   // for (var v in window['dataLayer']) {                      // if (window['dataLayer'].hasOwnProperty(v)) {      // This loop prepare script for smetrics[v] = window['dataLayer'][v];         // understand Data Layer object }                                                 // if it's defined on HTML code. }                                                         // }                                                                 // }                                                                       // smetrics.prop2="Entire Site"; smetrics.prop4 = (typeof(Visitor) != "undefined" ? "Cookies Present" : "Cookies Missing:" + document.location.href); } smetrics.doPlugins = smetrics_doPlugins; /*******************************************************+***** -7- *****************************************************************/ /******************************************************* CORE CODE v.1.3 ***********************************************************/ /***********************************************************************************************************************************/ /*  This part of code is core code, called AppMesaurment. It controlls a huge part of metrics that was sended on Report&Analytics  */ /*                            Be carefull, this code must be changed when Adobe lunch new version.                                 */ /***********************************************************************************************************************************/ Appmesaurement core code....

____________________________________________________________________________________________________________________________________

Also I can observe that cookies AMCV_ is created on my domain, but I see more than once s_vi in many different domains:

[img]cookies.png[/img]

I imagine that my mistake is referent to order of codes into Appmesaurement or maybe on trackinServer, visitor vars... but sincerly I don't know. I'm glad if someone can help me, probably other people can have same problem :D

Many thanks in advance,

Julià.

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 salomepb

Please note there's been an update to how this functions in DTM since this initial forum post. Visitor ID Service / Marketing Cloud ID Service is now an intergrated tool available in the DTM interface as of 8/7/2014. Utilizing this new setup may mitigate the issue you're encountering. See the related help documentation at the following link and please just reply back if you have additional questions. https://marketing.adobe.com/resources/help/en_US/dtm/macid.html

Best,

Anna

13 replies

julià_pujol_ar1
Level 2
October 16, 2015

Hi,

Any idea? I believe this subject is very important, seem that on future all Adobe Marketing tools will use same cookie (that provides VisitorAPI.js, AMCV_). In documentation explicit that implement VisitorAPI into Appmesaurment is possible and let us some instructions, but I cannot see an example, maybe is for that I use DTM?

I will be grateful if someone have any idea,

Julià.

Harsh_Kabra
Level 4
October 16, 2015

Did you get any solution for this? If so, please share it.

krishy71667478
Level 2
January 23, 2018

How to fix the duplicate visits in omniture? Visits are overstating...