Skip to content

Google Tag Manager Integration

LeadBehavior offers two methods for integrating with Google Tag Manager:

The easiest way to add LeadBehavior to your site is using our official GTM template from the Community Gallery.

View Template Installation Guide →

Benefits:

  • No code to write
  • Easy configuration
  • Automatic updates
  • Community-verified

Option 2: Custom HTML Tag

For more advanced use cases, you can create a Custom HTML tag with the LeadBehavior script.

Setup

  1. Create a new Custom HTML tag in GTM
  2. Copy the code snippet from the Lead in the Leadbehavior App
  3. Replace YOUR_ACCOUNT_ID with your actual Account ID
  4. Create GTM variables for Lead ID and Order ID
  5. Set up an appropriate trigger

Which Method Should I Use?

FeatureTemplateCustom HTML
Ease of setup✅ Easy⚠️ Moderate
CustomizationLimitedFull control
MaintenanceAutomaticManual
DebuggingBuilt-inManual

Recommendation: Use the Community Template unless you need custom callback handling or advanced configuration.