Plugin Directory

Google Analytics Dashboard

This plugin will give you access to your Google Analytics data directly inside your WordPress blog.

Download Version 2.0.3

Usage

Embedding

To embed Google Analytics data into a post use the following syntax: [stattype: option, option, ...].

The currently available stat types are:

  • pageviews - options: sparkline

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

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(50 ratings)

Compatibility

+
=
Not enough data

1 person says it works.
1 person says it's broken.

Log in to vote.

100,2,2 100,1,1
100,1,1
100,4,4
88,8,7
0,1,0
60,10,6
100,1,1
75,4,3
67,3,2
0,1,0 20,5,1 17,6,1 89,9,8
80,5,4
50,4,2
50,2,1
0,1,0
50,2,1
73,15,11
40,5,2
50,2,1