Skip to main content

Getting KnoCommerce Script into Google Tag Manager

Use Google Tag Manager to embed KnoCommerce into your site

Updated over 2 weeks ago

Overview

This article outlines how to install the KnoCommerce Universal Embed script using Google Tag Manager. By following the steps below, you’ll be able to add the necessary script to your site and configure it to display surveys on the desired page.


Set Up Guide

These steps will require use of your KnoCommerce Universal Embed script. To learn more about our Universal Embed script, see this article.

Step 1: Create a New Tag inside Google Tag Manager

Step 2: Select Tag Configuration

This will open a sidebar, now click on Custom HTML Tag:

Step 3: Paste KnoCommerce script

Go ahead and drop the KnoCommerce Script into the HTML editor.

Make sure to update kno_id to your api key and the id in the second script tag to your Account Id. Learn where to find those via our Universal Embed article.

The selector option in the KnoCommerce script is the HTML element that we embed our script too. Make sure that HTML element is on the page where you want to display our survey.

All set!

Once our script is added to Google Tag Manager, and the HTML element added to your page. You will start to see surveys being displayed!

Did this answer your question?