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
-
Change Phone Number Based on Traffic Source + Ping URL for Call Tracking Number
Hi Everyone, Is there a tool that can change the phone number on a web page based on the visitor source (i.e., direct, organic, paid, etc.)? I'd like to implement a solution like this with different call tracking numbers based on the visitor source. We use the Google suite for our analytics (GA, GTM, Google Data Studio, Google Optimize is also an option as well). - Also, is there a good call tracking service that will ping a URL each time the phone number is called so that we can track these calls as events in GA? The majority of our visitors use a desktop PC and dial in the number on the screen rather than clicking (tapping) on it from a mobile device. Thanks, Andy
Reporting & Analytics | | AndyRCWRCM0 -
Does subdomain (or sub sub domain) affect analytics data of root site?
We self-host our public website, but over time have also added subdomains onto it that are not public and are for internal or even client portals. I am seeking advice as to whether those subdomains affect the analytics data (self referrals, visits, bounces) of the public site that I am tasked with analyzing. I feel that it does skew the data but need to build a solid case to move the public website to a new domain, so as to leave the existing one in tact with all of its subs.
Reporting & Analytics | | MarketingGroup0 -
How do I track specific referral traffics journey through a website?
Hello, A client has asked us to track the journey each separate referral traffic visitor takes through out the website. I have had a look through analytics and am not sure how to ensure I can do this for all referral traffic visitors? Can anyone help? Thank you.
Reporting & Analytics | | mblsolutions0 -
GATC New code structure?
Hi Guys, One of my clients has this code showing up, and it is receiving data! Is this normal? First time I ever see such a code! Thanks for clarifying!
Reporting & Analytics | | Ideas-Money-Art0 -
Homepage disappeared from Google's index
The Title says it all..I just discovered that the Homepage is not in Google's index anymore. Homepage rankings have plummeted, our top keywords are nowhere to be found but most of keywords from deeper pages have dropped just one or two places. We just change the website design and some content but I strongly believe this is definitely something else due to the fact that it all happened so fast! There is one thing that I have to mention that might have been caused all this..our email client (Outlook) is using a lot of resources from our server and for the last couple of days the website was down quite a lot.
Reporting & Analytics | | echo1
There are some crawling errors in GWT but the homepage has been crawled because is not there, no other messages. Where should I look for?0 -
URL Re-Structure - Tracking success of it
Hi guys, I was wondering what would be the best approach to track the success of a URL restructure? What we plan to do is to implement the URL re-structure slowly by only having it on new pages which go live for property listings. Any previous listings will use the old URL structure. I thought it would be best to limit any potential problems by testing it on a smaller number of pages. So my question really is, what metrics should I be looking at to determine the success of this given the fact that we remove any property listings once they get rented or sold?
Reporting & Analytics | | MarkScully0 -
Is IP tracking of visitor allowed?
Hi, Google Analytics does not provide IP addresss of the visitors. What if i develop some in-house tracking mechanism to do so? Is it allowed or will Google penalize me if it comes to know about it? Thanks
Reporting & Analytics | | IM_Learner0 -
Google Analtyics Cross Domain Tracking - in a form
I have a 3rd party booking engine that is causing my own domain to show up as a top referreral in google analytics. The vendor is on my very last nerve 🙂 So they're not helping. Would anyone be interested in helping a newbie out with a frustrating problem? Code: Reservations Page - function SubmitReservationForm() {. . . .
Reporting & Analytics | | jenny05
ResLink = "http://www.bookingengine.com/res/vn4/checka.aspx?month=" + Month + "&day=" + Day + "&year=" + Year + "&nights=" + Nights + "&rooms=" + Rooms + "&adults=" + Adults + "&children=" + Children + "&B1=Check+Availability&hotelid=xxxx"
pageTracker._link(ResLink);
return true;
} On Every page: Any thoughts would be appreciated! I believe the problem is pageTracker._link(ResLink); but I'm clueless on fixing it.1