Menu

Professional, performant and accessible Joomla extensions

Join the club of professionals who care about their web site.

Get Swiss made extensions from a team of Joomla core developers!

We do it with love since 2007.

Show me more ...

Get it free

Our mission is to be a gear of the Joomla Ecosystem and their community. We respect the Open Source ideology. That's why we offer fully functional FREE versions of our products. All of our extensions are GPL licensed to give you freedom to use. No calls home to ensure your privacy.

Download

Become a pro

Digital Peak develops professional and rock solid Joomla extensions. Are you looking for advanced features and top support? Our competitive subscription bundles have clear prices and no hidden fees. We even have a relaxed 30 days money back guarantee, no question asked!

Subscribe
Allon Moritz
Owns 1677 cases
Status:
New
Type:
Responsible user:
Access:
Public
Parent Category:
DPAnalytics
Category:
DPAnalytics plugins
Last Updated:
Allon Moritz, Thursday, 28 November 2024 14:17
Created:
Thursday, 28 November 2024 07:45
Hits:
934

Introduction

The DPAnalytics Google Analytics plugin integrates the widely known Google Analytics service into Joomla. The plugin adds a tracking code to your web site which does allow Google Analytics to analyze your visitors behavior. Additionally it is able to track none HTML page requests.

Google Analytics is a powerful web analytics tool provided by Google, designed to help businesses and website owners understand and analyze their web traffic. By leveraging Google Analytics, users can gain valuable insights into how visitors interact with their website, track key metrics, and make informed decisions to optimize their online presence. While Google Analytics is an invaluable tool for understanding website performance and user behavior, its use raises several privacy concerns that businesses and website owners must address. These concerns stem from the data collection practices and legal regulations governing user privacy in different regions.

  1. Traffic Analysis
    Track the number of visitors, their geographic location, device usage, and referral sources to understand how users find your site.

  2. User Behavior Insights
    Analyze how visitors navigate your site, including pages viewed, time spent on each page, and bounce rates.

  3. Goals and Conversions
    Set up goals to track specific user actions like form submissions, purchases, or sign-ups, and measure your website's performance in achieving these objectives.

  4. Real-Time Data
    Monitor user activity on your site in real-time to track immediate trends and events.

  5. Custom Reports
    Create tailored reports to focus on metrics that matter most to your business.

  6. Integration with Other Google Services
    Seamlessly connect with tools like Google Ads, Google Tag Manager, and Search Console to enhance your data tracking capabilities.

Google Analytics dashboard

Client ID/Secret and refresh token import

Before the plugin can display data and add the tracking code, a refresh token must be created. To do that, a client ID and client secret from the Google developer console is needed. This credentials are used to make authenticated requests against the google API endpoint when data should be displayed. It is OAuth authentication and allows you to revoke the credentials at any time without exposing your private username and password.

Create API project

Select in the top bar a project, when you open the console the first time, Google creates an initial "API Project" for you automatically. Then click on the "Enable API's And Services" link.

Google create API project

Enable API

You will get redirected to the API search page. Search for "analytics data" and click on the Google Calendar API result. Now a page comes up where you can activate by clicking on the "Enable" link.

Google enable API

Create client

Go to the "Google Auth Platform", define the branding with a name, support E-Mail and authorized domains. Then go to the clients views and click now on the "Create Client" button and then choose "Web application" from the application list. Put into the "Authorized Javascript origins" your web site url. You have to make sure to set url correctly without any path, and it must start with https. In the "Authorized redirect URIs" field you have to put an url with the following parameters:

https://www.example.com/administrator/index.php?option=com_dpanalytics&task=plugin.action&plugin=google&action=import

Replace example.com with your web site url. This url is important, if it is wrong you can't import the refresh token, you will get a redirect_uri_mismatch error! Yo need also to use HTTPS as scheme as HTTP is not supported. Then click on "Create". After the API client is created, the list of apps is shown. Click on the new client to get the screen with the "Client ID and Secret". Now you are seeing the actual credentials which will be used then later for the import.

Google API client

Import the refresh token

  1. Open the DPAnalytics Google plugin in the back end.
  2. An import dialog is opened where the Client ID and Client Secret from the google developer console can be copied to the form. Make sure you are logged in with the Google account you want to import the calendars, otherwise you will get an error like "Could not json decode the token"!
  3. Click the "Import" button.
  4. Accept the permission questions from Google. If you get a message, that the app isn't verified, then click on the "Show advanced" link and then on the "Go to sitename" link. It will forward you to the permissions page.
  5. The "Client ID/Secrets" and the refresh token should be imported into the DPAnalytics Google Analytics plugin.
Google API client credentials

Plugin Options

Property ID [Type: Text]
The ID of the property to track (starts mostly with G-).
Client ID [Type: Text]
The client ID from the Google developer console to authenticate. Please check the documentation for more information.
Client Secret [Type: Password]
The client secret Google developer console to authenticate. Please check the documentation for more information.
Refresh Token [Type: Dprefreshtoken]
The refresh token is used to authenticate against Google.
Applications [Type: List] [Default: Site]
The applications to track.
The following options are available:
  1. Site
  2. Administrator
  3. API
Include Urls [Type: Subform]
Select the urls to track. If none is slected, then all are included.
Exclude Urls [Type: Subform] [Default: [{"pattern":"*option=com_dpanalytics*"}, {"pattern":"*plugin=RunSchedulerLazy*"}, {"pattern":"*/component/ajax/?format=json*"}]]
Select the urls not to track.
Include User Groups [Type: Usergrouplist]
Select the user groups to track. If none is slected, then all are included.
Exclude User Groups [Type: Usergrouplist]
Select the user groups not to track.
The following options are available:
  1. All

Comments (0)

Latest downloads

We cooked the latest DPCalendar version 10.5.4 for you on 18. December 2025!

Grab your copy here...

Why Digital Peak

Software should work for you – it should be simple, accessible, easy to use and above all, it should do what it says on the tin. But it isn't always the case and unless you have some pretty high level technical knowledge, you are going find it pretty tricky to make it work in the way you want. This is where Digital Peak comes in. The development of products to make your use of software easier and more productive is what we are all about. Well, that, and a lot more besides.

Meet the team ...

Latest Blog Posts

Joomla 6 banner
Joomla 6 compatibility Oct 21 2025

Joomla 6 was released with some amazing new features like core automatic updates. Read on how we handle compatibility with it and what for older Joomla versions we support.

Dashboard with some graphs
Automated testing is essential for Joomla CMS updates Sep 24 2025

For web agencies managing multiple Joomla websites, updates are both a necessity and a risk. Every new Joomla release, whether it’s a security patch or a major version upgrade, keeps sites secure...

Banner
New plugins and adapter to adapter sync Jun 26 2025

DPCalendar comes with a new user group discount setting for the whole booking or only the payment options and with a Bexio (Swiss accounting) payment provider plugin. Beside that does the DPMedia...

Banner
DPCalendar booking experience updated Mar 25 2025

DPCalendar did grow over the years from a pure calendar extension to a massive event booking system. In this release window we put a lot of energy to improve it on different areas and make the...

Gallery banner
DPMedia gallery module Feb 27 2025

In the February 2025 release window we built a brand new DPMedia gallery module which shows your images from the core Joomla media manager on the front end for any adapter like Google Drive, Dropbox or...

Banner for article with a lego robot
Stability window and DPAnalytics preview Nov 28 2024

As we shipped last month DPCalendar 10.0.0 and the other extensions with big architecture changes in our build system, this release window contains mainly stability changes and a couple of nice...