Solve Your Query String problem
Wednesday, November 28th, 2007If your company is like the company I am contracting with, then you will have multiple partners pointing to your site each one with a unique query string. Those query strings are important for your statistics, so that way you track which one of your partners’ sites your users are coming from.
But as you may already know there is an SEO problem here. Because Google treats sites with different query string as different pages/sites when it comes to ranking, your website will not get the ranking it truly deserves no matter how many partners are linking to it.
To solve this issue without rewriting your site and its logic, there are 3 options, or should I say SEO Methods that you can choose from.:
SEO Method 1: Block all affiliate landing pages from search engines. This takes out duplicate content issues.
SEO Method 2: Record the click transaction right away, then do a 301 redirect immediately to a URL without the tracking code and just pass the session as a cookie and if page a does a 301 to page b and a link goes to page a it is like having a link to page b. If it redirects using a 301 redirect.
Note: This is by far the most common implemented technique.
SEO Method 3: Convert querystring symble from “?” to “#”. Google ignores everything after # sign as comment. This will require some javascript coding and URL rewriting.
For example: domain.com/path/file.aspx#param=value
Note: I have not tried this myself but I have seen it done and also my fellow SEO experts who have tried it testify that it works:
Remember when developing websites, it is important to try to stay away from query strings as much as possible. If you MUST use query strings, then I suggest you try to keep them as short and as possible as possible. And if you have multiple partners and affiliate website pointing to your website with different query strings, then choose the best option, or “SEO Method” mentioned above that seems to be feasible for you and the one that is right for your site.