We are getting double listings on most of our urls in Google Analytics, such as the following:
/Home/Specials
/Home/Specials/
The website is MS MVC3-based. The first usually shows a short loading period with an almost zero exit rate. Most of the real user data is on the second (the ones with the slash suffix).
What is the resolution for hiding the first?
The issue is caused by the duplicate tracking done by Analytics itself and the jQuery address script (the latter adds the trailing slash). The jQuery code adds tracking on AJAX posts, so it’s useful for pages like search results.
To resolve the issue, we simply removed the following line from the core script provided by Analytics: