views:

197

answers:

2

Hey guys, Is it possible to use another name for the page that is currently being tracked instead of 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

+4  A: 

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

After that, read this post about canonical page.

çağdaş
thanks for the insight :D
The_Butcher
You're welcome :)
çağdaş
+3  A: 

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.

Wyatt Barnett
sho that helped a lot! thanks man..!
The_Butcher