Do custom tracking codes affect indexing?
-
Hello,
My company uses a tracking system that allows our employees to apply a short code snippet to the end of our URLs for marketing attribution. An example of such a code would be: https://www.schoolofmotion.com/?ref_id=moz-test
However, in Google Analytics we are seeing duplicates of our content, where the pages with the individual tracking codes are counted separately from the pages without. From a reporting perspective, this is annoying and definitely worth a fix. However, I'm curious if this problem is affecting our search potential as well. Could this tracking system be splitting traffic in Google's eyes?
From an SEO perspective, how should we approach this? Would canonical tags fix this duplication issue in Google Analytics? Is there something else that we should use?
Thanks in advance. The Moz community is incredible.
-
Glad I could be of help Caleb! & Thank you Dr Peat!
like Dr Peat said it’s tricky when filtering google analytics
Do you know everything you don’t want to have google show you?
Because I’m on my cell phone I have posted some links with examples you will want to do the same thing in search console/webmaster tools
Remove Query String from URLs In Google Analytics like Dr. Pete said need to create a new view in analytics
https://support.google.com/analytics/answer/1009714?hl=en
- Click Admin, and navigate to the account and property to which you want to add the view.
- In the VIEW column, click the menu, then click Create a new view.
- Select Web Site
- Add website
- given a name like filtered
Google created a spreadsheet to automate the process.
Make a copy of this sheet and follow the instructions (clearly laid out on the first tab of the spreadsheet),
you'll be left with a list of all query parameters found in your data from the past N days. When leveraging the spreadsheet, it’s optimal to use a view without any filters on it.
CITE:
https://www.seerinteractive.com/blog/clean-up-query-parameters-google-analytics/
Open Google sheets and make a copy of the "Google Analytics Exclude URL Query Parameters Worksheet"
here:
https://www.bounteous.com/insights/2015/04/17/strip-query-parameters-google-analytics
https://support.google.com/analytics/answer/1010249?hl=en
you can also utilize Google's API for bigger sites https://ga-dev-tools.appspot.com/query-explorer/?csw=1
if you are a regex person this is helpful https://www.lunametrics.com/regex-book/
I hope this helps,
Tom
PbQ9ss7.png jcE3zVG.png n50GYbH.png RPLqssE.png n50GYbH.png RPLqssE.png
-
We'll definitely look into getting Canonical tags on the site. Thank you very much for the thoughtful response and examples.
Cheers!
-
I apologize for the brief reply I have rewritten this three times and somehow closed my page. Anyway, the important part is this is your issue you are not implementing canonical tags
see this image full-size you have no canonical's
To specify which URL that you want people to see in search results. You might prefer people reach your home page via https://www.schoolofmotion.com rather than. https://www.schoolofmotion.com/?ref_id=moz-test
Cite: https://support.google.com/webmasters/answer/139066?hl=en
You are missing a canonical on your homepage and other pages as well this will lead to duplicate content when you post things like
https://www.schoolofmotion.com/?ref_id=moz-test
in order to prevent this query string from becoming a duplicate, you need a self-referencing canonical or a canonical reference from the query string to the correct URL https://www.schoolofmotion.com/?ref_id=moz-test
I've given you 5 URLs to reference and become more familiar with the subject
- https://moz.com/learn/seo/canonicalization
- https://moz.com/blog/rel-canonical
- https://yoast.com/rel-canonical/
- https://yoast.com/duplicate-content/#url-parameter
- https://support.google.com/webmasters/answer/139066?hl=en
**Reverse proxies allow you to set your headers this can be a very efficient way of adding a lot of canonical's if you're using a CMS like Drupal, Magento or WordPress I recommend **
Yoast WordPress SEO, Yoast Drupal SEO & Yoast Magento SEO
The reverse proxies are below
-
https://www.cloudflare.com/features-page-rules/must-use-page-rules/
-
https://wordpresscheat.com/fixing-cloudflare-wordpress-duplicate-content/
( I somehow closed my page 3 times while writing this message so I apologize if it is brief)
please let me know if there's any way I can be of assistance
Tom
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
-
Google Tag Manager for cross-domain tracking
Anybody experience with setting up Google Tag Manager to contain the Analytics script including cross domain tracking? We have a marketingwebsite .com / .com.br and an application running in a subdomain, but have always had some difficulties in getting the cross domain tracking working. Would be great to be able to exchange some experience with fellow Mozzers.
Reporting & Analytics | | jorisbrabants1 -
Two Analytics Code
Hi Moz Community! I've been working with a client’s website and found it has 2 analytics code with same ID. I need to understand which one is correct before removing anyone of them, below are the both scripts. First one Second one Any help would be appreciated! Regards, S
Reporting & Analytics | | ShaunPhilips0 -
Can I move Google tracking from one account to another?
Hi: We've recently taken over the hosting of a client's web site. Is there a way to move the Google Analytics tracking from the old host's account to the client's account without losing all the history?
Reporting & Analytics | | Stamats0 -
Weird Google Analytics tracking question
I have a client that has a market place site, where people list goods and sell them, think something like Etsy. Instead of developing a system to show the users page views and things like that, does it sound reasonable to let them enter a Google Analytics property on the pages they list on, then let them monitor through GA? Does anyone see any fatal flaws in this thinking?
Reporting & Analytics | | LesleyPaone0 -
If I install google Analytics, that can affect my SEO.?
I purchased a site that has a lot of Backlinks and when I started to make changes like installing google analytics! i suspect the performance in search engine was getting worst because of that, so I removed.
Reporting & Analytics | | pparma
Now I'm trying MOZ and needs GA, should I install it again??
Maybe it analyces the backlinks and tells google, I don't know, is that possible?0 -
Ga event tracking and GAC code placement
Just relaunched website and since then specific event tracking has zeroed. I copied event tracking directly from old site so it should work. Overall analytics are fine. Only variable I can think of is where google analytics code is placed. Does GAC code need to be on HTML header or at end of body specifically for event tracking to work? Example: Steripen.com/freedom/... When user clicks "REI" icon, this tracks an event that a user clicked on one of our"retailer links." Any feedback is greatly appreciated.
Reporting & Analytics | | Timmmmy0 -
Call Tracking Services - Canada
Does anyone have any recommendations for call tracking services that service Canada? If so, have you used them personally? Was set up difficult?
Reporting & Analytics | | Stevej240 -
Tracking Email campaign
I generated the following URL to track visits from newsletter. http://www.example.com/ ?utm_source=newsletter1&utm_medium=email&utm_campaign=newletter2109 Do i have to use this link in our email ? My question is it looks ugly. How do i shorten this ? Using bit.ly ? But isn't it true that URL shortening services such as bitly, as some can increase the likelihood of email being marked as spam
Reporting & Analytics | | seoug_20051