WordPress.org

Ready to get started?Download WordPress

Plugin Directory

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.2
Last Updated: 2014-7-28
Downloads: 502,401

Ratings

4 stars
4.1 out of 5 stars

Support

0 of 18 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
1 person says 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