: Reporting on Specific Event Label in Google Analytics I am tracking the pageviews that each of my authors' articles generates on a Wordpress site with Google Analytics Event Tracking: var pageTracker
I am tracking the pageviews that each of my authors' articles generates on a Wordpress site with Google Analytics Event Tracking:
var pageTracker = _gat._getTracker("UA-xxxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}
<?php if ( is_singular()) { ?>
pageTracker._trackEvent('Authors','viewed','<?php the_author_meta('ID'); ?>');
<?php } ?>
I have an event category "Authors" and there's an event label for each of their IDs. How can I give each author access to the data for their respective label without giving them access to other author's stats and the sites stats as a whole?
More posts by @Mendez628
2 Comments
Sorted by latest first Latest Oldest Best
For a quick solution you can:
email reports, using your existing events (thus giving the author the information you have collected with the event thus far)
insert an iframe with a small page containing the tracking code (which can be hidden), or if the author prefers they can host a small page themselves elsewhere (living with the slightly decreased page speed)
give the advice on www.webmasterworld.com/analytics/3781851.htm a shot - here they use different variable names for the tracker and call _initData() before _trackPageview()
You can set up multiple profiles for each site you add to Analytics, and give users access to specific profiles. I believe then it would simply be a matter of duplication the tracking code for the author on the page, something like this:
var pageTracker = _gat._getTracker("UA-base-code");
pageTracker._trackPageview();
var pageTracker = _gat._getTracker("UA-profile-code");
pageTracker._trackPageview();
} catch(err) {}
UA-base-code would be your ID for the main site profile (accessible by you) and UA-profile-code would be the profile associated with the article's author.
If that doesn't work, you might want to take a look at the Analytics API - it would take a bit of work, but you could create a mini app that just gives each user the appropriate data.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.