Skip to main content

Set up Google Analytics 4 with tag manager

This article explains how to set up Google Analytics 4 with tag manager.

 

Before we get started with GA4 tag manager

 

Setting up your Tag Manager container to handle GA4 events

The goal now is to set up your tag manager to handle the events send by the Bókun widgets.

  1. Go to your Tag Manager container that should like this:

  1. Click AdminImport Container

  1. Download the file below and upload it into the field that says Choose container file
GTM-Bokun-widgets-ga4.json
  1. Finish the import like you see fit. We recommend using the Default Workspace and using Merge

 

Connecting your Tag Manager container to your GA4 data source

Now your container knows how to handle GA4 events. Next up is connecting your GA4 data source to this container.Your Tags list should look like this:

  1. Click New
  2. Click Tag Configuration and select Google Analytics: GA4 Configutation

  1. Find your GA4 data stream measurement id as per Google Analytics 4 article.

  2. Paste it into the measurement id field

  1. Click Triggering and select All Pages

  1. Save the changes, you do not need to rename this tag. Your page should look like this:

  1. Click the other tag

  1. Change Configuration Tag to be the tag we created in steps 1-6.

  1. Save the tag

  2. Now it’s time to publish your changes. Click submitPublishContinue

Your Google Tag should now be handling GA4 events.

See how to verify this in the Google Analytics 4 article.