Data Layer Generator
Create clean Google Tag Manager data layer events with custom variables for forms, clicks, purchases, downloads, and more.
Generated Data Layer Code
Place this code on your website at the point where the conversion or interaction occurs.
Event Preview
This is the event and variable structure GTM will receive in the data layer.
Generate a data layer event to see its preview.
Quick Presets
Data Layer Best Practices
- Push data into the data layer before your GTM tags need to use it.
- Use consistent variable names, such as form_id, page_type, and content_name.
- Use a unique event name for every meaningful user interaction.
- Test each event in GTM Preview mode before publishing.
- Avoid placing personally identifiable information in the data layer.