{"id":19948,"date":"2020-04-17T09:06:45","date_gmt":"2020-04-17T09:06:45","guid":{"rendered":"http:\/\/refiner.io\/documentation\/?post_type=knowledgebase&#038;p=19948"},"modified":"2026-04-08T16:22:29","modified_gmt":"2026-04-08T16:22:29","slug":"google-tag-manager","status":"publish","type":"knowledgebase","link":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/","title":{"rendered":"Install with Google Tag Manager"},"content":{"rendered":"\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p><a href=\"https:\/\/tagmanager.google.com\/#\/home\" target=\"_blank\" rel=\"noreferrer noopener\">Google Tag <\/a><a href=\"https:\/\/marketingplatform.google.com\/about\/\" target=\"_blank\" rel=\"noreferrer noopener\">Manager<\/a> (GTM) is a free tool that allows you to easily add or remove JavaScript tags to your web application without requiring any code changes. Users of GTM can install the Refiner client needed to launch surveys with a few clicks only.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install-tag\">Install Refiner GTM tag<\/h2>\n\n\n\n<p>To install the JavaScript SDK with Google Tag Manager, please follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to the &#8220;Tags&#8221; section in your Google Tag Manager container <\/li>\n\n\n\n<li>Click on &#8220;Add New Tag&#8221;<\/li>\n\n\n\n<li>Name your new tag &#8220;Refiner&#8221; and click &#8220;Choose a tag &#8230;&#8221;<\/li>\n\n\n\n<li>Navigate to the &#8220;Community Tags&#8221; by clicking on the banner above the tag list<\/li>\n\n\n\n<li>Scroll to &#8220;Refiner&#8221; and click &#8220;Add to Workspace&#8221;<\/li>\n\n\n\n<li>Fill in the &#8220;Project ID&#8221;. You can find your project ID on the Installation page inside your Refiner account.<\/li>\n\n\n\n<li>Set the trigger for the Refiner snippet to &#8220;All Pages &#8211; Page View&#8221; <\/li>\n\n\n\n<li>Publish your updated Workspace<\/li>\n<\/ol>\n\n\n\n<p>That&#8217;s it! The Refiner client is now installed and ready to launch surveys on your website.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"508\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-1024x508.png\" alt=\"\" class=\"wp-image-21896\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-1024x508.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-300x149.png 300w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-768x381.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-1536x762.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-2048x1016.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"identify\">Identify users<\/h2>\n\n\n\n<p>If you want to launch surveys for logged-in users of your web-app using GTM, further installation steps are needed. Whenever possible, we recommend to identify your users as it unlocks many features of Refiner, such as user segmentation and more data integrations as described <a href=\"https:\/\/refiner.io\/docs\/kb\/javascript-client\/anonymous-vs-identified-users-mode\/\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create variables for your user data<\/h3>\n\n\n\n<p>As a first step, make sure that all user data fields which you want to send to Refiner are available as variables. <\/p>\n\n\n\n<p>Go to &#8220;Variables&#8221; in your GTM account and check if you already have &#8220;<a href=\"https:\/\/support.google.com\/tagmanager\/topic\/9125128\" target=\"_blank\" rel=\"noreferrer noopener\">User-Defined Variables<\/a>&#8220;. If you don&#8217;t, go ahead and create one for each data field you want to sync to Refiner. <\/p>\n\n\n\n<p>At a minimum, you need to create a variable for the identifier (e.g. userId) you&#8217;ll use to identify users. You can choose to create other variables if you want to sync more data to your Refiner account.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"476\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-17-at-12.12.54-1024x476.png\" alt=\"\" class=\"wp-image-24227\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-17-at-12.12.54-1024x476.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-17-at-12.12.54-800x372.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-17-at-12.12.54-768x357.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-17-at-12.12.54-1536x715.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-17-at-12.12.54-2048x953.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Map user data from to Refiner tag<\/h3>\n\n\n\n<p>Once user data was defined with variables, it&#8217;s time to map them in the Refiner tag setup. <\/p>\n\n\n\n<p>Go to the Refiner tag configuration panel and map the User ID or Email as shown below. You can also provide the user name. <\/p>\n\n\n\n<p>You can send additional user traits from your User-Defined Variables to Refiner. All traits sent to Refiner can be used to segment your users and create <a href=\"https:\/\/refiner.io\/docs\/kb\/in-product-surveys\/target-audience\/\">target audiences<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"784\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.25.45-1024x784.png\" alt=\"\" class=\"wp-image-21895\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.25.45-1024x784.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.25.45-300x230.png 300w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.25.45-768x588.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.25.45-1536x1175.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.25.45.png 1814w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"identity-verification\">Provide an Identity Verification Token (optional)<\/h3>\n\n\n\n<p>If you are using the optional <a href=\"https:\/\/refiner.io\/docs\/kb\/settings\/identity-verification\/\">Identify Verification<\/a> security feature, you can provide the computed signature as a user trait using &#8220;<em>identify_verification_signature<\/em>&#8221; for the field identifier.<\/p>\n\n\n\n<p>Please make sure to always compute the signature on the backend and never client-side in the frontend code.<\/p>\n\n\n\n<p>You can verify that your Refiner installation works correctly by opening the Developer Console of your web browser. If you see requests to our server failing with a 403 code, your signature is not calculated correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"attach-data\">Attach data to responses<\/h2>\n\n\n\n<p>Our GTM tag allows you to attach any kind of contextual data to survey responses of your users. This data can be either static text, dynamic data coming from the Data Layer, or <a href=\"https:\/\/refiner.io\/docs\/kb\/javascript-client\/reference\/#magic\">Magic Variables<\/a>.<\/p>\n\n\n\n<p>This option works independently from identifying your users. You can provide contextual data when surveying anonymous or logged-in users.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"249\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.24.12-1024x249.png\" alt=\"\" class=\"wp-image-21894\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.24.12-1024x249.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.24.12-300x73.png 300w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.24.12-768x187.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.24.12-1536x374.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.24.12.png 1806w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"track-event\">Track user events<\/h2>\n\n\n\n<p>To <a href=\"https:\/\/refiner.io\/docs\/kb\/data-index\/tracking-user-events\/\">track a user event<\/a> in Refiner with GTM you can create a <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6107167?hl=en#CustomHTML\" target=\"_blank\" rel=\"noreferrer noopener\">Custom HTML Tag<\/a> element which executes the following JavaScript code:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;script>\n_refiner('trackEvent', 'Your Event Name');\n&lt;\/script><\/pre>\n\n\n\n<p>Once you created this tag, you can call it in your GTM setup whenever you want to track the event.<\/p>\n\n\n\n<p>Please note that tracking events is only available for logged-in users that you identified with a User ID (see above).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"troubleshoot\">Troubleshoot GTM installation<\/h2>\n\n\n\n<p>If your Refiner surveys are not launching as expected, we recommend to troubleshoot your GTM installation by following the steps below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Check if the Refiner tag is loaded<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Method #1: Try launching Debug Mode<\/h4>\n\n\n\n<p>Our JavaScript SDK has a built-in <a href=\"https:\/\/refiner.io\/docs\/kb\/javascript-client\/test-and-debug\/\">Debug Mode<\/a> which can provide useful information on the current state of the client.<\/p>\n\n\n\n<p>You can enable the Debug Mode by executing some code in the browser console or with a URL parameter. Both methods are described <a href=\"https:\/\/refiner.io\/docs\/kb\/javascript-client\/test-and-debug\/\">here<\/a>.<\/p>\n\n\n\n<p>If our JavaScript client was loaded correctly, you should see a debug window telling you if a connection to our servers was established and which environment ID was set.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"330\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2021-04-29-at-14.21.38.png\" alt=\"\" class=\"wp-image-24187\"\/><\/figure><\/div>\n\n\n<p>The debug window also tells you whether the client is currently operating in &#8220;Identified User&#8221; or &#8220;Anonymous User&#8221; mode. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Method #2: Check the HTML document<\/h4>\n\n\n\n<p>If the Debug Mode described above is not showing any information, the Refiner client is probably not loaded correctly to your HTML document. <\/p>\n\n\n\n<p>Open the developer console of your browser and navigate to the &#8220;Elements&#8221; tab. If you search for &#8220;refiner&#8221;, our JavaScript tag should show up as shown below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"410\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-15-at-16.53.31-1024x410.png\" alt=\"\" class=\"wp-image-24188\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-15-at-16.53.31-1024x410.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-15-at-16.53.31-800x321.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-15-at-16.53.31-768x308.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-15-at-16.53.31.png 1158w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>If the JavaScript tag does not show up, it means that the Refiner tag was not loaded by Google Tag Manager.<\/p>\n\n\n\n<p>To resolve this issue, go to your GTM account and check that you published your latest changes and that the trigger event for our tag is set correctly.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Method #3: Inspect network tab<\/h4>\n\n\n\n<p>You can inspect the network tab of the developer console to check if the Refiner client was loaded.<\/p>\n\n\n\n<p>Open the Developer Console of your browser and navigate to &#8220;Network&#8221;.<\/p>\n\n\n\n<p>Setting the filters of the request filter to &#8220;Fetch\/XHR&#8221; and searching for &#8220;refiner&#8221; shows all communication between your browser and our backend servers. <\/p>\n\n\n\n<p>If you see requests to the <em>api.refiner.io<\/em>, it means that our client was loaded successfully.<\/p>\n\n\n\n<p>Clicking on a request gives you access to the Payload (screenshot below) and the Response of our servers.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"393\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-13.26.24-1024x393.png\" alt=\"\" class=\"wp-image-24301\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-13.26.24-1024x393.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-13.26.24-800x307.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-13.26.24-768x295.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-13.26.24.png 1451w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>If you are identifying your users, the Payload of each request should have a value either for <em>contact_remote_id<\/em> or <em>contact_email<\/em>.<\/p>\n\n\n\n<p>All requests should end with a 200 or 201 status response code. If any of the requests are marked with a 4xx or 5xx error, click on the them to reveal the response of our server. <\/p>\n\n\n\n<p>You can make a screenshot and send it to our support team for further assistance.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\" id=\"tag-timing\">Delay loading of the Refiner tag<\/h3>\n\n\n\n<p>When you want to identify users, it is important that the GTM Data Layer is populated with user data before the Refiner tag is loaded. <\/p>\n\n\n\n<p>Depending on the technology your web application us using, the GTM Data Layer might get populated asynchronously and user data might not be available on page load. If this is the case, you need to delay loading the Refiner until user data was provided by your API.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"wait\">Method #1: Fire tag after certain event<\/h4>\n\n\n\n<p>The most reliable way to delay loading of the Refiner tag until user data is available is to use a Custom Event Trigger. <\/p>\n\n\n\n<p>Your app might already emit an event to the GTM Data Layer which indicates that the user data was loaded, for example &#8220;User Data Loaded&#8221;. <\/p>\n\n\n\n<p>If this is the case, you can use the event as in Triggering section of the Refiner tag as shown in the screenshot below. You can ask your developers if such an event was implemented for your app.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"405\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.03.08-1024x405.png\" alt=\"\" class=\"wp-image-24308\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.03.08-1024x405.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.03.08-800x316.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.03.08-768x303.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.03.08-1536x607.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.03.08-2048x809.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"delay\">Method #2: Use a Timer to delay loading<\/h4>\n\n\n\n<p>If no custom event is available in your GTM account which would indicate that user data is available, you can also simply delay the Refiner tag for a couple of seconds. You can do this by using  the Timer Trigger. <\/p>\n\n\n\n<p>Usually, delaying the Refiner tag by 2-3 seconds after page load leads to reliable loading of your tag.<\/p>\n\n\n\n<p>Follow these steps to implement a time delay for the Refiner tag:<\/p>\n\n\n\n<p>1\/ Navigate to Triggers and click on &#8220;Create Trigger&#8221;.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"343\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.04.50-1024x343.png\" alt=\"\" class=\"wp-image-24310\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.04.50-1024x343.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.04.50-800x268.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.04.50-768x257.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.04.50-1536x514.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.04.50-2048x686.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>2\/ Choose Timer as the trigger type.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"460\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-20.56.47-1024x460.png\" alt=\"\" class=\"wp-image-24309\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-20.56.47-1024x460.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-20.56.47-800x359.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-20.56.47-768x345.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-20.56.47.png 1528w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3\/ Use the following settings for the Timer trigger:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A distinct name, e.g. refiner.loadDelay<\/li>\n\n\n\n<li>Delay to 2000 &#8211; 3000 milliseconds<\/li>\n\n\n\n<li>Limit = 1 to prevent loading the tag multiple times<\/li>\n\n\n\n<li>Page Path set to &#8220;contains&#8221; and &#8220;\/&#8221; to load the Refiner tag on all pages<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"616\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.08.47-1024x616.png\" alt=\"\" class=\"wp-image-24311\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.08.47-1024x616.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.08.47-800x482.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.08.47-768x462.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.08.47-1536x925.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.08.47.png 1814w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>4\/ Save the Trigger and head over to the configuration of the Refiner tag<\/p>\n\n\n\n<p>5\/ Click on the &#8220;Triggering section&#8221; and locate your newly created Trigger<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"560\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.11.10-1024x560.png\" alt=\"\" class=\"wp-image-24312\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.11.10-1024x560.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.11.10-800x438.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.11.10-768x420.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.11.10-1536x840.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.11.10.png 1590w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>5\/ Choose your newly created Trigger in the Triggering section<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"530\" src=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.15.25-1024x530.png\" alt=\"\" class=\"wp-image-24313\" srcset=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.15.25-1024x530.png 1024w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.15.25-800x414.png 800w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.15.25-768x397.png 768w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.15.25-1536x794.png 1536w, https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/Screenshot-2022-11-21-at-21.15.25-2048x1059.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>5\/ Save your tag configuration and publish the changes <\/p>\n\n\n\n<p>If you have any questions or need a helping hand installing the Refiner client with GTM, please don&#8217;t hesitate to <a href=\"https:\/\/refiner.io\/docs\/support\/\">contact us<\/a>.<\/p>\n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Google Tag Manager (GTM) is a free tool that allows you to easily add or remove JavaScript tags to your web application without requiring any code changes. Users of GTM can install the Refiner client needed to launch surveys with a few clicks only. Install Refiner GTM tag To install the JavaScript SDK with [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","template":"","knowledgebase_tag":[],"class_list":["post-19948","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-install-client"],"featured_image_urls_v2":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":"","ab-block-post-grid-landscape":"","ab-block-post-grid-square":"","gb-block-post-grid-landscape":"","gb-block-post-grid-square":""},"post_excerpt_stackable_v2":"<p>Introduction Google Tag Manager (GTM) is a free tool that allows you to easily add or remove JavaScript tags to your web application without requiring any code changes. Users of GTM can install the Refiner client needed to launch surveys with a few clicks only. Install Refiner GTM tag To install the JavaScript SDK with Google Tag Manager, please follow these steps: Navigate to the &#8220;Tags&#8221; section in your Google Tag Manager container Click on &#8220;Add New Tag&#8221; Name your new tag &#8220;Refiner&#8221; and click &#8220;Choose a tag &#8230;&#8221; Navigate to the &#8220;Community Tags&#8221; by clicking on the banner above&hellip;<\/p>\n","category_list_v2":"","author_info_v2":{"name":"Moritz Dausinger","url":"https:\/\/refiner.io\/docs\/author\/user\/"},"comments_num_v2":"0 comments","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install with Google Tag Manager<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install with Google Tag Manager\" \/>\n<meta property=\"og:description\" content=\"Introduction Google Tag Manager (GTM) is a free tool that allows you to easily add or remove JavaScript tags to your web application without requiring any code changes. Users of GTM can install the Refiner client needed to launch surveys with a few clicks only. Install Refiner GTM tag To install the JavaScript SDK with [...]Read More...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"Refiner Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-08T16:22:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-1024x508.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/\",\"url\":\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/\",\"name\":\"Install with Google Tag Manager\",\"isPartOf\":{\"@id\":\"https:\/\/refiner.io\/docs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-1024x508.png\",\"datePublished\":\"2020-04-17T09:06:45+00:00\",\"dateModified\":\"2026-04-08T16:22:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#primaryimage\",\"url\":\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35.png\",\"contentUrl\":\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35.png\",\"width\":2850,\"height\":1414},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/refiner.io\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install with Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/refiner.io\/docs\/#website\",\"url\":\"https:\/\/refiner.io\/docs\/\",\"name\":\"Refiner Documentation\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/refiner.io\/docs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/refiner.io\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/refiner.io\/docs\/#organization\",\"name\":\"Refiner Documentation\",\"url\":\"https:\/\/refiner.io\/docs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/refiner.io\/docs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/cropped-Group-8.png\",\"contentUrl\":\"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/cropped-Group-8.png\",\"width\":400,\"height\":61,\"caption\":\"Refiner Documentation\"},\"image\":{\"@id\":\"https:\/\/refiner.io\/docs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install with Google Tag Manager","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:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"Install with Google Tag Manager","og_description":"Introduction Google Tag Manager (GTM) is a free tool that allows you to easily add or remove JavaScript tags to your web application without requiring any code changes. Users of GTM can install the Refiner client needed to launch surveys with a few clicks only. Install Refiner GTM tag To install the JavaScript SDK with [...]Read More...","og_url":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/","og_site_name":"Refiner Documentation","article_modified_time":"2026-04-08T16:22:29+00:00","og_image":[{"url":"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-1024x508.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/","url":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/","name":"Install with Google Tag Manager","isPartOf":{"@id":"https:\/\/refiner.io\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#primaryimage"},"image":{"@id":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#primaryimage"},"thumbnailUrl":"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35-1024x508.png","datePublished":"2020-04-17T09:06:45+00:00","dateModified":"2026-04-08T16:22:29+00:00","breadcrumb":{"@id":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#primaryimage","url":"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35.png","contentUrl":"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2021\/11\/Screenshot-2021-11-30-at-15.27.35.png","width":2850,"height":1414},{"@type":"BreadcrumbList","@id":"https:\/\/refiner.io\/docs\/kb\/install-client\/google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/refiner.io\/docs\/"},{"@type":"ListItem","position":2,"name":"Install with Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/refiner.io\/docs\/#website","url":"https:\/\/refiner.io\/docs\/","name":"Refiner Documentation","description":"","publisher":{"@id":"https:\/\/refiner.io\/docs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/refiner.io\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/refiner.io\/docs\/#organization","name":"Refiner Documentation","url":"https:\/\/refiner.io\/docs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/refiner.io\/docs\/#\/schema\/logo\/image\/","url":"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/cropped-Group-8.png","contentUrl":"https:\/\/refiner.io\/docs\/wp-content\/uploads\/2022\/11\/cropped-Group-8.png","width":400,"height":61,"caption":"Refiner Documentation"},"image":{"@id":"https:\/\/refiner.io\/docs\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/knowledgebase\/19948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/comments?post=19948"}],"version-history":[{"count":109,"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/knowledgebase\/19948\/revisions"}],"predecessor-version":[{"id":28409,"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/knowledgebase\/19948\/revisions\/28409"}],"wp:attachment":[{"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/media?parent=19948"}],"wp:term":[{"taxonomy":"knowledgebase_tag","embeddable":true,"href":"https:\/\/refiner.io\/docs\/wp-json\/wp\/v2\/knowledgebase_tag?post=19948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}