{"id":74755,"date":"2025-08-21T14:00:29","date_gmt":"2025-08-21T11:00:29","guid":{"rendered":"https:\/\/affise.com\/?p=74755"},"modified":"2025-09-12T17:15:27","modified_gmt":"2025-09-12T14:15:27","slug":"how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide","status":"publish","type":"post","link":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/","title":{"rendered":"How to Integrate Affise Web SDK with Google Tag Manager (GTM): A Complete Guide"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"74755\" class=\"elementor elementor-74755\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-012ac70 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"012ac70\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d5e601c\" data-id=\"d5e601c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-19ce7a8 elementor-widget elementor-widget-text-editor\" data-id=\"19ce7a8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.20.0 - 13-03-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<p>Are you looking for a flexible way to track your affiliate marketing campaigns without constantly editing your website&#8217;s code?&nbsp;<a href=\"https:\/\/affise.com\/integration\/google-ads-and-affise\/\" target=\"_blank\">Integrating<\/a>&nbsp;the&nbsp;<strong>Affise Web SDK with Google Tag Manager (GTM)<\/strong>&nbsp;is the perfect solution. GTM allows you to deploy and manage your tracking scripts with ease, giving you the power to track clicks and conversions accurately and efficiently.<\/p>\n<p>This step-by-step guide will show you exactly how to configure end-to-end Affise tracking in GTM, from the initial click to the final conversion.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7cd88a7 elementor-widget elementor-widget-text-editor\" data-id=\"7cd88a7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Prerequisites<\/h3><p>Before you begin, make sure you have the following:<\/p><ul><li>An active Affise account with white label domain (recommended).<\/li><li>A Google Tag Manager container installed on your website with a trigger configured for your desired conversion event(s).<\/li><\/ul><p><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bb70682 elementor-widget elementor-widget-text-editor\" data-id=\"bb70682\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Step 1: Set Up Affise Click Tracking for Landing Pages<\/h3><p>The first step is to capture the initial touchpoint when a user arrives from an affiliate link. This tag should only fire once on the user&#8217;s landing page to ensure data accuracy.<\/p><ol><li><strong>Create a New Custom HTML Tag:<\/strong>\u00a0In your GTM account, navigate to\u00a0<strong>Tags &gt; New<\/strong>. Name your tag something clear, like\u00a0<code>Affise - Click Tracking<\/code>. For the tag type, select\u00a0<strong>Custom HTML<\/strong>.<\/li><\/ol><p><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b951485 elementor-widget elementor-widget-image\" data-id=\"b951485\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.20.0 - 13-03-2024 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"3344\" height=\"1448\" src=\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/Zrzut-ekranu-2025-08-8-o-11.12.59.png\" class=\"attachment-large size-large wp-image-74778\" alt=\"Affise Click Tracking\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7262103 elementor-widget elementor-widget-text-editor\" data-id=\"7262103\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"2\"><li><p><strong>Paste the Click Tracking Script:<\/strong>\u00a0Add the following script to the HTML field. This code captures the\u00a0<code>offer_id<\/code>and\u00a0<code>aff_id<\/code>\u00a0from the URL, generates a click<\/p><p><code>&lt;script src=\"&lt;https:\/\/csdemo.g2afse.com\/websdk.js&gt;\"&gt;&lt;\/script&gt;<\/code><\/p><p><code>&lt;script&gt;<\/code><\/p><p><code>var offerId = ASDK.urlParameter('offer_id') || 'DEFAULT_OFFER';  var affiliateId = ASDK.urlParameter('aff_id') || 'DEFAULT_AFFILIATE';<\/code><\/p><p><code>ASDK.click({  offer_id: offerId,  affiliate_id: affiliateId,  user_agent: navigator.userAgent  })  .then(function(clickId) {  console.log('Tracking initialized:', clickId);  })  .catch(function(error) {  console.error('Tracking error:', error.message);  });  &lt;\/script&gt;<\/code><\/p><\/li><\/ol><p><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5718467 elementor-widget elementor-widget-image\" data-id=\"5718467\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1962\" height=\"1042\" src=\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/Click-Tracking-Script.png\" class=\"attachment-large size-large wp-image-74783\" alt=\"Click Tracking Script\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4ea6ac8 elementor-widget elementor-widget-text-editor\" data-id=\"4ea6ac8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><strong><span class=\"notion-enable-hover\" data-token-index=\"0\">3. Add a &#8220;All Pages &#8211; Page View&#8221; Trigger:<\/span><\/strong>\u00a0This will generate the click when the user visits the page. If the click is already generated, then it won\u2019t be created on the subsequent visits of the page.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-eb4b382 elementor-widget elementor-widget-image\" data-id=\"eb4b382\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"2886\" height=\"636\" src=\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/Zrzut-ekranu-2025-08-8-o-11.27.27.png\" class=\"attachment-large size-large wp-image-74788\" alt=\"Page View Trigger\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6910457 elementor-widget elementor-widget-text-editor\" data-id=\"6910457\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Step 2: Implement Affise Conversion Tracking in GTM<\/h3><p>Next, you need to track when a user completes a key action, like a purchase or a form submission. This conversion tag will link the action back to the original click.<\/p><ol><li><strong>Create a New Conversion Tag:<\/strong>\u00a0Go to\u00a0<strong>Tags &gt; New<\/strong>, name it\u00a0<code>Affise - Conversion Tracking<\/code>, and select the\u00a0<strong>Custom HTML<\/strong>\u00a0tag type.<\/li><\/ol><p><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-98512fd elementor-widget elementor-widget-image\" data-id=\"98512fd\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"3344\" height=\"1448\" src=\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/Zrzut-ekranu-2025-08-8-o-11.12.59-1.png\" class=\"attachment-large size-large wp-image-74793\" alt=\"New Conversion Tag\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d8a4eaf elementor-widget elementor-widget-text-editor\" data-id=\"d8a4eaf\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ol start=\"2\"><li><p><strong>Add the Conversion Tracking Script:<\/strong>\u00a0Paste the code below. This script is smart; it retrieves the\u00a0<code>offer_id<\/code>\u00a0saved in the previous step and uses it to find the correct\u00a0<code>clickId<\/code>\u00a0automatically stored by the SDK.<\/p><p><code>&lt;script src=\"&lt;https:\/\/csdemo.g2afse.com\/websdk.js&gt;\"&gt;&lt;\/script&gt;<\/code><\/p><p><code>&lt;script&gt;<\/code><\/p><p><code>var offerId = ASDK.urlParameter('offer_id');  var clickId = ASDK.clickId(offerId);<\/code><\/p><p><code>ASDK.conversion({  click_id: clickId,  offer_id: offerId,  status: '1' \/\/ 1 = confirmed  })<\/code><\/p><p><code>.then(function() {  console.log('Conversion tracked successfully');  })<\/code><\/p><p><code>.catch(function(error) {  console.error('Error tracking conversion:', error);  });<\/code><\/p><p><code>&lt;\/script&gt;<\/code><\/p><\/li><\/ol><p><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-87f853c elementor-widget elementor-widget-image\" data-id=\"87f853c\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"2388\" height=\"1566\" src=\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/Zrzut-ekranu-2025-08-8-o-11.56.31.png\" class=\"attachment-large size-large wp-image-74799\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1ccaf2a elementor-widget elementor-widget-text-editor\" data-id=\"1ccaf2a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><strong><span class=\"notion-enable-hover\" data-token-index=\"0\">3. Choose Your Conversion Trigger:<\/span><\/strong>\u00a0Click\u00a0<strong><span class=\"notion-enable-hover\" data-token-index=\"2\">Triggering<\/span><\/strong>\u00a0and select the event that defines a conversion. This will be unique to your website. Common examples include:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9ab43ed elementor-widget elementor-widget-image\" data-id=\"9ab43ed\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"2272\" height=\"534\" src=\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/Zrzut-ekranu-2025-08-8-o-11.57.32.png\" class=\"attachment-large size-large wp-image-74804\" alt=\"Conversion Trigger\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2ee077a elementor-widget elementor-widget-text-editor\" data-id=\"2ee077a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul><li>A\u00a0<strong>Page View<\/strong>\u00a0trigger for a &#8220;Thank You&#8221; or &#8220;Order Confirmation&#8221; page (e.g.,\u00a0<code>Page URL contains \/thank-you<\/code>).<\/li><li>A\u00a0<strong>Custom Event<\/strong> trigger that fires when a specific action, like a purchase, is pushed to the data layer.<\/li><\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5801f73 elementor-widget elementor-widget-text-editor\" data-id=\"5801f73\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3 style=\"text-align: center;\">Pro Tip: Ensure Accurate Tracking in Safari and Other Browsers<\/h3><p>To ensure your tracking works reliably across all browsers, especially those with privacy features like Safari&#8217;s Intelligent Tracking Prevention (ITP), your tracking links\u00a0<strong>must<\/strong>\u00a0contain the necessary parameters. The click tracking script relies on this data being present in the URL when the user first lands on your site.<\/p><p>Make sure your tracking links are formatted correctly:\u00a0<code>https:\/\/yourwebsite.com\/?offer_id={offer_id}&amp;aff_id={pid}<\/code><\/p><p><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-407e883 elementor-widget elementor-widget-image\" data-id=\"407e883\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1574\" height=\"546\" src=\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/Zrzut-ekranu-2025-08-8-o-12.32.15.png\" class=\"attachment-large size-large wp-image-74812\" alt=\"Accurate Tracking in Safari\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7547fde elementor-widget elementor-widget-text-editor\" data-id=\"7547fde\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>By following this guide, you have successfully set up a powerful and robust Affise tracking system using Google Tag Manager, enabling you to make data-driven decisions to grow your affiliate program.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Are you looking for a flexible way to track your affiliate marketing campaigns without constantly editing your website&#8217;s code?&nbsp;Integrating&nbsp;the&nbsp;Affise Web SDK with Google Tag Manager (GTM)&nbsp;is the perfect solution. GTM allows you to deploy and manage your tracking scripts with ease, giving you the power to track clicks and conversions accurately and efficiently. This step-by-step [&hellip;]<\/p>\n","protected":false},"author":51,"featured_media":74772,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Affise SDK &amp; Google Tag Manager Integration Guide<\/title>\n<meta name=\"description\" content=\"This guide provides a tutorial on how to integrate Google Tag Manager with the Affise Web SDK for accurate and efficient campaign tracking.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Affise SDK &amp; Google Tag Manager Integration Guide\" \/>\n<meta property=\"og:description\" content=\"This guide provides a tutorial on how to integrate Google Tag Manager with the Affise Web SDK for accurate and efficient campaign tracking.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Affise\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/getaffise\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-21T11:00:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-12T14:15:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2280\" \/>\n\t<meta property=\"og:image:height\" content=\"930\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aru Derbisbayeva\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GetAffise\" \/>\n<meta name=\"twitter:site\" content=\"@GetAffise\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dmitry Hodosok\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/\"},\"author\":{\"name\":\"Aru Derbisbayeva\",\"@id\":\"https:\/\/affise.com\/#\/schema\/person\/97c24c58245468e97802799bef4d3c9f\"},\"headline\":\"How to Integrate Affise Web SDK with Google Tag Manager (GTM): A Complete Guide\",\"datePublished\":\"2025-08-21T11:00:29+00:00\",\"dateModified\":\"2025-09-12T14:15:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/\"},\"wordCount\":512,\"publisher\":{\"@id\":\"https:\/\/affise.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png\",\"articleSection\":[\"Events\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/\",\"url\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/\",\"name\":\"Affise SDK & Google Tag Manager Integration Guide\",\"isPartOf\":{\"@id\":\"https:\/\/affise.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png\",\"datePublished\":\"2025-08-21T11:00:29+00:00\",\"dateModified\":\"2025-09-12T14:15:27+00:00\",\"description\":\"This guide provides a tutorial on how to integrate Google Tag Manager with the Affise Web SDK for accurate and efficient campaign tracking.\",\"breadcrumb\":{\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#primaryimage\",\"url\":\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png\",\"contentUrl\":\"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png\",\"width\":2280,\"height\":930,\"caption\":\"How to Integrate Affise Web SDK with Google Tag Manager (GTM): A Complete Guide\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/affise.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Integrate Affise Web SDK with Google Tag Manager (GTM): A Complete Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/affise.com\/#website\",\"url\":\"https:\/\/affise.com\/\",\"name\":\"Affise\",\"description\":\"Performance Marketing &amp; Mobile Attribution Platform\",\"publisher\":{\"@id\":\"https:\/\/affise.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/affise.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/affise.com\/#organization\",\"name\":\"Affise Technologies Ltd\",\"alternateName\":\"Affise\",\"url\":\"https:\/\/affise.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/affise.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/affise.com\/wp-content\/uploads\/2021\/09\/affise-logo-banner.jpg\",\"contentUrl\":\"https:\/\/affise.com\/wp-content\/uploads\/2021\/09\/affise-logo-banner.jpg\",\"width\":1080,\"height\":1080,\"caption\":\"Affise Technologies Ltd\"},\"image\":{\"@id\":\"https:\/\/affise.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/getaffise\",\"https:\/\/twitter.com\/GetAffise\",\"https:\/\/www.instagram.com\/getaffise\/\",\"https:\/\/www.linkedin.com\/company\/affise-com\/\",\"https:\/\/medium.com\/@affise\",\"https:\/\/www.youtube.com\/channel\/UCkSVBagxxJzOxhmQ1KXAzPw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/affise.com\/#\/schema\/person\/97c24c58245468e97802799bef4d3c9f\",\"name\":\"Aru Derbisbayeva\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/affise.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/da26d4c41a930e74614aeb5f82d44616?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/da26d4c41a930e74614aeb5f82d44616?s=96&d=mm&r=g\",\"caption\":\"Aru Derbisbayeva\"},\"url\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Affise SDK & Google Tag Manager Integration Guide","description":"This guide provides a tutorial on how to integrate Google Tag Manager with the Affise Web SDK for accurate and efficient campaign tracking.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/","og_locale":"en_US","og_type":"article","og_title":"Affise SDK & Google Tag Manager Integration Guide","og_description":"This guide provides a tutorial on how to integrate Google Tag Manager with the Affise Web SDK for accurate and efficient campaign tracking.","og_url":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/","og_site_name":"Affise","article_publisher":"https:\/\/www.facebook.com\/getaffise","article_published_time":"2025-08-21T11:00:29+00:00","article_modified_time":"2025-09-12T14:15:27+00:00","og_image":[{"width":2280,"height":930,"url":"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png","type":"image\/png"}],"author":"Aru Derbisbayeva","twitter_card":"summary_large_image","twitter_creator":"@GetAffise","twitter_site":"@GetAffise","twitter_misc":{"Written by":"Dmitry Hodosok","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#article","isPartOf":{"@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/"},"author":{"name":"Aru Derbisbayeva","@id":"https:\/\/affise.com\/#\/schema\/person\/97c24c58245468e97802799bef4d3c9f"},"headline":"How to Integrate Affise Web SDK with Google Tag Manager (GTM): A Complete Guide","datePublished":"2025-08-21T11:00:29+00:00","dateModified":"2025-09-12T14:15:27+00:00","mainEntityOfPage":{"@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/"},"wordCount":512,"publisher":{"@id":"https:\/\/affise.com\/#organization"},"image":{"@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png","articleSection":["Events"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/","url":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/","name":"Affise SDK & Google Tag Manager Integration Guide","isPartOf":{"@id":"https:\/\/affise.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#primaryimage"},"image":{"@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png","datePublished":"2025-08-21T11:00:29+00:00","dateModified":"2025-09-12T14:15:27+00:00","description":"This guide provides a tutorial on how to integrate Google Tag Manager with the Affise Web SDK for accurate and efficient campaign tracking.","breadcrumb":{"@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#primaryimage","url":"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png","contentUrl":"https:\/\/affise.com\/wp-content\/uploads\/2025\/08\/roifocus_Blog-6-1.png","width":2280,"height":930,"caption":"How to Integrate Affise Web SDK with Google Tag Manager (GTM): A Complete Guide"},{"@type":"BreadcrumbList","@id":"https:\/\/affise.com\/blog\/how-to-integrate-affise-web-sdk-with-google-tag-manager-gtm-a-complete-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/affise.com\/"},{"@type":"ListItem","position":2,"name":"How to Integrate Affise Web SDK with Google Tag Manager (GTM): A Complete Guide"}]},{"@type":"WebSite","@id":"https:\/\/affise.com\/#website","url":"https:\/\/affise.com\/","name":"Affise","description":"Performance Marketing &amp; Mobile Attribution Platform","publisher":{"@id":"https:\/\/affise.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/affise.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/affise.com\/#organization","name":"Affise Technologies Ltd","alternateName":"Affise","url":"https:\/\/affise.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/affise.com\/#\/schema\/logo\/image\/","url":"https:\/\/affise.com\/wp-content\/uploads\/2021\/09\/affise-logo-banner.jpg","contentUrl":"https:\/\/affise.com\/wp-content\/uploads\/2021\/09\/affise-logo-banner.jpg","width":1080,"height":1080,"caption":"Affise Technologies Ltd"},"image":{"@id":"https:\/\/affise.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/getaffise","https:\/\/twitter.com\/GetAffise","https:\/\/www.instagram.com\/getaffise\/","https:\/\/www.linkedin.com\/company\/affise-com\/","https:\/\/medium.com\/@affise","https:\/\/www.youtube.com\/channel\/UCkSVBagxxJzOxhmQ1KXAzPw"]},{"@type":"Person","@id":"https:\/\/affise.com\/#\/schema\/person\/97c24c58245468e97802799bef4d3c9f","name":"Aru Derbisbayeva","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/affise.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/da26d4c41a930e74614aeb5f82d44616?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/da26d4c41a930e74614aeb5f82d44616?s=96&d=mm&r=g","caption":"Aru Derbisbayeva"},"url":""}]}},"_links":{"self":[{"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/posts\/74755"}],"collection":[{"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/comments?post=74755"}],"version-history":[{"count":0,"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/posts\/74755\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/media\/74772"}],"wp:attachment":[{"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/media?parent=74755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/categories?post=74755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affise.com\/wp-json\/wp\/v2\/tags?post=74755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}