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!
- topic:timeago_earlier,8 days
-
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
-
Unsolved Google Ads Subdomain in sitelinks & Composition Change for Strategy Status
I have a basic query but could not find a definite answer on the internet. I am currently running a campaign for the main website of a big education brand and they also have a secondary learning website on subdomain, and I want to add sitelinks of subdomain to the campaign, but I am not sure whether it is allowed or not. The brand I am running ads for is https://www.rauias.com/ and the secondary website is https://compass.rauias.com/ branded slightly different in a subdomain, so should I add the sitelinks of Compass to the main campaign? Also one more silly question My Max Conversion search campaign gave me this status today. "Learning (composition change): Campaigns have been added to or removed from the bid strategy. Google Ads is now adjusting to optimize bids. 5 days left for learning" What does this mean exactly? And Why does it reenter the learning phase whenever I make a small change?
Paid Search Marketing | Dec 7, 2023, 4:04 AM | rauoff0 -
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 | SEODarren0 -
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 | JoeyPasq0 -
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 | hellemans0 -
Google Shopping Feed being blocked by robots.txt
I had created a manual Google Shopping Feed that was working fine, and then someone well meaning put a block in my robots.txt file so Google couldn't read the images folder. because of this, Google now won't accept my feed. I changed the robots.txt file to allow them to read the images again, but it's been 3 days now and I'm still getting the error saying my products are disallowed because the robots.txt file won't let them scan for images. Does anyone know how long it will take for Google to see it again?
Paid Search Marketing | Jul 18, 2014, 11:39 PM | sparrowdog0 -
Why does my google analytics show a massive discrepancy from facebook's reported website clicks?
We're running a Facebook news feed ad that is pointing at our homepage. Facebook says that for yesterday there were 47 website clicks. Google analytics shows 15 total visitors from facebook with 3 of them landing on the homepage. I understand that there is likely going to be some discrepancy with users accidentally clicking and clicking back before the page loads, but this seems a little insane. I tested the ad using a page that pulls the Analytics cookie data using php and it is working properly so I don't understand what's happening. The url isn't tagged with utm parameters, which is going to be fixed. Anyone experience this or have any insight as to what could be this issue? Is this click fraud? Edit: For more clarification I was checking on my completely unfiltered google analytics profile/view.
Paid Search Marketing | Mar 30, 2017, 12:44 PM | spencerhjustice0 -
Near-duplicate content for landing pages - use noindex?
We want to create 5-10 near-duplicates of our homepage to use as landing pages – nearly all same text, but some different images. We want to make sure Google doesn't ding us for duplicate content. Is the best way to do that to tag each of these pages with "noindex"?
Paid Search Marketing | Jan 28, 2014, 12:49 PM | HopeIndu1 -
CPC or CPM for Google Display Network?
HI all I'm setting up my first Remarketing campaign on the display network. I'm targeting those that have visited a specific product page at the moment and therefore there won't be a massive amount of traffic to remarket to - roughly no more than 50 clicks/day. My question is - what is the best bidding option for a campaign like this? Not sure whether to go for CPM or traditional CPC. I have previously found CPM much better for Facebook but obviously thats very different to Google. All help appreciated!
Paid Search Marketing | Oct 22, 2013, 8:46 PM | SamMaley0