ggendre / GALocalStorage

A google analytics version that works with localstorage instead of cookies for webviews usage (deprecated)
114 stars 46 forks source link

how can i track pageview names without '/' prefix ? #16

Open lalthomas opened 10 years ago

lalthomas commented 10 years ago

First of all thank you for helpful library.I was in search of such a one. When I tried to use the library, but it is prefixing an extra / for the page views' page title which I don't need. I tried to figure it out but I couldn't.

The code snippet,

ga_storage._trackPageview('sample page', 'optional title');

is producing the result (watch the page title)

 Page           Page Title  Pageviews (Last 30 min)
 1.         /sample page    optional title  2   40.00%