Setting up Google Tag Manager
After configuring the plugin, download the GTM container template: https://hundikuu.ee/public/gtm-container-setup.json
- Create a Google Tag Manager (https://tagmanager.google.com/) account and container (if necessary)
- In GTM, go to Admin → Import Container
- Upload the downloaded JSON file
- Select “Merge” and “Rename conflicting tags”
- 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
- If you do not use Google Ads, leave the Ads variables as placeholders – tags will not trigger without valid IDs
- In GTM, click Submit → Publish
- Verify tracking in GTM Preview mode or with the Meta Pixel Helper Chrome extension