Simple Plugin for Google Analytics is an unofficial WordPress plugin for Google Analytics, with Cookiebot integration.
Settings
Even though this is a really simple plugin, there are settings to:
- Anonymize IPs
- Force SSL
- Ignore administrators
- Choose the location of the script tag (either in
<head>
or <body>
)
Cookiebot integration
If you have installed (and activated) the
Cookiebot WordPress plugin, then “Simple Plugin for Google Analytics” will automatically include the Google Analytics code
only if the user has given consent for “statistics” cookies. Also, it will disable advertising features (the
allow_ad_personalization_signals
option of gtag.js) unless the user has given consent for “marketing” cookies.
Automatic installation
Automatic installation is the easiest option — WordPress will handle the file transfer, and you won’t need to leave your web browser.
- Log in to your WordPress dashboard
- Navigate to the “Plugins” menu
- Search for “Simple Plugin for Google Analytics”
- Click “Install Now” and WordPress will take it from there
- Activate the plugin through the “Plugins” menu in WordPress
Manual installation
- Upload the entire
overengineer-gasp
folder to the wp-content/plugins/
directory
- Activate the plugin through the “Plugins” menu in WordPress
After activation
- In your WordPress dashboard, under “Settings”, you will find the “Google Analytics” menu
- Copy-paste your Google Analytics ID
- Change any other options
- Click “Save Changes”
To find your Google Analytics ID:
- Sign in to your Analytics account
- Click Admin
- Select an account from the menu in the ACCOUNT column
- Select a property from the menu in the PROPERTY column.
- Under PROPERTY, click Tracking Info > Tracking Code.
Your Google Analytics ID is displayed at the top of the page.
The
tracking ID is a string like
UA-000000-2
. It must be included in your tracking code to tell Analytics which account and property to send data to.
Refer to the
official Analytics Help for more.