Easy Google Analytics

Version: 4.0
Copyright: Michael A. Gilkes
License: GNU/GPL v2

Minimum Requirements:
 > Joomla 3.10 & 4
 > PHP 7.4+
 
Description:
This is a flexible, simple-to-use system plugin that is used to add Google Analytics 4 
Code (gtag.js) to a Joomla site. It adds the Google tracking code to the head tag of each 
page of the website without having to edit any template code. 

Note, though, that the tracking code will be added at the end of the list of script
tags that Joomla generates, but since the Joomla generated tags usually come before
the template scripts, there is no guarantee that the tracking code will be placed 
immediately after the <head> tag.

Purchase:
This plugin is available for free.

Main features:
 > Automatiaclly places Google Analytics 4 (gtag.js) tracking code in head tag
 > Specify the MEASUREMENT ID for your Web Stream in the Plugin Manager
 > Option to exclude Analytics in Administration backend
 
Changes:
See CHANGELOG.php

Known Issues:
The tracking code may not be the first script tag after the &lt;head&gt; tag, because of 
when the template script tags are added.

Installation:
This plugin is designed for Joomla 3.10 and 4+. To install go to the Extension Manager page of 
Joomla Administrator and upload the package file. Then go to the Plugin Manager page and 
activate the plugin.

Usage:
To use this plugin on the Joomla site, first enable the plugin and configure the default 
parameters in the Plugin Manager. To control which types of users have access to this 
plugin, set the Access Level in the plugin.

Parameters:
Name       -      Default Value      -       Description
==========   =======================   ======================
Measurement ID - G-XXXXX - This is the MEASUREMENT ID of the Google Analytics Data Stream.
Exclude Administration - Yes - If this option is set to Yes, Google Analytics will track access to the Administration pages.
Do Not Add Website Visitors - No - Select 'Yes' if you don't want the Google tag to add website visitors to your remarketing lists on initial page load
Do Not Set First-party Cookie - No - Select 'Yes' if you don’t want the Google tag to set first-party cookies on your site’s domain
Disable Collection of Remarketing Data - No - Select 'Yes' if you want to disable the collection of remarketing data. Googles does not recommend doing this as it will lead to less accurate conversion measurement.

References:
https://support.google.com/analytics/answer/12002338
