How to Connect Google Analytics to a Joomla Site Using Shack Analytics

Documentation for Joomla 3

The Shack Analytics extension allows you to analyze visitors' traffic to and engagement with your Joomla site using Google Analytics. For this to happen, you need first to connect your Joomla site to your Google Analytics account.

Here is how you can do this.

  • Sign up for a free Gmail account with Google at mail.google.com.
  • Log into your Gmail account.
  • Visit the Google Analytics main page at analytics.google.com.
  • Sign up for your Google Universal Analytics account.

Note: Universal Analytics properties will stop collecting data starting July 1, 2023. It’s recommended that you create a Google Analytics 4 property instead. 

  • On the left-hand menu on your Google Analytics Home page, click "Admin":

click admin

  • You will be taken to the "Admin" screen. In the middle column, click "Property Settings":

click property settings

  • This will bring up the "Property" page. Copy the "Tracking Id" of your Google Analytics account:

copy the tracking id

  • In your Joomla administrator panel, go to "Components" > "Shack Analytics Pro":

go to components and then to shack analytics pro

  • You will be presented with the "Shack Analytics: Tracking Tag" administrative screen. On the left-hand side of the screen, click "System - Shack Analytics":

click system shack analytics

  • Enter the Property ID of your Google Analytics 4 account into the "Measurement ID" field:

enter universal property id

  • Click "Save" or "Save & Close".
  • Check the HTML source code of your Joomla site. You should see the Google Analytics code in the <head> of your site code:

google analytics code in the html source code

This confirms that your Joomla site is now connected to your Google Analytics account.

Documentation for Joomla 4

The Shack Analytics Pro Joomla 4 extension allows you to analyze visitors' traffic to and engagement with your Joomla site using Google Analytics. For this to happen, you need first to connect your Joomla site to your Google Analytics account.

Here is how you can do this.

  • Sign up for a free Gmail account with Google at mail.google.com.
  • Log into your Gmail account.
  • Visit the Google Analytics main page at analytics.google.com.
  • Sign up for a Google Universal Analytics account.

Note: Universal Analytics properties will stop collecting data starting July 1, 2023. It’s recommended that you create a Google Analytics 4 property instead. 

  • On the left-hand menu on your Google Analytics Home page, click "Admin":

click admin

  • You will be taken to the "Admin" screen. In the middle column, click "Property Settings":

click property settings

  • This will bring up the "Property" page. Copy the ID of your Google Universal Analytics account:

copy the tracking id

  • In your Joomla 4 admin dashboard, go to "Components" > "Shack Analytics Pro" > "System - Shack Analytics":

the system shack analytics plugin navigation link

  • You will be presented with the "Plugins: System - Shack Analytics" admin screen, as shown in the next image. Set the "Google Analytics" parameter to "GA V4":

the google analytics parameter set to ga v4 option

  • Enter the "Measurnemt ID" of your Google Analytics 4 Property into the "Measurement ID" field, as you can see in the next image.

Note: In case you need help with creating a Google Analytics 4 Property, consult relevant Google Documentation.

the measurement id in the measurement id field

  • Click "Save" or "Save & Close".
  • Check the HTML source code of your Joomla 4 site. You should see the Google Analytics code in the <head> of your site code:

the google analytics v4 tracking code in the html source code

This confirms that your Joomla site is now connected to your Google Analytics account.