how to use this plugin in the actual site

20 views
Skip to first unread message

Serkan Güler

unread,
Oct 19, 2009, 10:08:16 AM10/19/09
to GAD Wordpress Plugin
Hi Guys,

It works great on dashboard. But is there any way to use in on the
actual sidebar of web site?

Thanks

Carson

unread,
Oct 22, 2009, 9:17:42 AM10/22/09
to GAD Wordpress Plugin
Right now the easiest way to put it in the sidebar is to modify your
theme. You can add the following snippet of PHP to your sidebar in
your theme and it will show a sparkline for that page:

$data = new GADWidgetData();
echo $data->gadpageviewssparkline(substr($SERVER["REQUESTURI"], -20));

There are other options as well but you would need to look at the code
to find them. I've got embedding it in the sidebar on my todo list but
I just haven't had the time to get to it yet.

Carson
Reply all
Reply to author
Forward
0 new messages