Install the Pixel with GTM
Connect a Google Tag Manager container or create the tag manually.
Use this procedure when Google Tag Manager (GTM) is already installed on your website. You need a CJM Pixel and a Google account with access to the container and permission to publish it.
Install from the dashboard
- Open the Pixel, go to Installation & test, and choose Google Tag Manager.
- Select Connect GTM, sign in with the correct Google account, and complete authorization.
- Choose the website's Account, Container, and Workspace.
- Select Save destination.
- Check for workspace changes you do not want to publish: Push to GTM creates or updates the tag and publishes a container version.
- Select Push to GTM and review GTM Sync Status and Last Push Result.
- Connect consent under Settings → Privacy and consent and verify the website.
To change accounts, use Reconnect GTM, then select and save the destination again. If accounts, containers, or workspaces are missing, check the Google account and permissions. Read sync errors before retrying.
Install manually in the container
If you manage tags directly in GTM:
- Copy the snippet from Installation & test → HTML.
- Create a Custom HTML tag in the GTM workspace and paste the snippet.
- Attach an initialization trigger on all relevant pages.
- Connect your banner using the consent guide. GTM consent settings alone do not call CJM's API.
- Preview the container to check loading, then publish its version.
- Verify events in the CJM dashboard.
A successfully executed GTM tag does not prove CJM received events: valid configuration and appropriate consent are also needed.
Websites that navigate without reloading
The Pixel already detects pushState, replaceState, and popstate. Do not automatically add a second History Change tag for every navigation. Use trackPage only after checking your website: it uses the actual path and query and ignores the same page.
Installing through GTM and forwarding CJM events to dataLayer are separate settings. For forwarding, see Send events to Meta and GTM.