undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. Digital Marketing
  3. Paid Search Marketing
  4. Google URL Builder / Campaign Tracking on two Different Domain using the Same Analytics Code

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Google URL Builder / Campaign Tracking on two Different Domain using the Same Analytics Code

Paid Search Marketing
2
6
2.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • EvansHunt
    EvansHunt Subscriber last edited by Aug 25, 2014, 8:47 PM

    Hey Everyone,

    I think I know the answer to this but I'd like to get some confirmation.

    I currently have a landing page at "www.xyz.com", it's a separate domain in which only the landing page exists and not a vanity URL which redirects. However, the navigation and all the links on  "www.xyz.com" actually link out to "www.abc.com". The domain / landing page  "xyz" has the same analytics tracking code as domain "www.abc.com".

    My question is this, if I use Google URL builder to create custom URL's to track for each ad that I'm running in Adwords, will this data show up in the analytics of "abc" even though it's a separate domain because it has the same analytics code?

    In other words, does campaign data show only if the domain and the google analytics code line up, or does the domain not matter and as long as you have the same analytics code (despite two separate domains) that campaign data (built through Google URL builder) will show?

    My hunch and best guess it that as long as the analytics code is the same (regardless of a separate domain) that the data in campaign will show with the custom URL's I build. I'm aware that I can test this and I will but I'd like to get an idea from the community first to make things easier. Anybody have experience with this? Answers greatly appreciated!

    Thanks!

    1 Reply Last reply Reply Quote 0
    • EvansHunt
      EvansHunt Subscriber @BlueprintMarketing last edited by Sep 3, 2014, 12:42 PM Sep 3, 2014, 12:42 PM

      Thanks Tom, I'll try to implement this.

      The link for http://psgrep.com/ isn't working? If I implement the solution for cross domain tracking above, will my adwords data flow through? Right now I'm getting no behaviour data even though my adwords and analytics are linked up or is there additional work I will need to do that is available on the link that isn't working?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • BlueprintMarketing
        BlueprintMarketing last edited by Sep 2, 2014, 10:37 PM Sep 2, 2014, 10:37 PM

        Hey Jon,

        I hope what is written above is more helpful and explains I do not want to copy the instructions Word for Word.

        But I think this will give you enough to understand if you have implemented these changes you are all set if not please make the changes.

        Because there are code changes that should be in place to use to different domains in order to track them you need to set up her primary and secondary.

        You are on the right track I hope the information above gives you what you need if it does not.

        Let me know and I would try using http://www.analytics-debugger.com/en  http://memo.suan3se.com/?p=643 & http://psgrep.com/

        in order to set up and know that it set up properly.

        Sincerely,

        Thomas

        1 Reply Last reply Reply Quote 0
        • BlueprintMarketing
          BlueprintMarketing @EvansHunt last edited by Sep 9, 2014, 1:19 PM Sep 2, 2014, 10:31 PM

          HI Jon,

          There are  because

          Because  cross domain tracking is dealing with a primary and secondary you do have to change the tracking snippet

          For Adwords

          http://psgrep.com/

          by following the steps in the link above you will be able to set up Adwords

          I have pasted example below using example1.com as well as example2.com represent the different domains. One of the easiest ways to set this up is to simply use the Google analytics debugger it is available in the chrome store as well as a this incredible resource

          Here is exactly what you need to do for ad words because it is slight differences you will need to use Google auto linker plug-in

          Step 1: Set up a property in your Google Analytics account.

          autoLink plugin

          to your tracking code, it automatically loads with your pages and does a substring match on all your links. It then recognizes any links that include a domain name that you’ve specified in your tracking code. Any traffic that clicks a link to those domains get counted as cross domain traffic.

          The tracking code snippet must contain these changes every place it appears on your secondary domain.

          For three or more domains

          Follow the example above, but add the other domains to the autoLink plugin. Even the additional comma here is important:

          ga('linker:autoLink', ['example-1.com', 'example-3.com'] );

          See what this looks like in full context

          The tracking code snippet on your secondary domain(s) should look like this:

          https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain

          for GA

          https://support.google.com/analytics/answer/1034342?hl=en&ref_topic=2772342

          For cross domain tracking, set up one property in your Google Analytics account. Use the same tracking code snippet and tracking ID from that property for all of your domains.

          You need to edit the tracking code snippet for cross domain tracking to work. If you haven’t already included the snippet on all your webpages, you might want copy and paste it into a text editor before continuing with the instructions here. This way, you only have to make the changes once before including the modified snippet on all your webpages.

          For details on setup help, follow the instructions on how to set up the web tracking code, but remember: You must customize the snippet using the instructions in this article for cross domain tracking to work properly.

          Step 2: Edit the tracking code for the primary domain.

          Find the create line in the snippet. For a website called example-1.com, it looks like this:

          ga('create', 'UA-XXXXXXX-Y', 'example-1.com');

          Make the following changes to the snippet (the changes you need to make are in bold red text😞

          ga('create', 'UA-XXXXXXX-Y', 'auto', {'allowLinker': true});

          **  ga('require', 'linker');**

          **  ga('linker:autoLink', ['example-2.com'] );**

          Remember to replace the example tracking ID (UA-XXXXXX-Y) with your own tracking ID, and replace the example secondary domain (example-2.com) with your own secondary domain name.

          http://www.analytics-debugger.com/en

          https://www.google.com/search?q=google+analytics+debugger&oq=google-analytics-debugger

          https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna

          I hope this is more helpful and explains I do not want to copy the instructions Word for Word.

          But I think this will give you enough to understand if you have implemented these changes you are all set if not please make the changes.

          https://support.google.com/analytics/answer/1042508

          http://moz.com/ugc/single-google-analytics-tracking-code-for-multiple-sites-when-to-use-how-to-report

          TRACKING ACROSS MULTIPLE DOMAINS

          autoLink plugin

          https://support.google.com/analytics/answer/4627488

          https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain

          I hope this will tell you yes or no

          let me know,

          Tom

          TkSzFTe.png QSlgEdv.png

          EvansHunt 1 Reply Last reply Sep 3, 2014, 12:42 PM Reply Quote 1
          • EvansHunt
            EvansHunt Subscriber @BlueprintMarketing last edited by Sep 3, 2014, 12:42 PM Sep 2, 2014, 8:15 PM

            Hey Thomas,

            Just to be sure, could you answer the question whether my assumption is correct or not? I'll read through the resource you sent but your opinion would be great.

            Thanks!

            BlueprintMarketing 1 Reply Last reply Sep 2, 2014, 10:31 PM Reply Quote 0
            • topic:timeago_earlier,8 days
            • BlueprintMarketing
              BlueprintMarketing last edited by Aug 26, 2014, 12:08 AM Aug 25, 2014, 11:20 PM

              here is a detailed answer to your question.

              https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite

              https://developers.google.com/analytics/resources/concepts/gaConceptsDomains

              Please let me know if I can be of more help,

              Thomas

              EvansHunt 1 Reply Last reply Sep 2, 2014, 8:15 PM Reply Quote 0
              • 1 / 1
              1 out of 6
              • First post
                1/6
                Last post

              Got a burning SEO question?

              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


              Start my free trial


              Browse Questions

              Explore more categories

              • Moz Tools

                Chat with the community about the Moz tools.

              • SEO Tactics

                Discuss the SEO process with fellow marketers

              • Community

                Discuss industry events, jobs, and news!

              • Digital Marketing

                Chat about tactics outside of SEO

              • Research & Trends

                Dive into research and trends in the search industry.

              • Support

                Connect on product support and feature requests.

              • See all categories

              Related Questions

              • mirabile

                304 "If Modified Header" Triggers Error in Google Ads?

                We have a client who is launch some Google Ads campaigns, and they recently asked us to fix 304 "Errors" on their website as per this feedback: "When we inspected the website we came across a number of 304 status errors. In order to get the ads running, we will need all of the website domain status codes converted to 200. “ Of course, all of their website pages return a 200 Status, it's just the HTTP headers that additionally clarify with a 304 Response (not an error). Has anyone else ever run into this issue with Google Ads? IMHO it makes no sense to remove this functionality. Google has even recommended in the past to use this it: https://webmasters.googleblog.com/2008/11/date-with-googlebot-part-ii-http-status.html Thanks for any tips or feedback!

                Paid Search Marketing | Nov 8, 2019, 6:17 PM | mirabile
                0
              • GuardianOwlDigital

                Clients Keep Googling Themselves

                Hi, I have a common problem with my clients where they google their own business name or keywords they want to rank for and freak out when they don't show up on the first page of results. The same is true for my paid search clients. Is there a good way I can explain to them how Googleing themselves is not the best way to know if they are performing well? If there is an article out there that explains it that I can share that would be even better.

                Paid Search Marketing | Oct 14, 2017, 12:04 PM | GuardianOwlDigital
                0
              • SEODarren

                Adwords Conversions - Trying to track button clicks that fire when Bootstrap modal contact form clicked/opened

                Hi there, I'm trying to implement google adwords conversions on a particular client's website. They have used bootstrap as the framework for their site and mainly open up contact forms within a bootstrap modal, after a button is clicked. See here: http://www.gtwstorage.co.uk/ I thought I had successfully implemented the adwords conversion tracking however it has been a week now, and my conversions still say they are "unverified". I wonder if anyone else has encountered this before and knows what I might be doing wrong. Thank you in advance, Darren

                Paid Search Marketing | May 13, 2016, 12:12 PM | SEODarren
                0
              • JoeyPasq

                Is there a way to track visitors that watched my video on YouTube and became a direct visitor to my website after the fact?

                I am trying to understand the impact my commercials are having on website beyond just the clicks I get from YouTube as a referring site. Google is telling me there is not a way to track users that have viewed a video. I am trying to think outside of the box to figure out a way to use the remarketing cookie to my advantage. Google says there is not a way to track a user that watched a video and then eventually came to my site. But at the same time the "Earned Views" metric is similar to what I am trying to accomplish. As per Google, "An earned view occurs when someone who views your video ad and then watches another video or videos in a linked YouTube channel within 7 days of the ad view." So I want to be able to apply this same method to people that view my video ad and then surface on my website eventually. Please let me know your thoughts on this and if there is a way to accomplish this goal. Thank you

                Paid Search Marketing | Feb 25, 2016, 5:56 PM | JoeyPasq
                0
              • devdan

                Moving from old GTM to New Version of GTM - Analytic & Adwords transaction and revenue stop refelecting

                Hi Guys, I am moving from old version of tag manager to new version of tag manager. But when i do so at that time in my google analytic 1) my adwords transaction, revenue and ecommerce conversion rate stop showing. 2) In ecommerce -overview also transaction, revenenue and ecommermce conversion rate stop showing. Can any one tell me what is the issue? I am sharing with you the details configuration of my old tag manager and new version of tag manager - I am using google analytic having id - UA-12345678-9 I am using old version of google tag manager in that i have configure 5 tags - a) google adwords conversion tracking
                b) GA pageview tracking
                c) google remarketing
                d) GA conversion tracking
                e) twitter conversion tracking I did following configuration for all - Tag Name - google adwords conversion tracking
                tag type - Adwords conversion tracking
                conversion id - 123123123 ( from adwords)
                conversion lable - sdfsnfs-sfsf ( from adowrds) Firing rule -{{url}} contains ordersuccessful.aspx
                {{event}} equals gtm.dom save Google Analytic PageView Tracking
                Tag Type - classic Google Analytic
                web properid id - UA-12345678-9
                track type - page view Firing rule - all pages save GA conversion Tracking
                tag type - classic google analytics
                web property id - UA-12345678-9
                track type - transaction Firing rule -{{url}} contains ordersuccessful.aspx
                {{event}} equals gtm.dom By above configuration everything work fine with google analytic. In New versoin of tag mananger following configuration i did - Adwords conversion tracking
                Choose Product - Google Adwords
                choose tag type - adwords conversion tracking
                configure tag - conversion id - taken from adwords
                conversion label - taken from adwords
                conversion value - {{google_conversion_value}}
                Fire on - Name - order successful page
                type - custom event
                Filter- Page url contains ordersuccessful.aspx
                event equals gtm.dom save Choose Product - Google Analytic,
                choose tag type - universal analytic
                configure tag - tracking id - UA-12345678-9, track type - page view Fire on - All pages save GA conversion tracking Choose Product - Google Analytic,
                choose tag type - universal analytic
                configure tag - tracking id - UA-12345678-9, track type - transaction Fire on - Name - order successful page
                type - custom event
                Filter- Page url contains ordersuccessful.aspx
                event equals gtm.dom save By above configuration my analytic stop reflecting transaction, revenue, ecommerce conversion rate for adwords and ecommerce overview. Thanks!

                Paid Search Marketing | Mar 23, 2015, 5:45 PM | devdan
                0
              • hellemans

                Adwords negative keywords / keyword lists conflicting?

                Does any of you had any experience on large 5k+ shared negative keyword lists impacting normal campaign negative keywords in Adwords even if they are not selected on these campaigns? And a second question; does anyone know how selected negative keyword lists can be removed from a campaign? I seem to be able to add them but not to remove them... Cheers!

                Paid Search Marketing | Sep 21, 2014, 9:04 AM | hellemans
                0
              • benjmoz

                Using multiple domains in one Adwords account

                Hi, I am currently setting up an Adwords account and wanted to know if you can run multiple websites through one account. We have 2 domains each promoting a different one of our brands and i was wondering the best way to run the account. Regards Ben

                Paid Search Marketing | Aug 5, 2014, 3:44 AM | benjmoz
                0
              • Instabill

                How Can I Target Certain Countries in Google AdWords without Excluding Other Countries?

                So, here is the situation: Our company works with merchants worldwide (with the exception of those who live in excluded high-risk countries--mostly in Africa), but most of our Google AdWords leads come from Indian merchants. My CEO wants our campaigns to convert leads from other countries (i.e., the UK, Germany, US, Canada, Australia, etc.), but I have no idea how to do that without excluding India. However, my CEO does not want to exclude India from our AdWords campaigns as the leads are profitable. We simply want more diversity with out leads in terms of geographic location. I am sure there are resources on the Web about how to do this, but I am not an Adwords expert and am unsure of what phrases to search to find the answers. Direct advice or helpful links are much appreciated. Regards,
                Meghan

                Paid Search Marketing | Jun 12, 2013, 6:41 PM | Instabill
                0

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy

              Looks like your connection to Moz was lost, please wait while we try to reconnect.