{"id":38690,"date":"2026-09-21T06:18:10","date_gmt":"2026-09-21T12:18:10","guid":{"rendered":"https:\/\/thirstyaffiliates.com\/?post_type=ht_kb&#038;p=38690"},"modified":"2026-09-21T06:18:24","modified_gmt":"2026-09-21T12:18:24","slug":"using-thirstyaffiliates-click-tracking-google-tag-manager-gtm","status":"publish","type":"ht_kb","link":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/","title":{"rendered":"Using ThirstyAffiliates Click Tracking With Google Tag Manager (GTM)"},"content":{"rendered":"<p class=\"wp-block-paragraph\">ThirstyAffiliates Pro can send affiliate link clicks to Google Analytics 4 (GA4) through Google Tag Manager (GTM). GTM is a free Google tool that manages tracking code on a website. This document explains how to set the <strong>&#8220;Tracking Script&#8221;<\/strong> option to <strong>&#8220;Google Tag Manager&#8221;<\/strong> and complete the required GTM configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Selecting <strong>&#8220;Google Tag Manager&#8221;<\/strong> in ThirstyAffiliates is only the first step. The plugin reports each click to GTM. GTM then needs instructions on what to do with that click. Those instructions are created in later sections of this document.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After completing this document, each affiliate link click appears in GA4 as an event. The clicked link path is attached to that event.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Requirements<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following items are required before starting:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ThirstyAffiliates and ThirstyAffiliates Pro installed and activated;<\/li>\n\n\n\n<li>the <strong>Suivi des clics sur Google<\/strong> module enabled under <strong>WordPress Dashboard &gt; ThirstyAffiliates &gt; Settings &gt; Modules<\/strong>;<\/li>\n\n\n\n<li>a Google Analytics 4 property for the site;<\/li>\n\n\n\n<li>a Google Tag Manager account with a container for the site;<\/li>\n\n\n\n<li>the GTM container code loading on every page of the site.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking.png\"><img decoding=\"async\" width=\"2542\" height=\"1259\" src=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking.png\" alt=\"\" class=\"wp-image-38706\" srcset=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking.png 2542w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking-300x149.png 300w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking-1024x507.png 1024w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking-767x380.png 767w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking-50x25.png 50w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking-1536x761.png 1536w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-modules-google-click-tracking-2048x1014.png 2048w\" sizes=\"(max-width: 2542px) 100vw, 2542px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In Google Tag Manager, a <strong>container<\/strong> holds all tracking settings for one website. GTM provides a short code snippet for each container. That snippet must load on every page of the site. Without it, GTM never receives the clicks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The simplest way to add the snippet is a WordPress plugin made for Google Tag Manager. Such plugins ask for the container ID and add the snippet automatically. Use only one method to add the snippet. Adding it twice causes duplicate events.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two Google IDs appear in this document:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>the <strong>Measurement ID<\/strong> identifies the GA4 property. It starts with <code>G-<\/code>, for example <code>G-XXXXXXXXXX<\/code>;<\/li>\n\n\n\n<li>the <strong>container ID<\/strong> identifies the GTM container. It starts with <code>GTM-<\/code>, for example <code>GTM-XXXXXXX<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How the Google Tag Manager Option Works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Quand <strong>&#8220;Tracking Script&#8221;<\/strong> is set to <strong>&#8220;Google Tag Manager&#8221;<\/strong>, ThirstyAffiliates stops adding its own Google Analytics code to the site. Instead, on each affiliate link click, the plugin sends a small message to GTM. GTM calls this message a <strong>custom event<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The message holds two pieces of information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>the event name, which is <code>Lien d'affiliation<\/code> by default. The <strong>&#8220;Custom event category name&#8221;<\/strong> setting changes this name;<\/li>\n\n\n\n<li>a field named <code>link_uri<\/code> that holds the clicked link. The <strong>&#8220;Event action value&#8221;<\/strong> setting controls what this field holds. The default is the link URI, such as <code>\/recommends\/example-link\/<\/code>. This document uses the default. The other options are <strong>&#8220;Full link URL&#8221;<\/strong>, <strong>&#8220;Link slug (last segment of URL)&#8221;<\/strong>et <strong>&#8220;Link text&#8221;<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Both names are typed into GTM in later steps. They must match exactly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Users of the older Universal Analytics may expect event category, action, label, and value fields. GA4 uses an event name and parameters instead, so <code>link_uri<\/code> arrives as a parameter. The <strong>&#8220;Event action value&#8221;<\/strong> setting does not set a monetary value in GA4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting the Tracking Script in ThirstyAffiliates<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Naviguez jusqu'\u00e0 <strong>WordPress Dashboard &gt; ThirstyAffiliates &gt; Settings<\/strong>, and click the <strong>Suivi des clics<\/strong> tabulation.<\/li>\n\n\n\n<li>Set <strong>&#8220;Tracking Script&#8221;<\/strong> \u00e0 <strong>&#8220;Google Tag Manager&#8221;<\/strong>.<\/li>\n\n\n\n<li>Leave <strong>&#8220;Event action value&#8221;<\/strong> set to <strong>&#8220;Link URI (full link value without the site address)&#8221;<\/strong> unless another value is required.<\/li>\n\n\n\n<li>Leave <strong>&#8220;Custom event category name&#8221;<\/strong> empty unless a custom event name is required.<\/li>\n\n\n\n<li>Cliquez sur <strong>Enregistrer les modifications<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option.png\"><img decoding=\"async\" width=\"2542\" height=\"1258\" src=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option.png\" alt=\"\" class=\"wp-image-38707\" srcset=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option.png 2542w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option-300x148.png 300w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option-1024x507.png 1024w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option-768x380.png 768w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option-50x25.png 50w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option-1536x760.png 1536w, https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2026\/09\/ta-click-tracking-gtm-option-2048x1014.png 2048w\" sizes=\"(max-width: 2542px) 100vw, 2542px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Changing the <strong>&#8220;Tracking Script&#8221;<\/strong> option changes the code that ThirstyAffiliates adds to every page. Many sites keep ready-made copies of their pages to load faster. This is called <strong>caching<\/strong>. Clear every cache after saving: the hosting cache, any CDN such as Cloudflare, and any WordPress caching plugin. Cached pages keep the old code, and clicks on those pages are never reported to GTM.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring Google Tag Manager<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The GTM configuration needs three items. A <strong>variable<\/strong> reads one piece of information from the click message. A <strong>trigger<\/strong> decides when GTM should act. A <strong>tag<\/strong> sends the data to Google Analytics. Create them in the order below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The examples use the default event name <code>Lien d'affiliation<\/code>. If a custom event name was set in ThirstyAffiliates, use that exact name instead.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating the Data Layer Variable<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This variable reads the <code>link_uri<\/code> value from the click message.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the site container at <strong><a href=\"https:\/\/tagmanager.google.com\/\">Google Tag Manager<\/a><\/strong>, and navigate to <strong>Workspace &gt; Variables<\/strong>.<\/li>\n\n\n\n<li>Sous <strong>&#8220;User-Defined Variables&#8221;<\/strong>, click <strong>Nouveau<\/strong>.<\/li>\n\n\n\n<li>Cliquez sur <strong>Variable Configuration<\/strong>, and select <strong>Data Layer Variable<\/strong>.<\/li>\n\n\n\n<li>Dans le cadre de la <strong>&#8220;Data Layer Variable Name&#8221;<\/strong> field, enter <code>link_uri<\/code>.<\/li>\n\n\n\n<li>Leave the remaining options at their defaults.<\/li>\n\n\n\n<li>Name the variable <code>DLV - link_uri<\/code> at the top of the panel, and click <strong>\u00c9conomiser<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Creating the Custom Event Trigger<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This trigger fires when ThirstyAffiliates reports a click.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Naviguez jusqu'\u00e0 <strong>Workspace &gt; Triggers<\/strong>, and click <strong>Nouveau<\/strong>.<\/li>\n\n\n\n<li>Cliquez sur <strong>Trigger Configuration<\/strong>, and select <strong>Custom Event<\/strong>.<\/li>\n\n\n\n<li>Dans le cadre de la <strong>&#8220;Event name&#8221;<\/strong> field, enter <code>Lien d'affiliation<\/code>. The value must match the ThirstyAffiliates event name exactly, including spaces and capitalization.<\/li>\n\n\n\n<li>Sous <strong>&#8220;This trigger fires on&#8221;<\/strong>, select <strong>All Custom Events<\/strong>.<\/li>\n\n\n\n<li>Name the trigger <code>CE - Affiliate Link<\/code> at the top of the panel, and click <strong>\u00c9conomiser<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Creating the GA4 Event Tag<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Two tags are involved. The <strong>Google tag<\/strong> connects the container to the GA4 property. The <strong>GA4 event tag<\/strong> sends the click to that property. If the container already has a Google tag for the Measurement ID, start from step 4.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Naviguez jusqu'\u00e0 <strong>Workspace &gt; Tags<\/strong>, and click <strong>Nouveau<\/strong>.<\/li>\n\n\n\n<li>Cliquez sur <strong>Tag Configuration<\/strong>, select <strong>Google Tag<\/strong>, and enter the Measurement ID in the <strong>&#8220;Tag ID&#8221;<\/strong> domaine.<\/li>\n\n\n\n<li>Set the trigger to <strong>Initialization &#8211; All Pages<\/strong>, name the tag, and click <strong>\u00c9conomiser<\/strong>.<\/li>\n\n\n\n<li>Cliquez sur <strong>Nouveau<\/strong>, click <strong>Tag Configuration<\/strong>, and select <strong>Google Analytics: GA4 Event<\/strong>.<\/li>\n\n\n\n<li>Dans le cadre de la <strong>&#8220;Measurement ID&#8221;<\/strong> field, enter the Measurement ID. Do not enter the <code>GTM-<\/code> container ID.<\/li>\n\n\n\n<li>Dans le cadre de la <strong>&#8220;Event Name&#8221;<\/strong> field, enter <code>affiliate_link<\/code>. GA4 event names allow letters, numbers, and underscores only.<\/li>\n\n\n\n<li>Expand <strong>Event Parameters<\/strong>, and click <strong>Add parameter<\/strong>.\n<ol class=\"wp-block-list\">\n<li>Dans le cadre de la <strong>&#8220;Event Parameter&#8221;<\/strong> field, enter <code>link_uri<\/code>.<\/li>\n\n\n\n<li>Dans le cadre de la <strong>&#8220;Value&#8221;<\/strong> field, click the variable icon, and select <strong>DLV &#8211; link_uri<\/strong>.<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>Cliquez sur <strong>Triggering<\/strong>, and select <strong>CE &#8211; Affiliate Link<\/strong>.<\/li>\n\n\n\n<li>Name the tag <code>GA4 - affiliate_link<\/code> at the top of the panel, and click <strong>\u00c9conomiser<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the Setup in Tag Assistant<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GTM includes a testing tool called <strong>Tag Assistant<\/strong>. It shows what GTM does on the site before any change goes live. Test the configuration with it before publishing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use a page of the site that visitors can see and that contains a cloaked ThirstyAffiliates link. A cloaked link is an affiliate link that uses the site&#8217;s own address. Cloaked links start with the <strong><a href=\"https:\/\/thirstyaffiliates.com\/fr\/docs\/link-prefix-explained\/\">link prefix<\/a><\/strong> set under <strong>WordPress Dashboard &gt; ThirstyAffiliates &gt; Settings &gt; Link Appearance<\/strong>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the GTM workspace, click <strong>Avant-premi\u00e8re<\/strong>.<\/li>\n\n\n\n<li>Enter the URL of the test page, and click <strong>Connect<\/strong>. The page opens in a new tab.<\/li>\n\n\n\n<li>Left-click the affiliate link on the test page. Opening the link through the right-click menu does not trigger the click event.<\/li>\n\n\n\n<li>Return to the <strong>Tag Assistant<\/strong> tabulation.<\/li>\n\n\n\n<li>At the top, select the <strong>GTM-<\/strong> container entry. Do not select the <strong>G-<\/strong> Google tag entry.<\/li>\n\n\n\n<li>In the left-hand event list, click <strong>Lien d'affiliation<\/strong>.<\/li>\n\n\n\n<li>Open the <strong>Tags<\/strong> tab, and confirm that <strong>GA4 &#8211; affiliate_link<\/strong> appears under <strong>&#8220;Tags Fired&#8221;<\/strong>.<\/li>\n\n\n\n<li>Open the <strong>Data Layer<\/strong> tab, and confirm that <code>link_uri<\/code> holds the clicked link path.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If Tag Assistant cannot connect to the page, the GTM snippet is not loading on the site. Check the snippet installation before continuing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Publishing the Container<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Changes shown in Tag Assistant are not live yet. Publish the container once the test succeeds.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Return to the GTM workspace, and click <strong>Soumettre<\/strong>.<\/li>\n\n\n\n<li>Enter a version name, such as <code>ThirstyAffiliates click tracking<\/code>.<\/li>\n\n\n\n<li>Cliquez sur <strong>Publier<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Viewing Affiliate Link Clicks in Google Analytics<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>DebugView<\/strong> et <strong>Realtime<\/strong> are GA4 reports that show events within seconds. Standard GA4 reports can take a day to update. Use DebugView or Realtime to confirm that clicks arrive.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Naviguez jusqu'\u00e0 <strong>Google Analytics &gt; Admin &gt; DebugView<\/strong>. Alternatively, open <strong>Google Analytics &gt; Reports &gt; Realtime<\/strong>.<\/li>\n\n\n\n<li>Click an affiliate link on the site, and wait for the <code>affiliate_link<\/code> event to appear.<\/li>\n\n\n\n<li>Click the event, and open <strong>Parameters<\/strong>. Les <code>link_uri<\/code> parameter holds the clicked link path.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">By default, standard GA4 reports show the event name only. The link path stays inside the event. To see it as a report column, register <code>link_uri<\/code> as an event-level <strong>custom dimension<\/strong>. Custom dimensions are created under <strong>Google Analytics &gt; Admin &gt; Data display &gt; Custom definitions<\/strong>. GA4 can take up to 48 hours to show data for a new custom dimension.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting Missing Events<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">The Event Never Appears in Tag Assistant<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ThirstyAffiliates did not report the click. Confirm that <strong>&#8220;Tracking Script&#8221;<\/strong> is set to <strong>&#8220;Google Tag Manager&#8221;<\/strong>. Confirm that the test link is a <strong><a href=\"https:\/\/thirstyaffiliates.com\/fr\/docs\/create-link-thirstyaffiliates\/\">cloaked affiliate link<\/a><\/strong> using the current link prefix. Plain links that were not inserted through ThirstyAffiliates are not tracked. Also confirm that Tag Assistant connected to the page, which shows that the GTM snippet loads.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Event Appears on Some Pages Only<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Those pages are still served from cache with the old tracking code. Clear the cache for the whole site and test again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Tag Shows Under &#8220;Tags Not Fired&#8221;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The trigger <strong>&#8220;Event name&#8221;<\/strong> does not match the plugin event name. Compare both values character by character, including spaces and capitalization.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Traffic Is Counted Twice in GA4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Two Google tags send page views to the same Measurement ID. This happens when a plugin such as MonsterInsights already sends page views. Remove the duplicate Google tag from the GTM container, and keep the GA4 event tag. Sites that rely on MonsterInsights can use the <strong><a href=\"https:\/\/thirstyaffiliates.com\/fr\/docs\/integrating-thirstyaffiliates-with-monsterinsights\/\">MonsterInsights integration<\/a><\/strong> instead of GTM.<\/p>","protected":false},"excerpt":{"rendered":"<p>ThirstyAffiliates Pro can send affiliate link clicks to Google Analytics 4 (GA4) through Google Tag Manager (GTM). GTM is a free Google tool that manages tracking code on a website. This document explains how to set the &#8220;Tracking Script&#8221; option to &#8220;Google Tag Manager&#8221; and complete the required GTM configuration. Selecting &#8220;Google Tag Manager&#8221; in&hellip;<\/p>","protected":false},"author":8154,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"_monsterinsights_skip_tracking":false,"footnotes":""},"ht-kb-category":[498],"ht-kb-tag":[],"class_list":["post-38690","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-thirstyaffiliates-pro"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Euler Vieira\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"fr_FR\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ThirstyAffiliates\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"ThirstyAffiliates Click Tracking With Google Tag Manager\" \/>\n\t\t<meta property=\"og:description\" content=\"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2018\/08\/ta-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2018\/08\/ta-logo.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"992\" \/>\n\t\t<meta property=\"og:image:height\" content=\"111\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-09-21T12:18:10+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-09-21T12:18:24+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/thirstyaffiliates\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@thirstyaff\" \/>\n\t\t<meta name=\"twitter:title\" content=\"ThirstyAffiliates Click Tracking With Google Tag Manager\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2018\/08\/ta-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/#listItem\",\"name\":\"Articles\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/#listItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/doc-categories\\\/thirstyaffiliates-pro\\\/#listItem\",\"name\":\"ThirstyAffiliates Pro\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/doc-categories\\\/thirstyaffiliates-pro\\\/#listItem\",\"position\":3,\"name\":\"ThirstyAffiliates Pro\",\"item\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/doc-categories\\\/thirstyaffiliates-pro\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/#listItem\",\"name\":\"Using ThirstyAffiliates Click Tracking With Google Tag Manager (GTM)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/#listItem\",\"name\":\"Articles\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/#listItem\",\"position\":4,\"name\":\"Using ThirstyAffiliates Click Tracking With Google Tag Manager (GTM)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/doc-categories\\\/thirstyaffiliates-pro\\\/#listItem\",\"name\":\"ThirstyAffiliates Pro\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/#organization\",\"name\":\"ThirstyAffiliates\",\"description\":\"WordPress plugin to manage & cloak affiliate links\",\"url\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/thirstyaffiliates.com\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/ta-logo.png\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/#organizationLogo\",\"width\":992,\"height\":111,\"caption\":\"thirstyaffiliates logo\"},\"image\":{\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/blog\\\/author\\\/eulercaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/blog\\\/author\\\/eulercaseproof-com\\\/\",\"name\":\"Euler Vieira\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/#authorImage\",\"url\":\"https:\\\/\\\/thirstyaffiliates.com\\\/wp-content\\\/litespeed\\\/avatar\\\/e1d235fa20922936fc0c7131dc9df2e7.jpg?ver=1789520915\",\"width\":96,\"height\":96,\"caption\":\"Euler Vieira\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/#webpage\",\"url\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/\",\"name\":\"ThirstyAffiliates Click Tracking With Google Tag Manager\",\"description\":\"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.\",\"inLanguage\":\"fr-FR\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/docs\\\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/blog\\\/author\\\/eulercaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/blog\\\/author\\\/eulercaseproof-com\\\/#author\"},\"datePublished\":\"2026-09-21T06:18:10-06:00\",\"dateModified\":\"2026-09-21T06:18:24-06:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/\",\"name\":\"ThirstyAffiliates\",\"description\":\"WordPress plugin to manage & cloak affiliate links\",\"inLanguage\":\"fr-FR\",\"publisher\":{\"@id\":\"https:\\\/\\\/thirstyaffiliates.com\\\/fr\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>ThirstyAffiliates Click Tracking With Google Tag Manager<\/title>\n\n","aioseo_head_json":{"title":"ThirstyAffiliates Click Tracking With Google Tag Manager","description":"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.","canonical_url":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr#listItem","position":1,"name":"Home","item":"https:\/\/thirstyaffiliates.com\/fr","nextItem":{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/#listItem","name":"Articles"}},{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/#listItem","position":2,"name":"Articles","item":"https:\/\/thirstyaffiliates.com\/fr\/docs\/","nextItem":{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr\/doc-categories\/thirstyaffiliates-pro\/#listItem","name":"ThirstyAffiliates Pro"},"previousItem":{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr\/doc-categories\/thirstyaffiliates-pro\/#listItem","position":3,"name":"ThirstyAffiliates Pro","item":"https:\/\/thirstyaffiliates.com\/fr\/doc-categories\/thirstyaffiliates-pro\/","nextItem":{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/#listItem","name":"Using ThirstyAffiliates Click Tracking With Google Tag Manager (GTM)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/#listItem","name":"Articles"}},{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/#listItem","position":4,"name":"Using ThirstyAffiliates Click Tracking With Google Tag Manager (GTM)","previousItem":{"@type":"ListItem","@id":"https:\/\/thirstyaffiliates.com\/fr\/doc-categories\/thirstyaffiliates-pro\/#listItem","name":"ThirstyAffiliates Pro"}}]},{"@type":"Organization","@id":"https:\/\/thirstyaffiliates.com\/fr\/#organization","name":"ThirstyAffiliates","description":"WordPress plugin to manage & cloak affiliate links","url":"https:\/\/thirstyaffiliates.com\/fr\/","logo":{"@type":"ImageObject","url":"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2018\/08\/ta-logo.png","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/#organizationLogo","width":992,"height":111,"caption":"thirstyaffiliates logo"},"image":{"@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/thirstyaffiliates.com\/fr\/blog\/author\/eulercaseproof-com\/#author","url":"https:\/\/thirstyaffiliates.com\/fr\/blog\/author\/eulercaseproof-com\/","name":"Euler Vieira","image":{"@type":"ImageObject","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/#authorImage","url":"https:\/\/thirstyaffiliates.com\/wp-content\/litespeed\/avatar\/e1d235fa20922936fc0c7131dc9df2e7.jpg?ver=1789520915","width":96,"height":96,"caption":"Euler Vieira"}},{"@type":"WebPage","@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/#webpage","url":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/","name":"ThirstyAffiliates Click Tracking With Google Tag Manager","description":"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.","inLanguage":"fr-FR","isPartOf":{"@id":"https:\/\/thirstyaffiliates.com\/fr\/#website"},"breadcrumb":{"@id":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/#breadcrumblist"},"author":{"@id":"https:\/\/thirstyaffiliates.com\/fr\/blog\/author\/eulercaseproof-com\/#author"},"creator":{"@id":"https:\/\/thirstyaffiliates.com\/fr\/blog\/author\/eulercaseproof-com\/#author"},"datePublished":"2026-09-21T06:18:10-06:00","dateModified":"2026-09-21T06:18:24-06:00"},{"@type":"WebSite","@id":"https:\/\/thirstyaffiliates.com\/fr\/#website","url":"https:\/\/thirstyaffiliates.com\/fr\/","name":"ThirstyAffiliates","description":"WordPress plugin to manage & cloak affiliate links","inLanguage":"fr-FR","publisher":{"@id":"https:\/\/thirstyaffiliates.com\/fr\/#organization"}}]},"og:locale":"fr_FR","og:site_name":"ThirstyAffiliates","og:type":"article","og:title":"ThirstyAffiliates Click Tracking With Google Tag Manager","og:description":"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.","og:url":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/","og:image":"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2018\/08\/ta-logo.png","og:image:secure_url":"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2018\/08\/ta-logo.png","og:image:width":992,"og:image:height":111,"article:published_time":"2026-09-21T12:18:10+00:00","article:modified_time":"2026-09-21T12:18:24+00:00","article:publisher":"https:\/\/www.facebook.com\/thirstyaffiliates","twitter:card":"summary_large_image","twitter:site":"@thirstyaff","twitter:title":"ThirstyAffiliates Click Tracking With Google Tag Manager","twitter:description":"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.","twitter:image":"https:\/\/thirstyaffiliates.com\/wp-content\/uploads\/2018\/08\/ta-logo.png"},"aioseo_meta_data":{"post_id":"38690","title":"ThirstyAffiliates Click Tracking With Google Tag Manager","description":"Send ThirstyAffiliates affiliate link clicks to Google Analytics 4 through Google Tag Manager with a data layer variable, trigger, and GA4 event tag.","keywords":null,"keyphrases":{"focus":{"keyphrase":"ThirstyAffiliates Google Tag Manager","score":0,"analysis":[]},"additional":[{"keyphrase":"affiliate","score":94},{"keyphrase":"GA4","score":94},{"keyphrase":"GA4 event tag","score":74},{"keyphrase":"affiliate link click tracking","score":74}]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":"2026-09-21 12:18:24","breadcrumb_settings":null,"limit_modified_date":false,"open_ai":null,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-09-16 00:29:01","updated":"2026-09-21 12:18:24","focus_keyword":"ThirstyAffiliates Google Tag Manager","additional_keywords":[{"word":"affiliate","score":94,"items":{"introductionKeyword":{"score":9},"keyphraseLength":{"score":9},"keyphraseDensity":{"score":9},"functionWordsInKeyphrase":{"score":9},"textCompetingLinks":{"score":9},"imageKeyphrase":{"score":6}}},{"word":"GA4","score":94,"items":{"introductionKeyword":{"score":9},"keyphraseLength":{"score":9},"keyphraseDensity":{"score":9},"functionWordsInKeyphrase":{"score":9},"textCompetingLinks":{"score":9},"imageKeyphrase":{"score":6}}},{"word":"GA4 event tag","score":74,"items":{"introductionKeyword":{"score":3},"keyphraseLength":{"score":9},"keyphraseDensity":{"score":4},"functionWordsInKeyphrase":{"score":9},"textCompetingLinks":{"score":9},"imageKeyphrase":{"score":6}}},{"word":"affiliate link click tracking","score":74,"items":{"introductionKeyword":{"score":3},"keyphraseLength":{"score":9},"keyphraseDensity":{"score":4},"functionWordsInKeyphrase":{"score":9},"textCompetingLinks":{"score":9},"imageKeyphrase":{"score":6}}}],"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/thirstyaffiliates.com\/fr\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/thirstyaffiliates.com\/fr\/docs\/\" title=\"Articles\">Articles<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/thirstyaffiliates.com\/fr\/doc-categories\/thirstyaffiliates-pro\/\" title=\"ThirstyAffiliates Pro\">ThirstyAffiliates Pro<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\tUsing ThirstyAffiliates Click Tracking With Google Tag Manager (GTM)\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/thirstyaffiliates.com\/fr"},{"label":"Articles","link":"https:\/\/thirstyaffiliates.com\/fr\/docs\/"},{"label":"ThirstyAffiliates Pro","link":"https:\/\/thirstyaffiliates.com\/fr\/doc-categories\/thirstyaffiliates-pro\/"},{"label":"Using ThirstyAffiliates Click Tracking With Google Tag Manager (GTM)","link":"https:\/\/thirstyaffiliates.com\/fr\/docs\/using-thirstyaffiliates-click-tracking-google-tag-manager-gtm\/"}],"_links":{"self":[{"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb\/38690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/users\/8154"}],"replies":[{"embeddable":true,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/comments?post=38690"}],"version-history":[{"count":3,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb\/38690\/revisions"}],"predecessor-version":[{"id":38708,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb\/38690\/revisions\/38708"}],"wp:attachment":[{"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/media?parent=38690"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb-category?post=38690"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/thirstyaffiliates.com\/fr\/wp-json\/wp\/v2\/ht-kb-tag?post=38690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}