FreeGoogle Tag Manager recipes

Track Unbounce Form Submissions in Google Tag Manager with this Free GTM Recipe

Free Google Tag Manager recipe that detects successful form submissions on your Unbounce pages and gives you a Trigger you can use to fire your conversion tags for Google Ads, GA4 and more.

Aaron Beashel
Aaron BeashelUpdated October 20267 min read
The Unbounce recipe tag inside Google Tag Manager

Need to send a conversion to Google Ads, Google Analytics, Meta Ads, etc. when someone completes a form on your Unbounce landing pages?

It's unfortunately a bit harder than it should be. Google Tag Manager has a built-in form submission trigger, which you should be able to use to fire your conversion tags for Google Ads, Google Analytics, etc., but unfortunately it doesn't work very well (because, technically speaking, Unbounce doesn't submit the form the way the form submission trigger expects).

Fortunately, there is an easy way to do it. We've built a free Google Tag Manager recipe that listens for the signal that Unbounce sends out when a form is successfully submitted and gives you a pre-built Trigger you can use to fire your conversion tags.

What Is a Google Tag Manager Recipe and What's in It?

A recipe is a ready-made set of Google Tag Manager assets that you can easily import into your account. It makes it easy to get proper conversion tracking set up for Unbounce forms without having to write code and build it all yourself.

This recipe detects successful Unbounce form submissions, passes a 'Form Submitted' event to Google Tag Manager, and gives you a Trigger you can use to send conversions to Google Analytics, Google Ads and more. It comes in five parts (a tag, a trigger and three variables).

Custom HTML Tag

Detects a successful Unbounce form submission and pushes an event to the dataLayer. It fires on All Pages, once per event, and this is the code inside it:

The Tag's CodeJavaScript · 448 lines
/* Unbounce Form Listener by Converly. Pushes only event and form metadata. */
(function() {
  'use strict';

  window.dataLayer = window.dataLayer || [];
  var sink = {
    siteKey: 'gtm-pack-unbounce-event-only',
    advertisingAllowed: function () { return true; },
    onSubmission: function (payload) {
      var context = payload.submissionContext || {};
      var push = { event: 'unbounce_form_submitted', page_id: context.page_id, page_variant: context.page_variant, form_id: context.form_id };
      window.dataLayer.push(push);
    }
  };

  if (window.__converlyRecipeUnbounce) return;
  window.__converlyRecipeUnbounce = true;

  var active = false;
  var contexts = [];
  var frames = [];
  var discoveryTimer = null;
  var identityTimer = null;
  var observer = null;
  var waiting = false;
  var mainDiscoveryUntil = 0;
  var UUID = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i;
  var TOKEN = /^[a-zA-Z0-9_-]{1,32}$/;

  function warn() { ; }
  function consentAllows() {
    try {
      var c = sink;
      return !(c && typeof c.advertisingAllowed === 'function' && c.advertisingAllowed() === false);
    } catch (e) { return true; }
  }
  function ready() {
    return sink && typeof sink.onSubmission === 'function';
  }

  var SENSITIVE_AUTOCOMPLETE = {
    'current-password': true, 'new-password': true, 'one-time-code': true,
    'cc-number': true, 'cc-csc': true, 'cc-exp': true, 'cc-exp-month': true,
    'cc-exp-year': true, 'cc-name': true, 'cc-given-name': true,
    'cc-family-name': true, 'cc-additional-name': true, 'cc-type': true,
  };
  var SENSITIVE_NAME_SUBSTRINGS = [
    'password', 'passwd', 'passcode', 'cardnum', 'ccnumber', 'creditcard',
    'onetimecode', 'securitycode', 'socialsecurity',
  ];
  var SENSITIVE_NAME_TOKENS = {
    otp: true, cvv: true, cvc: true, ssn: true, pwd: true, pin: true,
  };

  function isSensitiveName(name) {
    if (!name) return false;
    var lower = String(name).toLowerCase();
    var norm = lower.replace(/[^a-z0-9]/g, '');
    for (var i = 0; i < SENSITIVE_NAME_SUBSTRINGS.length; i++) {
      if (norm.indexOf(SENSITIVE_NAME_SUBSTRINGS[i]) !== -1) return true;
    }
    var parts = lower.split(/[^a-z0-9]+/);
    for (var p = 0; p < parts.length; p++) {
      if (SENSITIVE_NAME_TOKENS[parts[p]] === true) return true;
    }
    return false;
  }

  function isSensitiveField(type, autocomplete, name) {
    if (type === 'password') return true;
    var tokens = autocomplete.split(/\s+/);
    for (var t = 0; t < tokens.length; t++) {
      if (SENSITIVE_AUTOCOMPLETE[tokens[t]] === true || tokens[t].indexOf('cc-') === 0) return true;
    }
    return isSensitiveName(name);
  }

  function labelTextFor(el, form) {
    var document = el.ownerDocument;
    var text = '';
    var wrap = el.closest ? el.closest('label') : null;
    if (wrap) text += ' ' + wrap.textContent;
    var labels = document.getElementsByTagName('label');
    for (var i = 0; i < labels.length; i++) {
      var owner = labels[i].closest ? labels[i].closest('form') : null;
      if (el.id && labels[i].getAttribute('for') === el.id && (!owner || owner === form)) {
        text += ' ' + labels[i].textContent;
      }
    }
    var ids = (el.getAttribute('aria-labelledby') || '').split(/\s+/);
    for (var j = 0; j < ids.length; j++) {
      if (!ids[j]) continue;
      var nodes = form.querySelectorAll('[id]');
      var found = false;
      for (var k = 0; k < nodes.length; k++) {
        if (nodes[k].id === ids[j]) { text += ' ' + nodes[k].textContent; found = true; }
      }
      if (!found) {
        var node = document.getElementById(ids[j]);
        var nodeForm = node && node.closest ? node.closest('form') : null;
        if (node && (!nodeForm || nodeForm === form)) text += ' ' + node.textContent;
      }
    }
    return text;
  }

  function safeControl(el, form) {
    var type = (el.type || 'text').toLowerCase();
    return !isSensitiveField(type, (el.getAttribute('autocomplete') || '').toLowerCase(), el.name) &&
      !isSensitiveName(el.id) && !isSensitiveName(el.getAttribute('aria-label')) &&
      !isSensitiveName(el.getAttribute('placeholder')) && !isSensitiveName(labelTextFor(el, form));
  }

  function visible(el) {
    for (var node = el; node && node.nodeType === 1; node = node.parentElement) {
      var style = el.ownerDocument.defaultView.getComputedStyle(node);
      if (node.hidden || style.display === 'none' || style.visibility === 'hidden') return false;
    }
    return true;
  }

  function bounded(value) {
    if (typeof value !== 'string') return '';
    value = value.trim();
    return value.length <= 200 ? value : '';
  }

  function emailValue(value) {
    value = bounded(value);
    return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value) ? value : '';
  }

  function phoneValue(value) {
    value = bounded(value);
    return /^[+\d\s().-]{6,30}$/.test(value) ? value : '';
  }

  function fieldMeta(el, form) {
    var type = (el.getAttribute('type') || el.type || 'text').toLowerCase();
    var name = el.getAttribute('name') || '';
    if (!/^(INPUT|SELECT|TEXTAREA)$/.test(el.tagName) || el.form !== form || el.disabled ||
        /^(hidden|password|file|submit|button|reset|image)$/.test(type) ||
        !visible(el) || !safeControl(el, form)) return null;
    var norm = name.toLowerCase().replace(/[^a-z0-9]/g, '');

    if (/^(pageid|pagevariant|honeypot|bottrap|captcha|recaptcha|g-recaptcha-response)$/.test(norm)) return null;
    var key = '', priority = 0;
    if (el.tagName === 'INPUT') {
      if (type === 'email') { key = 'email'; priority = 2; }
      else if (type === 'tel') { key = 'phone'; priority = 2; }
      else if (type === 'text') {
        priority = 1;
        if (/^(email|emailaddress|workemail)$/.test(norm)) key = 'email';
        else if (/^(phone|phonenumber|telephone|mobile|mobilenumber|workphone)$/.test(norm)) key = 'phone';
        else if (/^(firstname|first|fname|givenname)$/.test(norm)) key = 'firstName';
        else if (/^(lastname|last|lname|surname|familyname)$/.test(norm)) key = 'lastName';
        else if (/^(name|fullname|yourname)$/.test(norm)) key = 'fullName';
      }
    }
    return { name: name, type: type, key: key, priority: priority };
  }

  function snapshot() { return []; }

  function release(record) {
    var seen = [], choices = {}, data = {};
    for (var i = 0; i < record.fields.length; i++) {
      var saved = record.fields[i], el = saved.el;
      var meta = el.ownerDocument === record.ctx.doc && record.form.contains(el) ? fieldMeta(el, record.form) : null;
      var safe = !!(meta && meta.name === saved.name && meta.type === saved.type && meta.key === saved.key);
      if (safe && saved.name) seen.push({ name: saved.name, type: saved.type });
      if (!saved.key || !saved.value) continue;

      var choice = choices[saved.key];
      if (!choice || saved.priority > choice.priority) {
        choices[saved.key] = { value: saved.value, priority: saved.priority, conflict: false, safe: safe };
      } else if (saved.priority === choice.priority) {
        if (saved.value !== choice.value) choice.conflict = true;
        if (!safe) choice.safe = false;
      }
    }
    var keys = ['email', 'phone', 'firstName', 'lastName'];
    for (var k = 0; k < keys.length; k++) {
      var item = choices[keys[k]];
      if (item && item.safe && !item.conflict) data[keys[k]] = item.value;
    }
    var full = choices.fullName;
    if (!choices.firstName && !choices.lastName && full && full.safe && !full.conflict) {
      var parts = full.value.split(/\s+/);
      data.firstName = parts.shift();
      if (parts.length) data.lastName = parts.join(' ');
    }
    return { userData: data, formFieldsSeen: seen };
  }

  function mainPage() {
    var page = window.ub && window.ub.page;
    if (!page || page.isAiBuilderPage !== true || page.usedAs !== 'main' ||
        typeof page.id !== 'string' || !UUID.test(page.id) ||
        typeof page.variantId !== 'string' || !TOKEN.test(page.variantId) ||
        /[\r\n]/.test(page.id + page.variantId) || window.location.protocol !== 'https:') return null;
    return page;
  }

  function owned(win, frame) {
    try {
      var main = mainPage(), page = win.ub && win.ub.page;
      if (!main || !page || page.isAiBuilderPage !== true) return false;
      if (!frame) return win === window && page === main;
      if (!window.document.documentElement.contains(frame) || frame.contentWindow !== win ||
          win.parent !== window || win.location.origin !== window.location.origin ||
          page.usedAs !== 'lightbox' || page.variantId !== main.variantId ||
          typeof page.id !== 'string' || page.id.indexOf(main.id + ':') !== 0) return false;
      var suffix = page.id.slice(main.id.length + 1);
      if (!/^[a-zA-Z0-9_-]{1,64}$/.test(suffix) || /[\r\n]/.test(suffix)) return false;
      var path = window.location.pathname;
      var directory = path.slice(0, path.lastIndexOf('/') + 1);
      return win.location.pathname === directory + main.variantId + '-' + suffix + '-lightbox.html';
    } catch (e) { return false; }
  }

  function current(ctx) {
    try {
      return active && contexts.indexOf(ctx) !== -1 && owned(ctx.win, ctx.frame) &&
        ctx.win.document === ctx.doc && ctx.win.ub === ctx.ub && window.ub === ctx.mainUb &&
        ctx.ub.hooks && ctx.ub.hooks.afterFormSubmit === ctx.after &&
        ctx.ub.hooks.onFormSubmitError === ctx.error;
    } catch (e) { return false; }
  }

  function identity(ctx, form) {
    if (!current(ctx) || !form || form.tagName !== 'FORM' || form.ownerDocument !== ctx.doc ||
        !ctx.doc.documentElement.contains(form) || form.getAttribute('data-ub-type') !== 'ub-form-inline' ||
        form.getAttribute('data-ub-bypass-lead-capture') === 'true') return null;
    var action = form.getAttribute('action') || '';
    if (!action || /[\s\\]/.test(action)) return null;
    var url = new URL(action, ctx.win.location.href), main = mainPage();
    if (url.protocol !== 'https:' || url.origin !== window.location.origin || url.pathname !== '/fsg' ||
        url.username || url.password || url.hash || url.searchParams.getAll('pageId').length !== 1 ||
        url.searchParams.getAll('variant').length !== 1 || url.searchParams.get('pageId') !== main.id ||
        url.searchParams.get('variant') !== main.variantId) return null;
    return { id: url.searchParams.get('pageId'), variant: main.variantId,
      childId: ctx.ub.page.id, action: action, pageUrl: window.location.pathname };
  }

  function discard(ctx, record) {
    var index = ctx.pending.indexOf(record);
    if (index !== -1) ctx.pending.splice(index, 1);
    if (record) { record.fields = null; record.form = null; }
  }
  function clear(ctx) { while (ctx.pending.length) discard(ctx, ctx.pending[0]); }
  function recordFor(ctx, form) {
    for (var i = 0; i < ctx.pending.length; i++) if (ctx.pending[i].form === form) return ctx.pending[i];
    return null;
  }

  function submit(ctx, event) {
    if (event.isTrusted !== true) return;
    var form = event.target, old = recordFor(ctx, form);
    try {
      var key = identity(ctx, form);
      if (!key || !consentAllows() || !ready() ||
          (event.submitter && event.submitter.hasAttribute('formaction'))) { discard(ctx, old); return; }
      if (form.getAttribute('data-converly-recipe-processing') || form.getAttribute('data-ub-submitting') === '1') return;
      discard(ctx, old);
      ctx.pending.push({ ctx: ctx, form: form, key: key, fields: snapshot(form) });
      schedule();
    } catch (e) { discard(ctx, recordFor(ctx, form)); warn(); }
  }

  function complete(ctx, detail) {
    var record = null, form = null;
    try {
      if (!current(ctx)) { clear(ctx); return; }
      if (!consentAllows() || !ready()) { clear(ctx); return; }
      if (!detail || typeof detail !== 'object' || Array.isArray(detail) || detail.isConversionGoal !== true) return;
      form = detail.formElement;
      record = recordFor(ctx, form);
      if (!record) return;
      var key = identity(ctx, form), saved = record.key;
      if (!key || key.id !== saved.id || key.variant !== saved.variant || key.childId !== saved.childId ||
          key.action !== saved.action || key.pageUrl !== saved.pageUrl || form.getAttribute('data-ub-submitting') !== '1') {
        discard(ctx, record); return;
      }
      var payload = release(record);
      payload.trigger = 'unbounce-forms';
      payload.pageUrl = saved.pageUrl;
      payload.submissionContext = { page_id: saved.id, page_variant: saved.variant, form_id: form.getAttribute('id') || null };
      discard(ctx, record);
      if (!consentAllows() || !ready()) return;
      form.setAttribute('data-converly-recipe-processing', 'true');
      try { sink.onSubmission(payload); }
      finally { form.removeAttribute('data-converly-recipe-processing'); }
    } catch (e) { discard(ctx, record); warn(); }
    finally { schedule(); }
  }

  function detach(ctx) {
    clear(ctx);
    var index = contexts.indexOf(ctx);
    if (index !== -1) contexts.splice(index, 1);

    try {
      ctx.win.removeEventListener('submit', ctx.submit, true);
      ctx.win.removeEventListener('pagehide', ctx.hide);
    } catch (e) {  }
    if (ctx.observer) ctx.observer.disconnect();
    [ctx.after, ctx.error].forEach(function(array, i) {
      try {
        var index = array.indexOf(i === 0 ? ctx.complete : ctx.fail);
        if (index !== -1) array.splice(index, 1);
      } catch (e) {  }
    });
  }

  function attach(win, frame) {
    if (!owned(win, frame)) return false;
    var ub = win.ub, hooks = ub.hooks;
    if (!hooks || !Array.isArray(hooks.afterFormSubmit) || !Array.isArray(hooks.onFormSubmitError)) return false;
    for (var i = 0; i < contexts.length; i++) {
      if (contexts[i].win === win && current(contexts[i])) return true;
    }
    var ctx = { win: win, frame: frame, doc: win.document, ub: ub, mainUb: window.ub,
      after: hooks.afterFormSubmit, error: hooks.onFormSubmitError, pending: [] };
    ctx.submit = function(event) {

      discover();
      for (var j = 0; j < contexts.length; j++) {
        if (contexts[j].win === win) { submit(contexts[j], event); break; }
      }
    };
    ctx.complete = function(detail) { complete(ctx, detail); };
    ctx.fail = function(detail, form) { discard(ctx, recordFor(ctx, form)); schedule(); };
    ctx.hide = function() { clear(ctx); detach(ctx); };
    contexts.push(ctx);
    ctx.after.push(ctx.complete);
    ctx.error.push(ctx.fail);

    if (frame) win.addEventListener('submit', ctx.submit, true);
    if (frame) win.addEventListener('pagehide', ctx.hide);
    if (frame && win.MutationObserver) {
      ctx.observer = new win.MutationObserver(function() { discover(); });
      ctx.observer.observe(ctx.doc.documentElement, { childList: true, subtree: true });
    }
    return true;
  }

  function schedule(needsDiscovery) {
    if (typeof needsDiscovery === 'boolean') waiting = needsDiscovery;
    needsDiscovery = waiting;
    var pending = contexts.some(function(ctx) { return ctx.pending.length > 0; });
    var lightbox = frames.some(function(item) { return item.lightbox; });
    if (active && needsDiscovery && !discoveryTimer) discoveryTimer = setInterval(discover, 250);
    if ((!active || !needsDiscovery) && discoveryTimer) { clearInterval(discoveryTimer); discoveryTimer = null; }
    if (active && (pending || lightbox) && !identityTimer) identityTimer = setInterval(discover, 1000);
    if ((!active || (!pending && !lightbox)) && identityTimer) { clearInterval(identityTimer); identityTimer = null; }
  }

  function discover() {
    if (!active) return;
    try {
      for (var c = contexts.length - 1; c >= 0; c--) {
        var ctx = contexts[c];
        if (!current(ctx)) { detach(ctx); continue; }
        for (var p = ctx.pending.length - 1; p >= 0; p--) {
          if (!ctx.doc.documentElement.contains(ctx.pending[p].form)) discard(ctx, ctx.pending[p]);
        }
      }
      var main = mainPage(), now = Date.now();
      var needsDiscovery = (!window.ub || !window.ub.page) && now < mainDiscoveryUntil;
      if (main && !attach(window, null) && now < mainDiscoveryUntil) needsDiscovery = true;
      var nodes = main ? window.document.querySelectorAll('iframe') : [];
      for (var f = frames.length - 1; f >= 0; f--) {
        if (!main || !window.document.documentElement.contains(frames[f].el)) {
          frames[f].el.removeEventListener('load', frameLoaded);
          frames.splice(f, 1);
        }
      }
      for (var n = 0; n < nodes.length; n++) {
        var item = null;
        for (var j = 0; j < frames.length; j++) if (frames[j].el === nodes[n]) item = frames[j];
        if (!item) {
          item = { el: nodes[n], lightbox: false, discoveryUntil: now + 5000 };
          frames.push(item);
          item.el.addEventListener('load', frameLoaded);
        }
        item.lightbox = false;
        try {
          var child = item.el.contentWindow;
          if (child.location.origin !== window.location.origin && child.location.href !== 'about:blank') continue;
          item.lightbox = owned(child, item.el);
          if (item.lightbox) { if (!attach(child, item.el) && now < item.discoveryUntil) needsDiscovery = true; }
          else if ((!child.ub || !child.ub.page) && now < item.discoveryUntil) needsDiscovery = true;
        } catch (e) {  }
      }
      schedule(needsDiscovery);
    } catch (e) { warn(); }
  }

  function frameLoaded(event) {
    for (var i = 0; i < frames.length; i++) {
      if (frames[i].el === event.currentTarget) frames[i].discoveryUntil = Date.now() + 5000;
    }
    discover();
  }

  function mutated(records) {
    for (var r = 0; r < records.length; r++) {
      if (records[r].type !== 'attributes') continue;
      for (var i = 0; i < frames.length; i++) {
        if (frames[i].el === records[r].target) frames[i].discoveryUntil = Date.now() + 5000;
      }
    }
    discover();
  }

  function handleSubmit(event) {
    discover();
    for (var i = 0; i < contexts.length; i++) {
      if (event.target && contexts[i].doc === event.target.ownerDocument) { submit(contexts[i], event); return; }
    }
  }
  function stop() {
    active = false;
    waiting = false;
    schedule(false);
    while (contexts.length) detach(contexts[0]);
    while (frames.length) frames.pop().el.removeEventListener('load', frameLoaded);
    if (observer) { observer.disconnect(); observer = null; }
    window.removeEventListener('submit', handleSubmit, true);
    schedule();
  }
  function start() {
    if (active) return;
    active = true;
    mainDiscoveryUntil = Date.now() + 10000;
    window.addEventListener('submit', handleSubmit, true);
    if (window.MutationObserver) {
      observer = new window.MutationObserver(mutated);
      observer.observe(window.document, { childList: true, subtree: true, attributes: true, attributeFilter: ['src'] });
    }
    discover();
  }
  window.addEventListener('pagehide', stop);
  window.addEventListener('pageshow', start);
  start();

})();

Variables

Holds the ID of the landing page, the A/B test variant the visitor saw and the ID of the form they filled in, ready to use in any tag or trigger condition. These are their exact settings:

Name

DLV - Unbounce Page ID

Variable Type

Data Layer Variable

Data Layer Variable Name

page_id

Name

DLV - Unbounce Page Variant

Variable Type

Data Layer Variable

Data Layer Variable Name

page_variant

Name

DLV - Unbounce Form ID

Variable Type

Data Layer Variable

Data Layer Variable Name

form_id

Trigger

Fires every time the form submission event arrives. You use it as the trigger for any of your conversion tags. These are its exact settings:

Name

CE - Unbounce Form Submitted

Trigger Type

Custom Event

Event Name

unbounce_form_submitted

Download This Recipe

Download the recipe, import it into your Google Tag Manager account, and you'll have everything you need to get proper conversion tracking set up for your Unbounce forms.

Built and tested by the Converly team against real published Unbounce landing pages

Why It's the Best Recipe Out There

It was built by the team behind Converly, a dedicated conversion tracking tool. It is the same code we use to detect form submissions in our own product (just modified to work in Google Tag Manager). Here's why it's the best option:

The recipe only counts a conversion once Unbounce has actually saved the lead. If the submission fails (because they entered an invalid email address for example), no conversion is counted.
Tells you which landing page and which A/B test variant produced the lead, so you can split conversions by variant in Google Analytics or fire a separate tag for each one.
Has been extensively tested using the production-grade testing infrastructure we use for our own conversion tracking product.
Has been used to detect thousands of form submissions for Converly customers.

How to Use the Unbounce GTM Recipe

1

Install the Recipe

Start by downloading the recipe with the form above. Next, in Google Tag Manager, go to Admin and click Import Container. Then choose the file, select Merge as the import option (so nothing already in your container is touched), and confirm. GTM then drops the listener, the three variables and the trigger into your workspace for you.

Importing the recipe container in Google Tag Manager
2

Configure Your Tags

With the recipe in place, the Trigger is ready to use with your conversion tags. Here are two common examples:

Example 1: Google Analytics

Set up a new GA4 event tag, give it an event name such as generate_lead, and under Triggering choose the Trigger the recipe gives you (called CE - Unbounce Form Submitted).

A GA4 event tag using the recipe's trigger

Example 2: Google Ads

Create a Google Ads conversion tag, enter your conversion ID and label, and select the Trigger that came with the recipe (called CE - Unbounce Form Submitted) under Triggering.

A Google Ads conversion tag using the recipe's trigger

What This Enables You to Do (and What It Doesn't)

When an Unbounce form is submitted, an event is sent to Google Tag Manager and can be used to fire whatever conversion tags you've attached (Google Ads, Google Analytics or anything else) to it.

What it does

Sends an Event to GTM

Detects successful Unbounce form submissions and pushes a form submission event into the dataLayer.

Tells You Which Page and Variant Fired

Passes along the landing page ID, the A/B test variant and the form ID with every event, so you can fire different tags for different pages.

Creates a Trigger in GTM

Adds a 'Trigger' to Google Tag Manager that you can choose as the firing trigger on any of your conversion tags.

What it doesn't do

Send the conversion server-side

Everything happens in the visitor's browser, so it only works if the visitor's browser allows it. If the visitor has an ad blocker installed, then it stops the Google tag from loading (so nothing the visitor does gets tracked). Similarly, certain browsers limit tracking to just a few days (so someone who clicks your ad on Monday and fills in your form on Thursday can't be linked back to that click).

No Click IDs or Identifiers

It doesn't capture the Google click ID, Facebook click ID, Meta pixel cookies, IP address or user agent, all of which ad platforms rely on for Enhanced Conversions (Google) or a strong Event Match Quality score (Meta).

No Personal Details

The script only fires an event. It doesn't capture the lead's name, email or phone number, which Google and Meta both need to match the conversion to a real person and the ad they clicked.

No Logging or Notifications

You can use Preview mode in Google Tag Manager to test it when you first set it up, but unless you check back every week, it can easily stop working without you knowing (you'll just see 0 conversions in your ad platforms).

The Proper Way to Send Conversions to Google Ads, Meta Ads & More

If Google Analytics is the only place you need to send conversions, then this recipe is all you need (GA doesn't accept personal information or IP addresses so it's fine). Ad platforms work differently, though. They want you to send the lead's name, email, phone, IP address, click ID, etc. back with each conversion so they can match the conversion back to a real person and the original ad they clicked (otherwise it doesn't show up in your reports).

A Converly workflow sending Unbounce conversions to ad platforms

Here's why Converly is the best way to send conversions to Google Ads, Meta Ads, Microsoft Ads, LinkedIn Ads, etc.

Easy to set up

You can build your Conversion Flow in a couple of minutes with Converly's drag-and-drop builder. Simply pick a trigger (a new Unbounce form submission), then add the actions you want (send a conversion to Google Ads, Meta Ads, etc.).

Sends Data Server-Side

Conversions get sent from Converly's servers straight to Google, Meta, ChatGPT, etc. servers. This means ad blockers and browser-privacy rules no longer get in the way, and your reporting gets far closer to reality.

Sends More Data

Every conversion includes the lead's name, email and phone, along with the Google and Facebook click IDs, IP address and user agent. With all of that information being sent, ad platforms like Google & Meta can easily match the conversion back to a real person and the original ad they clicked (which means the conversion will actually show up in your reports).

Full Conversion Log & Email Notifications

Every conversion is logged, showing what was captured, what was sent to each platform and whether it was delivered successfully or not. If something breaks, you get an email straight away instead of finding out weeks later.

Supports Multiple Tools & Destinations

Converly can detect conversions in 100+ form, landing page, scheduling and chat tools and send them to 20+ destinations, including Google Ads, Meta, ChatGPT, LinkedIn, Microsoft and TikTok.

Provides Free Support

Need a hand? Our team has 20 years of experience in conversion tracking and analytics, and our help is free. Google Tag Manager doesn't provide any support at all.

Start Your Free Trial

Start a 14-day free trial and track your conversions the proper way. No code, no complicated configuration.

About the author

Aaron Beashel
Aaron Beashel

Aaron is the founder of Converly. With over 15 years of experience in digital marketing and SaaS, he's passionate about helping businesses track and optimise their ad conversions.

Start your free trial

Easily send conversions to your ad platforms and analytics tools.
No code required.