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
-
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!
-
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!
-
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
-
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
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
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
-
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!
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
"Duplicate without user-selected canonical” - impact to Google Ads costs
Hello, we are facing some issues on our project and we would like to get some advice. Scenario
Paid Search Marketing | | Alex_Pisa
We run several websites (www.brandName.com, www.brandName.be, www.brandName.ch, etc..) all in French language . All sites have nearly the same content & structure, only minor text (some headings and phone numbers due to different countries are different). There are many good quality pages, but again they are the same over all domains. Current solution
Currently we don’t use canonicals, instead we use rel="alternate" hreflang="x-default": <link rel="alternate" hreflang="fr-BE" href="https://www.brandName.be/" /> <link rel="alternate" hreflang="fr-CA" href="https://www.brandName.ca/" /> <link rel="alternate" hreflang="fr-CH" href="https://www.brandName.ch/" /> <link rel="alternate" hreflang="fr-FR" href="https://www.brandName.fr/" /> <link rel="alternate" hreflang="fr-LU" href="https://www.brandName.lu/" /> <link rel="alternate" hreflang="x-default" href="https://www.brandName.com/" /> Naturally this si reflected in ""Duplicate without user-selected canonical” . Issue
We create the same ad in Google Ads for 2 domains. So the content is mostly identical, ads are identical, target URLs differ only in domain. Yet Google Ads “Quality score” is different (10/10 vs. 6/10) and “Landing page experience” is very different (Above average vs. Average). Some members of our team think lower “Landing page experience” increases the Google Ads costs, which I personally don't believe, but I want to double check. Question: Can “Duplicate without user-selected canonical” issue decrease the “Landing page experience” rating and as result can it cause higher Google ads costs? Any suggestions/ideas appreciated, thanks. Regards.0 -
Do IP and/or DNS changes impact Paid search (Adwords, Bing, etc.)
What impact (if any) does IP or DNS changes, have on paid search campaigns? We recently performed an upgrade to our sites that required a datacenter change (but within the same region East US) and DNS change. We believe there may have been an impact to our ad campaigns in the form of suppression of our ads following the change, specifically - Google Adwords. Is there any information regarding this issue or has anyone experienced this before? Thanks
Paid Search Marketing | | MWM37721 -
Attributing Lead Source/Medium on Squarespace forms
Hi Mozzers Happy new year! We've recently picked up a client for some PPC and SEO work and their website is built using Squarespace. It's a B2B business, so enquiries don't always get sent straight from a landing page. Often a user hits our desired landing pages then checks out a few other pages before sending an enquiry. The problem we have is with attaching the source/medium of a lead to the enquiry that we receive. For example if Joe Bloggs completes a form, what we'd like to receive is:
Paid Search Marketing | | ZestUK
Name: Joe Bloggs
Email: joe.bloggs@email.com
Phone: 123456
Source: Google
Medium: CPC With the latter as hidden fields. We've tried the hidden field feature built into the form builder, but this only works if the user completes the form on the landing page they arrived on without leaving the page. We've tried to used event tracking but this only gives us accuracy on the number of enquiries from that channel, not who the user was that enquired, so we can't consolidate with our order and revenue report to work out ROI from each activity. Has anybody in the community ever solved this issue on Squarespace? Thanks
Mark0 -
Does having redirects in a Adwords text ad destination URL hurt quality scores?
I recently noticed that one of my clients had several redirects in their Adwords text ad destination URLs. I updated the destination URLS to land on the final location (thereby losing all the text ad history). However I'm wondering if this could have any impact on the text ad quality scores (none of them were disapproved).
Paid Search Marketing | | RosemaryB0 -
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
Paid Search Marketing | | devdan
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!0 -
Changing Domains - Will a 301 redirect be looked unfavourably for my Ads?
Hey All, So over the next few weeks we are switching over a clients domain to a new one. Each of the old pages on the old domain will have a 301 redirect to it's new contextual page (with the same content). My question is this, we currently have multiple PPC campaigns running for this client and the ads are pointed towards the old domain so the ads will redirect over to the new domain. My question is this, will Adwords look at this redirection unfavourably? If so, then I will have to duplicate each ad (100's of ads) with a new destination URL (since if I edit the current ads they will lose all past performance history). Obviously for branding I'm going to have to probably change the display URL eventually but for now I'm looking at the BIG issues that could occur. I would normally call Google and ask this question but I don't want them to flag anything in my account just in case this is looked unfavourably. Thanks! Jon
Paid Search Marketing | | EvansHunt0 -
Broad vs. Exact in Brand Campaign
Hey guys, I was looking through my "Brand" campaign, and I noticed that my costs are running a little higher than I'd like to be spending. I've got my brand search term (Strutta) set on broad, since I just recently started the brand campaign about 2-weeks ago. However, I've noticed that I'm spending around $1 on most clicks even though my QS is at 9/10. In my previous experience, I've been able to pay pennies on brand search terms. I know that I have a competitor that's trying to snipe my brand searches, but I don't really want to be paying this much for branded clicks. Would it be a good idea to check my search terms, build out a larger list of exact match terms, and just go with exact match? Do you guys usually use broad in your Brand campaigns, or exact?
Paid Search Marketing | | danny.wood0