DEV Community

guardlabs_team
guardlabs_team

Posted on • Originally published at guardlabs.online

How to Set Up Conversion Tracking with Google Tag Manager

How to Set Up Conversion Tracking with Google Tag Manager

Setting up conversion tracking via Google Tag Manager (GTM) requires three core components: a Conversion Linker tag, a Google Ads (or GA4) Conversion tag, and a defined trigger. This guide covers the technical implementation for Google Ads conversion tracking, which is the industry standard.

Step 1: Deploy the Conversion Linker Tag

The Conversion Linker tag must fire on all pages to ensure conversion data is accurately attributed to your ads via first-party cookies.

  • Log in to your Google Tag Manager container.
  • Navigate to Tags > New.
  • Click Tag Configuration and select Conversion Linker.
  • Under Triggering, select All Pages.
  • Name the tag Conversion Linker and click Save.

Step 2: Create the Google Ads Conversion Tag

To configure this tag, you need the Conversion ID and Conversion Label from your Google Ads account (found under Tools and Settings > Conversions > [Your Conversion] > Tag Setup > Use Google Tag Manager).

  • In GTM, click New to create a new tag.
  • Click Tag Configuration and select Google Ads Conversion Tracking.
  • Enter your Conversion ID and Conversion Label into the respective fields.
  • Leave the Value, Transaction ID, and Currency Code fields empty unless you are passing dynamic e-commerce data.

Step 3: Define the Trigger

The trigger tells GTM when to fire the conversion tag. Common triggers include a "Thank You" page view or a custom dataLayer event triggered by a form submission.

Option A: Page View Trigger (e.g., /thank-you)

  • Under Triggering in your conversion tag, click the + icon to create a new trigger.
  • Choose Page View as the trigger type.
  • Select Some Page Views.
  • Set the condition to: Page Path > contains > /thank-you (adjust to match your success page URL).

Option B: Custom Event Trigger (Recommended for AJAX/Single Page Apps)
If your form does not redirect to a new URL, push a custom event to the dataLayer when the submission succeeds:

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'form_submission_success',
  'conversion_value': 49.00
});
Enter fullscreen mode Exit fullscreen mode

To capture this in GTM:

  • Create a new trigger and select Custom Event.
  • Enter form_submission_success as the Event name.
  • Assign this trigger to your Google Ads Conversion tag.

Step 4: Verify and Publish

Before publishing, verify that the tags fire only under the specified conditions.

  • Click Preview in the top-right corner of GTM to open Google Tag Assistant.
  • Enter your website URL and complete the conversion action (e.g., submit the form).
  • In the Tag Assistant window, verify that your Google Ads Conversion Tracking tag moved from "Tags Not Fired" to "Tags Fired".
  • Go back to GTM, click Submit, name your version, and click Publish.

Need this done fast? order GTM setup on Kwork (https://kwork.com/strategyandanalytics/52991198/set-up-ga4-google-tag-manager-events-goals-conversions).

Top comments (0)