This plugin will give you access to your Google Analytics data directly inside your WordPress blog.
To embed Google Analytics data into a post use the following syntax: [stattype: option, option, ...].
The currently available stat types are:
Examples:
The following will be replaced by the number of pageviews for the current page or post over the past 30 days when embedded in that page or post:
[pageviews]
The following will be replaced by a sparkline that represents the number of pageviews for the current page or post over the past 30 days when embedded in that page or post:
[pageviews: sparkline]
There is also a widget that can embed analytics on every page, just check out the widgets section. Widgets are only supported with WordPress 2.8 and above.
If you want to embed the analytics directly in a theme you can also call them directly. Here is an example of what you would would use:
<?php $data = new GADWidgetData(); echo $data->gad_pageviews_sparkline(substr($_SERVER["REQUEST_URI"], -20)); ?>
Requires: 2.8 or higher
Compatible up to: 3.1.0
Last Updated: 2011-3-8
Downloads: 177,707




