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
-
I am confuse with google analytic custom and segment report
Hi All, In google analytic when I create custom report for my ecommerce site then figures go mad. I really not able to judge peformance of device, browser and it's version, conversion, ecommerce conversion rate etc. same way if I add secondary dimension in report then also figures are not accurate. Again when I create different segment like desktop, mobile, tablet then in tablet segment mobile devices comes and in mobile device tablet appear why segment also not accurate? Is it because I am using free version? Also do we have alternative of google analytic which give same report like google analytic either device, browser, os, segment, enhance ecommerce etc? Thanks!
Reporting & Analytics | | dhisman0 -
Cross domain tracking Google Analytics
Hi there, Got a question on cross domain tracking: We have a couple of TLD's to serve localized content to our visitors, next to our main .com TLD where our app is running as well in a subdomain. Situation is this: Local sites:
Reporting & Analytics | | jorisbrabants
marketingsite.be
marketingsite.com.br
marketingsite.fr Main site: marketingsite.com
app.marketingsite.com Conversion gets triggered when somebody ends up in app.marketingsite.com/firstuse for example. People can sign up at the local site filling in their email but they end up in app.marketingsite.com/firstuse Reading this article on cross domain tracking I'm getting a bit confused on the setup of the tracking code itself. The sample code provided shows these two lines: ga('require', 'linker'); ga('linker:autoLink', ['maindomain.com','targetdomain.com']); Now the question 🙂 Is it correct when I think that maindomain should be replaced with our local TLD's on every one of those, and that targetdomain is where the conversion happens? In this case the .com site?0 -
Click-to-call mobile event tracking
Hello! I want to track calls on mobile devices from a website. I was able to successfully set up an event with Google Analytics that tracks when a user clicks the phone # on the website, however, as you know, when someone clicks a phone # using iOS it prompts a display of the # and gives the users two options, Cancel or Call. My question: is there any way to track when the user clicks the 'Call' action? Thanks
Reporting & Analytics | | RangeMarketing0 -
Does a Manual Penalty Affect Other Sites in Same GA Account
Hello Mozzers, I was a bit foolish a couple of years back when first getting into the game, and employed a dodgy agency to do some SEO for me on some sites. Fast forward to this year, and the two sites in my Google Analytics account have been hit with a manual penalty. I decided to ditch the websites and move on, so removed them from my GA account, webmaster tools etc and will simply let them die a death. My question is, do you think this would affect how easy it would be to rank other websites within my GA account? Does anybody have any views on this? Thanks!
Reporting & Analytics | | Marc-FIMA0 -
Does GWT "Fetch as Google Bot" feature affect crawl rate?
Hello Mozians, I have noticed many people saying using GWT fetch as GoogleBot can affect your crawl rate in future, if used regularly. Though, i am not very sure if this is true or just another stale SEO myth. As currently GWT provides a limit of 500 URLs to fetch every month. I hope my doubts will be cleared by the Moz community experts. Thanks!
Reporting & Analytics | | pushkar630 -
How to track link building? What metrics?
I'm an SEO newbie (my main roles are front-end designer and content manager).
Reporting & Analytics | | RSGregC
I've been managing our company's effort to generate links. In the past, trying to develop relationships has gone nowhere. As a result, we're currently mostly creating good content ourselves and posting it on Web2.0 sites (weebly, etc.) and linking back to our site, and then using UAW (unique article wizard) to create a second tier of links to those links. We've been doing this for a while, and our traffic from SEO is going up - but we don't really know how to track our work. Can you please
a) give your opinion about our approach, and
b) tell me which metrics we should be using, and which tools for these metrics? Thank you so much
Greg0 -
What is the best way to track mobile sites in Google Analytics?
Hello! I am wondering what the pros and cons of using the regular Google Analytics tracking code on a mobile site versus the tracking documentation from Google specifically on it found at http://code.google.com/mobile/analytics/docs/web/ which is still in labs mode. Does the mobile specific tracking have the same features as the regular one to be able to track events and report the same statistics? Thanks for the help on this one!
Reporting & Analytics | | CabbageTree0