Stay organized with collections
Save and categorize content based on your preferences.
Instructions
There are 2 steps for implementing conversion tracking:
Create a new Custom HTML Tag
Create a new Google Analytics: GA4 Event Tag
Custom HTML Tag
To properly track conversions from action_link(s), Google will
set a URL parameter rwg_token, which should be returned at the
time of a conversion.
You will be required to persist the rwg_token URL parameter
which will be appended to all action_link(s) provided by you for
a duration of 30 days when a user visits the landing page via Google. If a
user visits the page through an action link again during the 30 day period,
the existing rwg_token should be replaced with a new token, and
the 30 day time to live should be reset. The suggested way to persist this
information is via cookies.
Our recommended approach to persist the rwg_token is to create
a custom HTML tag, which is fired on every page view. The custom HTML tag
should contain javascript which extracts the rwg_token form the
url parameter and persists the rwg_token for 30 days. You can
persist the data using 1st Party Cookies or a Data Layer Variable.
Google Analytics: GA4 Event Tag
GA4 Event Tag allows you to forward the rwg_token to Google
using the correct measurement ID.
When configuring the GA4 Event Tag, you are required to initiate the
following fields:
Configuration Tag: Set this to None : Manually set ID.
Measurement ID Set the appropriate Measurement ID for your account.
Event Name: Set this to rwg_conversion
Event Parameter: Add a new Event Parameter rwg_token.
The value of this token should be the persisted value of the token.
Each GA4 Event Tag needs to be associated with a Trigger. You should create
a trigger which fires this event tag when a user completes a transaction
which originated from a Google Place Action link.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[[["\u003cp\u003eThis guide provides instructions for implementing conversion tracking using Google Tag Manager (GTM) for websites already utilizing GTM.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves creating two tags: a Custom HTML Tag to store the \u003ccode\u003erwg_token\u003c/code\u003e for 30 days and a GA4 Event Tag to send the \u003ccode\u003erwg_token\u003c/code\u003e to Google Analytics.\u003c/p\u003e\n"],["\u003cp\u003eThe Custom HTML Tag extracts and persists the \u003ccode\u003erwg_token\u003c/code\u003e URL parameter, which is crucial for tracking conversions originating from Google Place Action links.\u003c/p\u003e\n"],["\u003cp\u003eThe GA4 Event Tag is configured with a specific Measurement ID, event name (\u003ccode\u003erwg_conversion\u003c/code\u003e), and event parameter (\u003ccode\u003erwg_token\u003c/code\u003e) to forward conversion data to Google Analytics.\u003c/p\u003e\n"],["\u003cp\u003eEnsure no Personally Identifiable Information (PII) is sent to Google without explicit user consent or legal permission.\u003c/p\u003e\n"]]],["Conversion tracking using Google Tag Manager involves two primary steps: creating a Custom HTML Tag and a Google Analytics: GA4 Event Tag. The Custom HTML Tag captures and stores the `rwg_token` URL parameter (via cookies or a data layer variable) for 30 days, replacing it with a new token upon subsequent visits. The GA4 Event Tag then forwards this persisted `rwg_token` to Google, with configuration steps including setting the measurement ID, event name to `rwg_conversion`, and event parameter `rwg_token`. This tag should be fired upon a user's transaction completion.\n"],null,["| **Objective:** Implement conversion tracking (Google Analytics) using Google Tag Manager.\n| **Note:** The recommended way to [implement conversion tracking is using gtag.js](/actions-center/legacy/tutorials/tutorial-ga-based-conversion-tracking). If you are currently using Google Tag Manager (GTM) to manage website tags, you can use this guide to implement conversion tracking.\n| **Note:** Please ensure that as part of conversion data, user Personal Identification Information (PII) should not be sent to Google without expressed user consent or as otherwise permitted under law.\n\nInstructions\n\nThere are 2 steps for implementing conversion tracking:\n\n- Create a new Custom HTML Tag\n- Create a new Google Analytics: GA4 Event Tag\n\nCustom HTML Tag\n\nTo properly track conversions from `action_link`(s), Google will\nset a URL parameter `rwg_token`, which should be returned at the\ntime of a conversion.\n\nYou will be required to persist the `rwg_token` URL parameter\nwhich will be appended to all `action_link`(s) provided by you for\na duration of 30 days when a user visits the landing page via Google. If a\nuser visits the page through an action link again during the 30 day period,\nthe existing `rwg_token` should be replaced with a new token, and\nthe 30 day time to live should be reset. The suggested way to persist this\ninformation is via cookies.\n| **Note:** The value of the `rwg_token` should be stored and returned without any edits.\n\nOur recommended approach to persist the `rwg_token` is to create\na custom HTML tag, which is fired on every page view. The custom HTML tag\nshould contain javascript which extracts the `rwg_token` form the\nurl parameter and persists the `rwg_token` for 30 days. You can\npersist the data using 1st Party Cookies or a Data Layer Variable.\n\nGoogle Analytics: GA4 Event Tag\n\nGA4 Event Tag allows you to forward the `rwg_token` to Google\nusing the correct measurement ID.\n\nWhen configuring the GA4 Event Tag, you are required to initiate the\nfollowing fields:\n\n- **Configuration Tag:** Set this to `None : Manually set ID`.\n- **Measurement ID** Set the appropriate Measurement ID for your account.\n\n| **Note:** If you do not have a measurement ID, work with your Google contact to generate one.\n\n- **Event Name** : Set this to `rwg_conversion`\n- **Event Parameter** : Add a new Event Parameter `rwg_token`. The value of this token should be the persisted value of the token.\n\nEach GA4 Event Tag needs to be associated with a Trigger. You should create\na trigger which fires this event tag when a user completes a transaction\nwhich originated from a Google Place Action link."]]