Ads for Breakfast
← All posts

GTM template: lead-gen container with enhanced conversions

A free Google Tag Manager container for lead-gen sites: phone clicks, email clicks, form submissions and enhanced conversions, all pre-configured.

6 min read

Originally written in German — read it on visnakovs.de.

GTM lead-gen container template with enhanced conversions

Almost every lead-generation website needs the same tracking setup: phone clicks, email clicks, form submissions and enhanced conversions for Google Ads. Rather than rebuild that from scratch every time, import this container once and swap two IDs.

What’s in the template

Tags (12)

  • GA4 tag — base tracking
  • Google Ads tag — conversion tracking
  • GA4 event: phone click/copy — fires when someone clicks a phone number or copies it
  • GA4 event: email click/copy — same for email addresses
  • Google Ads conversion: phone — conversion on a phone interaction
  • Google Ads conversion: email — conversion on an email interaction
  • Google Ads conversion: lead — conversion on form submit
  • Google Ads user-provided data event — enhanced conversions with email/phone
  • … plus a few supporting tags

Triggers (9)

  • Tel clicked — link click on tel: links
  • Email clicked — link click on mailto: links
  • Text copied — custom event fired when a user copies text (a phone number, say)
  • Form submitted — DOM-based trigger for form submits
  • PageView DOM Ready — for tags that should fire after DOM load

Variables (5)

  • User-provided data — automatic detection of email/phone on the page
  • Clipboard text — dataLayer variable for copied text
  • GA4 tag ID and Google Ads conversion ID — your two central settings

The bit most setups miss: copy tracking

Most setups only catch clicks on tel: links. But on desktop plenty of people copy the number and dial it from their phone — and that call shows up in no standard tracking at all. This template catches both:

  1. Click on a phone link → standard link-click trigger
  2. Phone number copied → custom event via the clipboard API

Email addresses work the same way. You stop losing conversions just because someone copied instead of clicked.

Setup

1. Import

Import container → upload the JSON → merge.

2. Replace the IDs

Search the container for EXCHANGE — these are the variables you need to fill with your own IDs:

  • EXCHANGE - Your GA4 Tag here → your GA4 measurement ID
  • EXCHANGE - G-Ads Conv ID → your Google Ads conversion ID

3. Check enhanced conversions

The user-provided data variable looks for email addresses and phone numbers on the page automatically. Use preview mode to confirm it’s picking up the right values.

Download the template

The configurator that generates this container — along with the other six templates — sits on my German site: GTM configurator (in German). The interface is German; the JSON it produces is language-neutral.

Grab the container file below and import it into your Google Tag Manager container under Admin → Import Container. No sign-up, no email wall — it’s a plain file.

Downloadgtm-template-leadgen-container.jsonGTM container, ~34 KB — import it straight into your container

Setting up tracking for a lead-gen site and want a second pair of eyes on it before it goes live? Write to me.