Topic: Google Analytics

Just a wee teaser.

I am wrapping up my new plugin which will augment the dashboards front page with the below display.
Options to Control who sees it: Admin / Editors and stats for the Last 30 & Last 7 days

I hope to have it finished over the next few days with publishing shortly there after. It has been quite an interesting project, first using the Google Analytics Embed setup then quickly realising I'd have to play with the analytic and oath APIs as my scope was to big for embed.


http://www.mightyhaggis.com/public/uploads/plugins/analytics/analytics-monstra-forum.jpg

will's Website

Re: Google Analytics

thanks im waiting for it

3 Today 10:19:40

Re: Google Analytics

@will

That seems fucking great, that is a great ideia and it looks nice too, you have it running on 3.0.1 yet? wink
well done mate!

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

4

Re: Google Analytics

@wormsunited

Yes working in Monstra 3.0.1 I'm finishing off and tidying up the code, time is my issue at the moment.
Its taken a fair amount of effort and iterations to get to this point (have a few tweaks planned for later), not to mention figuring out Monstra, so I appreciate you comments smile

Setup:
In order to use the plugin an Admin with a google account that has access rights to the sites analytics needs to enable the analytics API in their developer's account and setup OAuth credentials. Essentially they then grant Monstra Dashboard access rights to the stats.
The output is cached to keep things fast as there are lots of API calls, this is not real-time stats anyway.

Once installed the plugin auto calls itself via the admin_pre_template function and outputs its data under the quick links on the dashboard frontpage via admin_post_template function so the template needs to be unmodified from Monstra standard or at least have the admin_post_template output call.

I've coded the settings modal with the intent of implementing similar in the Plugin settings feature i've mentioned before.

will's Website