Google Tag Manager Integration
Leadbehavior offers two methods for integrating with Google Tag Manager:
Option 1: Community Template (Recommended)
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
- Create a new Custom HTML tag in GTM
- Copy the code snippet from the Lead in the Leadbehavior App
- Replace
YOUR_ACCOUNT_IDwith your actual Account ID - Create GTM variables for
Lead IDandOrder ID - Set up an appropriate trigger
Which Method Should I Use?
| Feature | Template | Custom HTML |
|---|---|---|
| Ease of setup | ✅ Easy | ⚠️ Moderate |
| Customization | Limited | Full control |
| Maintenance | Automatic | Manual |
| Debugging | Built-in | Manual |
Recommendation: Use the Community Template unless you need custom callback handling or advanced configuration.