1 (edited by will 2015-10-30 00:19:46)

Topic: Google Analytics

Updated



Ok... So, although I have been using this plugin in some form for a while I have made some major changes over the last few days and there may be a bug or 2 that I have not ironed out. I promised it today though so here it is please treat as Beta.
https://github.com/mightyhaggis/monstra-analytics

I've not had time to write a site update...

You will need:

  • Analytics operational on your site for stats

  • A google account that has permission to access the stats

  • Your account to be setup as a google developer

  • In your developer account the analytics api activated

  • OAuth credentials setup

  • The View ID from analytics. Located under the Admin tab > Account / property / View > View settings. prefix the number with ga:

Settings in the plugin provides details along with the oauth callback path (Redirect URIs) that you need to set in OAuth credentials.

Note that the plugin can't be run locally unless you have SSL setup as google oauth needs a secure link and make sure that any adblockers are turned off / whitelist you site as they stop the google apis loading

Let me know what you think smile

will's Website

Re: Google Analytics

thanks im waiting for it

3 2015-06-01 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

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

5 2015-06-02 09:22:27

Re: Google Analytics

@will

That is perfect, well done, simple and easy to work. Can´t wait to test it. wink

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

6 (edited by will 2015-06-04 07:27:59)

Re: Google Analytics

Plugin will be available on Saturday morning GMT

will's Website

7 2015-06-05 09:38:05

Re: Google Analytics

Sounds lovely yeah! Keep up the good work

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

Re: Google Analytics

Looks really nice smile

9 (edited by will 2015-06-06 22:22:52)

Re: Google Analytics

Updated.

See top post.

will's Website

Re: Google Analytics

really nice thanks !

(с) Roman Art
So far So good wink

RomanArt's Website

Re: Google Analytics

@will

Really nice work mate, indeed.

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

12 2015-06-07 22:31:16

Re: Google Analytics

I Love U !!! THANKS!

13 2015-06-08 10:20:47

Re: Google Analytics

@will

we all love you mate heheheheheheheehehehe!

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

14 (edited by will 2015-06-08 21:57:10)

Re: Google Analytics

big_smile Great that it is proving useful.

will's Website

Re: Google Analytics

It seem great good job