O this is really cool. Good work Dave.
.................
I have some questions hopefully not to far off the beaten track, I havent played with GA before.
We are creating a site with tons and tons of client content ( for sale stuff )
So eg. a typical site page maybe www.domain.com/forsale/itemid_12345
Thats just a very crass example. We have GA on every single page of the site.
A user may list say 3 itmes for sale, the ids of which are arbitrary but are fetched from our db. They could be : itemid_12345 , itemid_23456,itemid_333456
etc.
So I am trying to create a analytics module in their usercp, where they can view analytics for their ads.
Essentially what I want to do, is onlick fetch results for a particular itemid_xxxxx and display it to that user.
Can we do this on the fly ..
I notice in our analytics code we have:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxx-1']);
_gaq.push(['_setDomainName', 'domain.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
track pageview etc, but can we inject into this somehow an item id. ( same as the page id used to fetch the ad details for a particular page )
I am betting this is a function already and my ineptitude is showing .. just wanted some pointers. We cannot go into analytics and add every single page as a individual page to our analytics ,it would get mad.
Lastly apologies but , can you give some examples somewhere of other data we can parse and represent on page, like on your web page . Pie charts, visitor countries, referring urls , browser stuff etc…