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
-
Which URL should I choose when combining content?
I am combining content from two similar articles into one. URL 1 has a featured snippet and better URL structure, but only 5,000 page views in the last 6 month, and has 39 keywords ranking in the top 10. URL 2 has worse structure, but over 100k page views in the last 6 months, and 236 keywords in the top 10. Basically, I'm wondering if I keep the one with the better URL structure or the one with more traffic. The deleted URL will be redirected to whichever I keep.
Intermediate & Advanced SEO | | curtis-yakketyyak0 -
Creating Redirect Maps -To include PDFs or Not to include PDFs?
When creating a redirect map for a site re-build or domain change, it is necessary to include .PDFs or any other non-HTML URLs? Do PDFs even carry "seo juice" over? When switching CMS, does it even matter to include them? Thanks!
Intermediate & Advanced SEO | | emilydavidson0 -
If I own a .com url and also have the same url with .net, .info, .org, will I want to point them to the .com IP address?
I have a domain, for example, mydomain.com and I purchased mydomain.net, mydomain.info, and mydomain.org. Should I point the host @ to the IP where the .com is hosted in wpengine? I am not doing anything with the .org, .info, .net domains. I simply purchased them to prevent competitors from buying the domains.
Intermediate & Advanced SEO | | djlittman0 -
Should sitemap include https pages?
Hi guys, Trying to figure out some onsite issues I've been having. Would appreciate any feedback on the following 2 questions: My homepage (http://mysite.com) is a 301 redirect to https://mysite.com, which is under SSL. Only 2 pages of my site are https, the rest are http. Should the directory of my sitemap be https://mysite.com/sitemap.xml or should it be kept with http (even though the redirected homepage is to https)? Should my sitemap include the https pages (only 2 pages) as well as the http? Thanks, G
Intermediate & Advanced SEO | | G.Anderson0 -
How do I best handle a minor URL change?
My company is about to complete an upgrade to our website but part of this will be changing the URLs slightly. Mainly the .aspx suffix will be dropped off the pages that we're most worried about. The current URLs will automatically redirect to the new pages, will this be enough or will there be an SEO impact? If it helps the site is www.duracard.com and the product pages are the ones we want to keep ranked. For instance if someone searches for "plastic gift cards" our page '<cite>https://www.duracard.com/products/plastic-gift-cards.aspx</cite>' is #3 and we want to make sure it stays that way once we change it to 'https://www.duracard.com/products/plastic-gift-cards'. Any advice would be greatly appreciated, thank you!
Intermediate & Advanced SEO | | Andrea.G0 -
Internal Links not being Identified on OSE
Greetings Mozzers, When ever I check my home page on OSE it says I have a total of 5 internal links. Obviously this is WAY off. I've used all relative links, if I were to removed all relative and make them absolute, would there be a better chance of OSE identifying them instead of losing that juice? I think this is huge to resolve as when I compare my site to competitors, almost all factors are in our favor except this huge gap of only 5 internal links. I'm using Drupal CMS. For example, Drupal normally outputs internal links as "/about" and "/about/team" in the menus. If we changed it to "https://monsterweb.net/about", and "https://monsterweb.net/about/team", would that make a difference? Thanks for all the advice and clarification on this matter.
Intermediate & Advanced SEO | | MonsterWeb280 -
Spammy? Long URLs
Hi All: Is it true that URLs such as this following one are viewed as "spammy" (besides being too long) and that such URLs will negatively affect ranks for keywords and page ranks: http://www.repairsuniverse.com/ipod-parts-ipod-touch-replacement-repair-parts-ipod-touch-1st-gen-replacement-repair-parts.html My thinking is that the page will perform better once it is 301 redirected to a shorter page name, such as: http://www.repairsuniverse.com/ipod-touch-1G-replacement-parts.html It also appears that these long URLs are also more likely to break, creating unnecessary 404s. <colgroup><col width="301"></colgroup> Thanks for your insight on this issue!
Intermediate & Advanced SEO | | holdtheonion0 -
We are changing ?page= dynamic url's to /page/ static urls. Will this hurt the progress we have made with the pages using dynamic addresses?
Question about changing url from dynamic to static to improve SEO but concern about hurting progress made so far.
Intermediate & Advanced SEO | | h3counsel0