Setting up Google Tag Manager

Updated 3 weeks ago

After configuring the plugin, download the GTM container template: https://hundikuu.ee/public/gtm-container-setup.json

  1. Create a Google Tag Manager (https://tagmanager.google.com/) account and container (if necessary)
  2. In GTM, go to Admin → Import Container
  3. Upload the downloaded JSON file
  4. Select “Merge” and “Rename conflicting tags”
  5. After importing, update the following constant variables with your values:

Variable name | Value | Where to find
Const – GA4 Measurement ID | G-XXXXXXXXXX | Google Analytics → Admin → Data Streams → Measurement ID
Const – Meta Pixel ID | 123456789012345 | Meta Business Manager → Events Manager → Pixel ID
Const – Google Ads ID | 18123318075 | Google Ads → Tools → Conversions → Conversion ID
Const – Google Ads Purchase Label | AbCdEfGhIjK | Google Ads → Conversions → Purchase action → Conversion Label
Const – Google Ads Lead Label | LmNoPqRsTuV | Google Ads → Conversions → Lead action → Conversion Label

  1. If you do not use Google Ads, leave the Ads variables as placeholders – tags will not trigger without valid IDs
  2. In GTM, click Submit → Publish
  3. Verify tracking in GTM Preview mode or with the Meta Pixel Helper Chrome extension