0

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 www.mysite.com/1234/ and www.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?

2 Answers 2

1

In your google analytics code you can pass the canonical URL

See this https://stackoverflow.com/a/9108454

0

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: http://support.google.com/analytics/bin/answer.py?hl=en-GB&answer=1010249

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.