WordPress.org

Plugin Directory

!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Google Analytics Dashboard

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

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.9.13
Last Updated: 2 years ago
Active Installs: 50,000+

Ratings

2.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

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
50,6,3
54,13,7
50,14,7
50,2,1
40,10,4 91,11,10
55,11,6
75,4,3
89,9,8
50,2,1
0,2,0
100,3,3
100,1,1
0,1,0
100,1,1
75,4,3 0,43,0 69,13,9
50,2,1
50,2,1
0,1,0
0,1,0
0,15,0
0,2,0
0,1,0
100,1,1
0,1,0