How do you create tracking URLs in Wordpress without creating duplicate pages?
-
I use Wordpress as my CMS, but I want to track click activity to my RFQ page from different products and services on my site. The easiest way to do this is through adding a string to the end of a URL (ala http://www.netrepid.com/request-for-quote/?=colocation)
The downside to this, of course, is that when Moz does its crawl diagnostic every week, I get notified that I have multiple pages with the same page title and the dup content.
I'm not a programming expert, but I'm pretty handy with Wordpress and know a thing or two about 'href-fing' (yeah, that's a thing). Can someone who tracks click activity in WP with URL variables please enlighten me on how to do this without creating dup pages?
Appreciate your expertise. Thanks!
-
You can add the following to the robots.txt file to ask the crawler to ignore the parameter currently being included such as:
Disallow: /*?=
-
Not a bad idea, and I can do that right from my SEO plugin of choice.
Dummy ?'s: Will that disallow addition catch them even if they are at the end of a child page? Also, for correct coding, wouldn't I need the wildcard to go after the ?=, ie
Disallow: /?=* and not place the * in front of the ?=...
Please clarify for me before I add this line of code.
Thanks for your help Dean! Sorry for the late edit of the question.