Google Analytics Dashboard

Realtime insights into Google Analytics within MODX

Creator: Sterc Online Agency (sterc)

Need help installing this extra?

About Google Analytics Dashboard

Google Analytics Dashboard is a custom MODX dashboard widget + component that will show data from Google Analytics. You need a Google Analytics account to use this plugin.

Key features of Google Analytics Dashboard

  • Show visitor, traffic sources, content and search queries
  • Show website goals
  • NEW: Realtime statistics!

Version 2.0.0 will be released 13-09-2017

Information

Released
November 12, 2019

Supported Database
MySQL

License
GPLv2

Supported Versions
2.2 - <2.7

Downloads
22,547

Instructions

Installation

Steps at Google

For usage of the Google Analytics Dashboard Google Analytics API credentials are required. Log in to your Google Account to which your Analytics are linked.

They can be generated at this page [https://console.cloud.google.com/apis/library](https://console.cloud.google.com/apis/library).

Search for 'Analytics API' in the library. Click on 'Analytics API'. On the next page you could choose for 'Enable'.

Go to Credentials. Choose for Create credentials > OAuth client ID.

  • Application type: other.
  • Enter a name and click on 'Create'.

Copy the 'Client ID' and a 'Client secret' to the system settings in MODX.

System settings The following system settings are required for further setup. Go the system settings > Select the namespace 'googleanalytics'.

  • googleanalytics.client_id (Client ID)

  • googleanalytics.client_secret (Client secret)

Extra Go to Extras > Google Analytics. Click on the button 'Authorize'.

Click on 'Get authorization token'. Select your Google account which is used for Analytics. Read about the permissions, click on 'Allow' if you agree with them.

Copy the code to Authorization token field in MODX. Click on 'Authorize'.

A new button 'Settings' will be available. Click on 'Settings'.

Settings In this modal you should select your:

  • Google Analytics account
  • Google Analytics property
  • Google Analytics profile

Click on 'Save'.

Google Analytics is now successfully connected to the Google Analytics Dashboard.

Go to Dashboards and place Analytics realtime and Analytics visitors on the dashboard of choice.

That's it, all done!

What should I do with previous installations of the Google Analytics Dashboard?

  • Remove current widgets from dashboards & delete widget from the widget list
  • Download or update the Google Analytics Dashboard.
  • Install the new Google Analytics Dashboard 2..
  • Uninstall and remove the Google Analytics Dashboard Widget 1.. from package management.

New in 2.0.2-pl

Google Analytics Dashboard Widget 2.0.2

====================================

- Fixed realtime analytics (removed trailing /)

Google Analytics Dashboard Widget 2.0.0

====================================

- Google Analytics Dashboard Widget can now be found under Extras > Google Analytics.

- Convert flash charts to html charts.

- Add widget that shows realtime visitors.

- Add widget that shows visitors and pageviews data.

- Add latest Google API changes.

- Add goals.

- Some bugfixes.

Analytics Dashboard widget 1.0.7

====================================

- Fix Google API urls in widget file

- Add system setting for limiting usergroup access to settings inside widget

Analytics Dashboard widget 1.0.6

====================================

- Fixed XSS vulnerability in site-search

Analytics Dashboard widget 1.0.5

====================================

-Fixed error when authorizing with non analytics account #6

Analytics Dashboard widget 1.0.4

====================================

-Fixed errors in modx log #5

Analytics Dashboard widget 1.0.3

====================================

- Updated Google OAuth

- Updated all API requests

- Changed fix for MODX 2.3 layout

- Fixed cache when changing profile

Analytics Dashboard widget 1.0.2

====================================

- Added quick fix for the dashboard widget layout

Analytics Dashboard widget 1.0.1

====================================

- All data-charts are working again

- Changed MODX.on('ready' to Ext.ready(

- Authentication changed to make domain-verification fool-proof

- Updated the Google's API for listing all the accounts

- Added loading-screen after Analytics profile is selected

Analytics Dashboard widget 1.0.0

====================================

- Vertical tabs

- Added Internel search

- Ability to hide tabs

Current releases

3.0.2-beta
View | Download
August 10, 2022
3.0 - Current

3.0.1-beta
View | Download
June 2, 2022
3.0 - Current

3.0.0-beta
View | Download
December 13, 2021
3.0 - Current

2.0.2-pl
View | Download
November 12, 2019
2.2 - <2.7

2.0.1-pl
View | Download
December 14, 2018
2.2 - Current