Skip to content
CMS Max Documentation

Google Analytics

Track website traffic and eCommerce events with Google Analytics 4

Overview

The Google Analytics plugin integrates Google Analytics 4 (GA4) with your CMS Max website. It supports two modes: a simple script-based setup where you paste your GA tracking code, and an advanced server-side eCommerce event tracking mode that sends purchase and product interaction data directly to Google's Measurement Protocol API.

Setup

  1. Navigate to Settings > Plugins
  2. Find Google Analytics and click to open the settings page
  3. Click Save and Install
  4. Choose your tracking method (see below)

Installing Google Analytics automatically enables the cookie policy banner for the tenant. Review Settings > Site Configuration > Cookie Settings after install to confirm the banner copy and privacy-page link are correct for the site.

Google Analytics plugin settings page

Configuration

Google OAuth (Optional)

The plugin provides an OAuth widget to connect your Google account. This is used for account-level features and property discovery.

Basic Script Tracking

If you do not need server-side eCommerce tracking, paste your GA4 tracking script into the Google Analytics Script field. This script is injected into every page on your site unless a visitor has rejected optional cookies.

Field Description
Google Analytics Script Your full GA4 gtag.js tracking snippet. Required when eCommerce event tracking is not enabled.

Server-Side eCommerce Event Tracking

eCommerce event tracking fields

Toggle Track eCommerce Events to enable server-side tracking. This sends purchase and product events directly from your server to GA4 via the Measurement Protocol, providing more reliable data than client-side tracking alone.

Field Description
Measurement ID Your GA4 Measurement ID (e.g. G-XXXXXXXXXX). Found in the GA4 admin under Data Streams, then select your stream.
Measurement API Secret An API secret for the Measurement Protocol. Found in the GA4 admin under Data collection and modification > Data streams, select your stream, then Measurement Protocol API secrets.

When eCommerce tracking is enabled, the script field becomes optional since tracking is handled server-side.