Note that there are some explanatory texts on larger screens.

plurals
  1. POSeveral Google Analytics tag on a same page
    primarykey
    data
    text
    <p>Here is my problem: our client has 2 websites, A and B. They have 1 google analytics account with 2 properties :</p> <ul> <li>Account: CLIENTNAME </li> <li>Properties :<br> <ul> <li>SITEA with ID UA-XXXXXX-1</li> <li>SITEB with ID UA-XXXXXX-2</li> </ul></li> </ul> <p>Additionally, we also have 1 analytic account with 1 property:</p> <ul> <li>Account: OURNAME</li> <li>Property : <ul> <li>SITECLIENT with ID UA-111111-1</li> </ul></li> </ul> <p>We would like to put the client's google analytics tags on each website along with our tags (OURNAME), so that each site would have two codes.</p> <p>After some searches on the support site, I found that : "<a href="http://support.google.com/analytics/bin/answer.py?hl=en&amp;answer=1032400&amp;topic=1008082&amp;ctx=topic" rel="nofollow">Installing multiple instances of the Google Analytics Tracking code on a single web page is not a supported implementation</a>"</p> <p>But, after searching again and trying (yes I know it's bad...), I found that it works with code like this:</p> <pre><code> &lt;script type="text/javascript"&gt; var _gaq = _gaq || []; _gaq.push( ['_setAccount', ACCOUNT_#1_ID], ['_setAllowLinker', true], ['_setAllowHash', false], ['_trackPageview'], ['b._setAccount', ' ACCOUNT_#2_ID '], ['b._setAllowLinker', true], ['b._setAllowHash', false], ['b._trackPageview'] </code></pre> <p>(nothing for first tag, b for second, etc...). So, I have few questions about theses tags because the tracking seems to be correct:</p> <ul> <li>can we skip a letter on the tracking? For example, we have 3 accounts, and we want 3 codes, a,b and d (but not c)</li> <li>can we add 2 or more tracking for one page with Google Tag Manager? (for exemple with 2 GA's type tag with the rules "for all pages")</li> <li>can I have both 1 google analytics tags and 1 GTM tag on the same page? (Not really usefull, but is it possible?)</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload