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
  • 7243 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

October 16, 2015

Hi,

We are experiencing the same issue on our implementation. We are only using DTM and when a new visitor comes to the site we see two tags firing. The VisitorID is only populated on the second tag. Would you be able to share how we could go about debugging this?

Thanks,

Laura

salomepb
Level 3
October 16, 2015

Hi Laura,

Are you implementing visitorID via your hosted AppMeasurement code? I would suggest migrating to the integrated Visitor ID Service / Marketing Cloud ID Service available in the DTM property interface. Utilizing this tool may mitigate the issue you're encountering as it is configured to ensure proper sequencing. Here's some related documentation on this tool for reference: https://marketing.adobe.com/resources/help/en_US/dtm/macid.html

Hope this helps!

Anna

krishy71667478
Level 2
January 23, 2018

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