Url rewriting filtered results for Google analytics
I have a page on my site that uses query strings to filter
results. In order to output the information I require I need to use the node Id
and the category name. For the purposes of google analytics I need to
rewrite the url and I was wondering if the following is valid or if there is a
better rewrite rule I should use to make it more google friendly?
Url rewriting filtered results for Google analytics
I have a page on my site that uses query strings to filter results. In order to output the information I require I need to use the node Id and the category name. For the purposes of google analytics I need to rewrite the url and I was wondering if the following is valid or if there is a better rewrite rule I should use to make it more google friendly?
Querystring url = http://localhost/page-name/?cat=1338-categoryname
Rewrite = http://localhost/page-name/1338-categoryname
The best way to structure the (rewritten) url would be as follows:
http://localhost/page-name/categoryname/1338
There are a couple of things to note with this for SEO:
- it is best to have the category name seperated
- there is some evidence that the keywords to the left hold more weight, but it is more important that it is consistent
/Euan
Thanks Euan that's really helpful advice!
Ally
No worries!
Another thing I thought of is the link text: to get the best results you should have the a tags that link to the page like so:
<a href="http://localhost/page-name/categoryname/1338">categoryname</a>
Cheers,
Euan
is working on a reply...