: Tidy URLs in Google Analytics My Google Analytics is catching a number of URLs where there is a unique GET parameter. It also catches URLs like /pay and /pay/. Is there any way I can
My Google Analytics is catching a number of URLs where there is a unique GET parameter.
It also catches URLs like /pay and /pay/.
Is there any way I can get it to clean up the data and just see tidy page views?
More posts by @Goswami781
2 Comments
Sorted by latest first Latest Oldest Best
Be careful with trailing slashes, as /pay and /pay/ will be treated as two different pages and you may be penalized for duplicate content.
I think the issue is more about tidying up the URLs to make sure there is a trailing slash.
Add the following code to your .htaccess file to add a trailing slash to all URLs. It is also useful to include a canonical link on all of your pages to help eliminate potential duplicate issues.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)([^/])$ example.org// [R=301,L]
If you got to the page with /pay does it load or redirect to /pay/?
When editing your profile you can tell GA to exclude some query parameters
To force GA to skip certain query string parameters when processing we
enter the unwanted parameters in the ‘Exclude URL Query Parameters:’
filed in the ‘Main Website Profile Information’ section.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.