Changing URLs to include a fixed identifier or ID
-
The Scenario: I got pages that I need to track, located in a domain, within several folders. Adding a common identifier or ID (eg. www.domain.com/folder/page-name-identifier.html) in those URL's will ease my work so I would be able to select, in Anlx, all traffic including URL's with that specific identifier. URL's for which track is needed lack this identifier today.
My Plan: add identifier (7 letters fixed and common for all URLs) to those existing pages and 301 redirect from old to new URL's
My Question: will this change of URL's and redirections SEO-hurt me in anyway?
-
I agree with Andrew. If you use GA, custom variables are the way to go. You can actually put several parameters onto a page and have them in plain English without have to have a bunch of crazy stuff in the URL. We use this on a site and it works quite nice.
What is great about this too, is that since this is all in GA and if you have goal and goal values setup you get all types of insights into what are the most valuable categories etc on your site.
If you do need to change the URL, setup the 301 redirects from the old URL to the new URL and you should be fine, especially if you have a 1 to 1 relationship with those 301 redirects.
One thing to consider, we have setup urls for articles etc that read like this
www.domain.com/folder/######-page-name-slug-here.html
The ###### is a ID number for the content that we use internally in our CMS. We are then able to use the ###### as a fail safe in the URL structure if there is some other error in the url when it is types in or linked to
for example
www.domain.com/folder/######-page-name-
www.domain.com/folder/######-page-name-slug-here.
www.domain.com/folder/######-page
www.domain.com/folder/######-page-nam
www.domain.com/folder/######-Page-Name-Slug-Here.html
www.domain.com/folder/######-page-name-slug-here.htm
We setup our system so that if any of the examples wrong URLs occur above, the system can use the folder and the ID to always 301 redirect to
www.domain.com/folder/######-page-name-slug-here.html
As we have the ID as the absolute identifier. We have found this helpful with the inevitable issues that may come up with an incomplete URL.
Good luck!
-
In theory, nothing should change and it should not hurt your SEO, but there's always some risk involved whenever you start redirecting pages. There may be some authority that's lost or Google may take some time and shuffle things around for a while. So, I would consider if there are other options. If you have good rankings for these pages, see if there's another way that you can track the traffic in a reliable way before you go messing around with 301 redirects. If it's the only way to track what you need to track, then what you're planning should work in theory.
-
Howdy!
Instead of messing about with URLs, have you considered using Google Analytics custom variables?
They're quite simple, and may make your life a lot easier: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables
Kind Regards,
Andrew
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
-
How should you determine the preferred URL structure?
Hi Guys, When migrating to a new CMS which include new pages how should you determine the URL structure, specifically: So should we include www. or without it? Should the URL have a trailing slash? How would you determine the answer to these questions? Cheers.
Intermediate & Advanced SEO | | kayl870 -
What to do with parameter urls?
We have a ton of ugly parameter urls that are coming up in google, in semrush, etc. What do we do with them? I know they can cause issues. EX https://www.hibbshomes.com/wp-content/themes/highstand/assets/js/cubeportfolio/js/jquery.cubeportfolio.min.js?ver=6.3
Intermediate & Advanced SEO | | stldanni0 -
Product or Shop in URL
What do you think is better for seo and for sale, I am using woo-ecommerce for health products website. websitename.com/product/keyword OR websitename.com/shop/keyword
Intermediate & Advanced SEO | | MasonBaker0 -
Strange URLs, how do I fix this?
I've just check Majestic and have seen around 50 links coming from one of my other sites. The links all look like this: http://www.dwww.mysite.com
Intermediate & Advanced SEO | | JohnPeters
http://www.eee.mysite.com
http://www.w.mysite.com The site these links are coming from is a html site. Any ideas whats going on or a way to get rid of these urls? When I visit the strange URLs such as http://www.dwww.mysite.com, it shows the home page of http://www.mysite.com. Is there a way to redirect anything like this back to the home page?0 -
Two homepage urls
We have two different homepages for our website. One is designed for daytime users (i.e. businesses), whereas the second night version is designed with home consumers in mind. Is this hurting our SEO by having two homepage urls, instead of just building a strong presence around one? We have set up canonical meta on each one: On the night version: domain.com/indexnight.html we have a On the day version: domain.com/index.html we have a It seems to me that we should just choose one of them and set up a permanent 301 redirect from one to the other. Any assistance would be greatly appreciated, thank you!
Intermediate & Advanced SEO | | JessieT0 -
Sudden increase in number of indexed URLs. How ca I know what URLs these are?
We saw a spike in the total number of indexed URLs (17,000 to 165,000)--what would be the most efficient way to find out what the newly indexed URLs are?
Intermediate & Advanced SEO | | nicole.healthline0 -
How to determine URL Parameters in Google Webmaster
Hi there! I have a new website with so many duplicate meta titles and descriptions because of its expanded features from the e-commerce shopping cart that I am using like mobile website, product sorting, etc. Aside from canonical, is it advisable to use the URL parameters from Google webmaster tools to disallow crawling of mobile website and other parameters like, "parent", "catalogsetview", "pcsid", "pg" "mode". I appreciate and advise. 🙂 Thanks!
Intermediate & Advanced SEO | | paumer800 -
Strategies in Renaming URLs
We're renaming all of our Product URLs (because we're changing eCommerce Platforms), and I'm trying to determine the best strategy to take. Currently, they are all based on product SKUs. For example, Bacon Dental Floss is: http://www.stupid.com/fun/BFLS.html Right now, I'm thinking of just using the Product name. For example, Bacon Dental Floss would become: http://www.stupid.com/fun/bacon-dental-floss.html Is this strategy the best for SEO? Any better ideas? Thanks!
Intermediate & Advanced SEO | | JustinStupid0