Mobile app version of vmapp.org
Login or Join
Goswami781

: 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

@Goswami781

Posted in: #CanonicalUrl #DuplicateContent #GoogleAnalytics

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Goswami781

2 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

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]

10% popularity Vote Up Vote Down


 

@LarsenBagley505

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme