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
-
Website is flagged by Google as Compromised Site
Hi everyone, We have been running Google Ads for a while now and last week all of our Google Ads were paused with reason Compromised Site. We reached out to Google and they identify this page as one of the affected page: https://manpower.com.vn/vi/dich-vu-san-dau-nguoi-and-tu-van-nhan-su-cap-cao? The malicious links they found are:
Paid Search Marketing | | ManpowerVietnam
• googie-anaiytics[.]com
• vty68[.]net We have asked our Website vendor to scan and they found nothing. We would be greatly appreciated if you could help. I tried Google Search Console and even the tool Google Safe Browsing that Google itself suggested but both the tools showed that our website does not have any malicious links at all. And yet Google Ads support team keeps telling us our page contains these links. I am wondering if anyone in the community has experienced this before and how did you address this issue. Or could you guys please help to share any tools that you know can do a deep scan on this page and if possible our entire website to help us identify where the links are located? Please let me know if you need any additional information from us and I would be happy to provide it.1 -
Top of funnel google ads campaign not hardly converting, why?
Hi, I really hope someone can help me with this. I'm running two search ad campaigns and a google shopping campaign in google ads. The search campaigns are targeting top-of-funnel keywords as the business doesn't have universally known collections which everyone would search for so they are just unique to my business. So the campaigns are driving traffic but really converting whereas google shopping is converting because searchers are looking for particular products so they're lower down the funnel closer to aking a purchase decision. I feel I've optimised the campaign well and for the most part, most keywords have 7/10 quality score. The landing page seems fine. However, our offering wasn't as strong as competitors so we've offered a discount the same as them to compete. Since I started google ads we have nearly doubled our monthly revenue and the product types targeted in campaigns have increased in quantity sold so it seems it's having an effect but the campaigns aren't showing a good performance. Does anyone have any suggestions or input that could help me? I looked at first interaction attribution model and even there it's not performing well which makes this even more difficult to resolve. I'm thinking I should enable USER id feature in Google analytics so i can track signed in users across devices which may then help attribute sales to paid search channel as I saw in search console that the keyword that generates the most traffic to the site is our brand name and we're not a well-known brand so makes me think they may be starting their buyer's journey on a work computer on their mobile and finishing on their computer at home as an example. However, I don't believe this will be the main cause or solution as I would only have data for signed in users which still won't give me the full picture. Also if the campaign is optimised effectively but conversions are minimal could not having many conversions affect quality score? If someone can help or provide me with a different perspective it would be much appreciated. Please let me know if I need to clarify or explain further. I hope I've made myself clear. Thanks, T
Paid Search Marketing | | TZ19820 -
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 | | mirabile0 -
301 Redirects and Google Shopping Feeds
I am moving my site from Volusion to Shopify. The domain remains the same but the URL paths are different. With respect to my Google Shopping feed, is it best to send old URLs (with 301 redirects) or to send the new URLs?
Paid Search Marketing | | vgusvg0 -
What is the best way to update Adwords final URLs if I'm moving to a new CMS?
Hi there - One of my clients is redeveloping its website. That means, the domain is remaining the same, but the whole site is being rebuilt in wordpress so all the adwords final URLs need to change OR be redirected. There are 550 live adgroups and 3400 ads. We haven't set up tracking. I can't find anywhere what the best thing to do is in this case. The key issues seem to be: 1. 301 redirects - given we have to do these anyway as part of migration, this seems to be the easiest path as Google is ok about redirects as long as they don't go to a different domain. From what I'm hearing, you don't get adversely impacted in terms of quality score etc. This has the huge advantage that you don't have to edit the ad therefore no loss of statistical history or risk of downtime whilst you wait for approval. HOWEVER, there is some concern that if you then redirected again IN THE FUTURE, the redirect might not work (in some browsers) or cause a loop. I'm also concerned that it's messy to leave it like that (ie: with the wrong URLs throughout). 2. Buik updating ads - I don't think this is an option as if you bulk download and then reupload, Google will see this as a new ad, and delete all the statistical history - I'm also concerned that that WOULD impact quality score as you'd be starting from scratch! 3. Changing each ad individually - as far as I understand you'd have to create copies of all the ads (so that you keep the history of the old ones) and effectively create new ones with the correct URL - one by one. You end up with a messy account (a lot of paused ads) but you keep the history? This is obviously the most time consuming and I can't see a way of avoiding ads having to go in for approval again, given the urls are all different, so you'd have to do this a an ad level, not an adgroup/campaign level etc. People redevelop their websites (without changing domains) all the time. It seems strange that no one is mentioning this problem! Any ideas?! Many thanks
Paid Search Marketing | | catalystmdc0 -
How to track in Google Analytics 2 different subdomains (one for website, the other for PPC landing pages)
Hello Mozers! I have a website with organic visits/goals on www.site.com and a few AdWords Campaign landing pages on lp.site.com whose goals are tracked with both adwords conversion monitoring AND analytics (not imported from analytics into Adword). The landing pages of the campaign have nothing to do with the web site (different cms, they don't link each other, totally isolated) and viceversa. Given that, what would it be the best practice to configure Google Analytics to track the website (www.site.com) AND a PPC campagin (lp.site.com)? I have been told to set up different views of the same property, but do I really need that? Please let me know what are you thinking. Thank you very much. DoMiSoL Rossini
Paid Search Marketing | | DoMiSoL0 -
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 | | SamMaley0 -
Can I dynamically add city name to my PPC ad text and URL based on the user's search?
I have looked into DKI (Dynamic Keyword Insertion), but have not found a solution and thought that some excellent Mozzer might be able to help. Here is the idea: We have landing pages for hundreds of cities. The local content on each of these cities changes page to page, however the keywords that we are going after are the same. So, I am trying to create a dynamic ad group that looks something like this: Headline: {City Name} {Keyword} Description: We cover {City Name} {Keyword}, get more info now! URL: http://www.website.com/{City Name} Please let me know if you can assist with this, B
Paid Search Marketing | | Reis_Inc.0