开发者

Is there a way in Google Analytics to check the javascript hashes typed in the URL?

开发者 https://www.devze.com 2022-12-31 12:59 出处:网络
I mean, for example an user types an address like this http://www.mydomain.com/#hi_guys Where may I handle this kind of hashes in Goog开发者_如何学Gole Analytics?

I mean, for example an user types an address like this

http://www.mydomain.com/#hi_guys

Where may I handle this kind of hashes in Goog开发者_如何学Gole Analytics?

Thank you.


the _setAllowHash allows GA to look at the hash data for parameters, but I don't think that it forces GA to report on the hash part of the URL. However, you can pass a parameter into the _trackPageview method which is recorded rather than the real path, so in this case you could do something like

pageTracker._trackPageview('/ajax/hi_guys');
0

精彩评论

暂无评论...
验证码 换一张
取 消