Google Tag Manager

45-60 minAdvanced

Install and configure Google Tag Manager to manage all your marketing and analytics tags without code deployments.

Prerequisites

  • GTM account and container
  • Access to Magento admin and theme files
Beginner

Using Extension

Recommended: Use a GTM extension.

1

Install Extension

1

Search Magento Marketplace for 'GTM' or 'Google Tag Manager'

2

Popular options: Mageplaza, WeltPixel, MageWorx

3

Install via composer or upload

2

Configure

1

Go to extension settings in admin

2

Enter your GTM Container ID (GTM-XXXXXXX)

3

Enable dataLayer for ecommerce if available

Verification Checklist

Pro Tips

  • Use GTM's built-in variables for page URL, referrer, etc.
  • Set up triggers for key conversions: purchase, add to cart, lead form
  • Use GTM environments for staging vs production