google analytics - Should I set the Tracker Name, Cookie Name, and Cookie Domain for my Tags? -


my pages setup multiple ga trackers:

ga('create', 'ua-xxxxx-1', {'name': 'tracker1','cookiename': 'tracker1', 'cookiedomain':'example.org'}); ga('tracker1.send', 'pageview');  ga('create', 'ua-xxxxx-2', {'name': 'tracker2','cookiename': 'tracker2', 'cookiedomain':'example.org'}); ga('tracker2.send', 'pageview');  ga('create', 'ua-xxxxx-3', {'name': 'tracker3','cookiename': 'tracker3', 'cookiedomain':'example.org'}); ga('tracker3.send', 'pageview'); 

in gtm, when create universal analytics tags, have option define tracker name, cookie name, , cookie domain:

enter image description here

q1: have set values, or gtm figure out automatically based on tracking id provide in tag?

for tracker name, gtm ui reads:

use of named trackers highly discouraged in gtm

and points page advising use data layer instead:
https://developers.google.com/tag-manager/android/v3/reference/com/google/tagmanager/datalayer

which says:

you should instead update code on site use google tag manager datalayer syntax. otherwise unable configure tracking via google tag manager

i've looked around couldn't find gtm datalayer syntax specific defining tracker names.

q2: have example of syntax be?

to answer @ least partly:

since curious did quick test , created 2 analytics tags different account ids. looking @ ga debugger got output

creating new tracker: gtm1403770664990 .... creating new tracker: gtm1403770664991 

and if trackers = ga.getall() 2 differently named trackers well. i'd gtm automatically names trackers , not need enter name yourself.

cookie domain same both (since track same domain).

the 1 thing i'm not sure cookie name - 1 cookie created, since holds no info except client id might not problem , both trackers can user same cookie/client id (i not see how cause problems since requirement client id is unique per user, case if multiple trackers use same client id).


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -