Now that you understand the three core pillars of GTM (Tags, Triggers, Variables), it’s time to create your first functional tag.
We will use a Google Ads Lead Conversion as an example.
1. Access Your GTM Workspace
You will see a screen with Tag Configuration and Triggering.
2. Choose Tag Type
- Click Tag Configuration
- Select Google Ads Conversion Tracking
- Enter:
- Conversion ID (from Google Ads)
- Conversion Label (from Google Ads)
- Optional: Conversion Value
- Conversion ID (from Google Ads)
This tag will send the lead conversion data to Google Ads.
3. Create the Trigger
A trigger tells the tag when to fire.
- Click Triggering → New → Trigger Configuration
- Select Form Submission
- Set conditions for accuracy:
- Form ID equals contact_form
- Form ID equals contact_form
- Or Page URL contains /thank-you/
4. Use Variables for Dynamic Tracking
Variables store dynamic values for tags and triggers.
- Enable Built-In Variables → Form ID
- For advanced scenarios, use DataLayer Variables to track more complex forms or eCommerce events.
Example:
dataLayer.push({
event: “lead_form_submit”,
form_id: “contact_form”,
lead_type: “consultation”
});
- Trigger listens for lead_form_submit
- Tag sends data to Google Ads
5. Save and Test in Preview Mode
- Name your tag: GA-Lead-Form-Conversion
- Click Save
- Enter Preview Mode
- Fill out the form on your site
- Check Tag Assistant to see the tag fire correctly
✅ Testing ensures accuracy before publishing.
6. Publish Your Tag
- After testing, click Submit → Publish
- Provide a version name (e.g., “First Lead Conversion Tag”)
- Add notes (optional)
- Click Publish
Your first tag is now live.
7. Real-World Best Practices
- Always use Preview Mode to test tags
- Name tags, triggers, and variables clearly
- For multiple forms, use DataLayer variables
- Keep the GTM workspace organized
- Document any changes for future reference
8. Summary
By completing this lesson, you can now:
- Create a new tag in GTM
- Assign a trigger to control firing
- Use variables to send dynamic data
- Test the tag using Preview Mode
- Publish the tag safely
This sets the foundation for advanced tracking setups, including GA4, Meta Pixel, TikTok Pixel, server-side tags, and enhanced conversions.