Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    google analytics tracking

    hey everyone,
    i want to put 2 different sets of google analytics tracking code on one page, would that cause any problems at all?

    I would do something like this:
    Code:
    <body>
    
    ....stuff....
    
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-xxxxxx-x";
    urchinTracker();
    </script>
    
    
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-yyyyyyy-y";
    urchinTracker();
    </script>
    
    </body>
    </head>
    would there be any conflicts between the 2 js scripts, and more importantly, will google still be able to track this page on both accounts?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    What is your reasoning behind this? If both accounts will get the same tracking info why not add multiple users to the same google analytics?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Mar 2005
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It has to do with how we have goals/funnels setup. We have to setup multiple profiles under the google account, each profile has its own user account number for the tag.....so some pages overlap to different campaigns that we run...thus we require multiple tags. Though im just not sure if having multiple tags like how i have above will work....


    anyone know, care to confirm?

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Doesn't hurt to try now does it? Only issue I see is the variables being overwritten because they are the same so only one set might work.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Mar 2005
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah, i've tried it, but so far i've seen no activity yet so i cant confirm if it works or not. Wanted to see if anyone else has had experience with this


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •