Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Tracking pages with variables in GA Recently I have updated my site, it now passes a variable on some links like so... www.mysite.com/1234/?play=true I've noticed in Google Analytics it records

@Nimeshi995

Posted in: #DuplicateContent #GoogleAnalytics

Recently I have updated my site, it now passes a variable on some links like so... mysite.com/1234/?play=true
I've noticed in Google Analytics it records mysite.com/1234/ and mysite.com/1234/?play=true as two different URL's. Is there a way to merge them because they are after all just one page, It makes "Top Content" for example hard to read because of dupilicates.

I've read about something called canonical link tag which may help this? My blog has this already inserted into the head but it doesnt make a difference.

Any suggestions?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

2 Comments

Sorted by latest first Latest Oldest Best

 

@Murray432

In your google analytics code you can pass the canonical URL

See this stackoverflow.com/a/9108454

10% popularity Vote Up Vote Down


 

@Rivera981

Google Analytics doesn't use canonical urls by default.

From Google Analytics perspective those are two different pages. If that parement doesn't affect the page at all and you want to ignore it for reporting purposes than you have to tell Google Analytics to ignore that parameter.

The best solution for you here is to ignore the query parameters that don't change the page at all. You can do that in the Profile Settings Screen.

Click on Admin > Profile Settings

Then on the Exclude Query Parameters text box just type: play

Note that it will only work from now on. The previous dates will still have that parameter because Google Analytics data can't be changed after processed.

Reference: support.google.com/analytics/bin/answer.py?hl=en-GB&answer=1010249

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme