Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8300615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:37:43+00:00 2026-06-08T16:37:43+00:00

I have just inherited a site that had two different GA codes on the

  • 0

I have just inherited a site that had two different GA codes on the same pages that are tracking from top level down to sub domains. I have now removed the “two” GA codes and amalgamated the two different ID’s in to a single code using the suggested method below.

gaq.push(
['_setAccount', 'UA-XXXXX-1'],
['_trackPageview'],
['b._setAccount', 'UA-XXXXX-2'],
['b._trackPageview']

This seems to be working fine however the figures, in particular the bounce rate has dramatically changed for the worse since implementing the new code snippet.

I have found loads of tutorials explaining you shouldn’t have two GA codes on one page and you should use the _set Account method but I can’t find any explanation as to why you shouldn’t.

I want to go back to the client and explain why the figures have changed so dramatically since the implementation of the new GA snippet but can’t find a valid explanation. I initially presumed the second GA code may have been over writing the previous cookies, or possibly an issue with the Asynchronous tag pushing out the data with two tags there.

Any ideas why two tags don’t work properly on the same page??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T16:37:50+00:00Added an answer on June 8, 2026 at 4:37 pm

    You likely lost all the data tied to the subdomains. I’m going to guess the site before you modified it had the old google tracking code or maybe even the old urchin code?

    In any case you need to use _setDomainName(‘example.com’) if your tracking multiple domains as explained at https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite#yourDomainName

    Another helpfull guide is at http://support.google.com/googleanalytics/bin/answer.py?hl=en&answer=55570

    Two tags like you’re doing should work fine and here’s a use case for doing that. It’s not recommended or a supported implementation that you use two seperate tracking javascript (.js) loads.

    gaq.push(
    ['_setAccount', 'UA-XXXXX-1'],
    ['_trackPageview'],
    ['_setDomainName', 'example.com'],
    ['b._setAccount', 'UA-XXXXX-2'],
    ['b._trackPageview'],
    ['b._setDomainName', 'example.com']
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just installed composer in my /usr/bin folder, so when from that folder
I just inherited a site built on the mojoPortal CMS but we don't have
I have just inherited a site to look after, previous developers worked with PHP
I just inherited an ASPX site from a new customer of mine. I know
I have one main masterpage and three that inherit from it; my site changes
I've inherited a Drupal 7 site from someone and have come across a really
I have inherited a site with a news section that displays a summary of
I just have the array of 15 values that all need to be inserted
I have a class that inherits QMainWindow and I just want it to have
We have just migrated from solr3.5 to solr3.6, for all this time we have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.