开发者

Google analytics page name

开发者 https://www.devze.com 2022-12-09 15:42 出处:网络
Hey guys, Is it possible to use another name for the page that is currently being tracked instead o开发者_Python百科f the url.

Hey guys, Is it possible to use another name for the page that is currently being tracked instead o开发者_Python百科f the url.

The reason I ask is that I have not implemented friendly url slugs instead we have Products/Details/100 or whatever the page is called. So when you login to google analytics you can see 10 000 hits on Products/Details/100 but you do not know what product that is without looking in the DB.

So are there any ways of injecting a page name into the google tracking script or should I just implement friendly url slugs?

Thanks in advance


I think it would be easier and safer if you just implemented the URLs.

After that, read this post about canonical page.


When you make the initial call to the pageTracker you can specify your own url if you don't wish to use the current request. See the documentation on the trackPageview() method for details.

0

精彩评论

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

关注公众号