YourGPT Helpdesk

Find answers to your questions

How to Install YourGPT with Google Tag Manager

Learn how to easily add the YourGPT widget to your website using Google Tag Manager.

This guide walks you through setting up a Google Tag Manager container and deploying the YourGPT widget on your website. By using Google Tag Manager, you can install and manage the YourGPT tracking script without modifying your site’s source code directly.

The process involves two main stages. First, you will create a Google Tag Manager account and container for your website. Second, you will configure a new Custom HTML tag inside your container and add the YourGPT chat widget script to it.

Follow the steps below to complete the setup and publish the changes to your site.


How to create a Google Tag Manager container

You’ll need a GTM account and container to add tags that load the YourGPT widget on your website.

  1. Sign in to your Google account. Go to the Google Tag Manager home and click the Create Account button on the right.

  2. Enter the account and container name. Choose the target platform as Web and click on the Continue button.

  3. Read through the GTM Terms of Service, then click Yes to accept them.

  4. You’ll get a container with a code snippet. Copy the code and paste it into every site page in the recommended places. Click Ok to close the code snippet box.

Install Script Tag Manager

How to add the YourGPT tag to your website

Once you’re logged into your account with the container, it’s time to add a new tag with the YourGPT tracking code inside it. To do so, follow these steps.

  1. Open your YourGPT dashboard and navigate to the Integrations section.

  2. Locate the Chat Widget script and copy the code to your clipboard.

Copy the Script Code
  1. In the Google Tag Manager Home, click on the New Tag tile.

Create new Tags
  1. Click on the Tag Configuration tile and select Custom HTML from the tags list.

Select Custom HTML Tags
  1. Paste the YourGPT tracking code into the HTML field.

  1. Click on the Triggering tile and select All pages from the tags list. After you add the trigger, hit the Save button on the right.

    Add the HTML tags
  2. Name your tag (e.g., "YourGPT Widget") and click Save.

  3. Once you’re back in GTM’s home, click the Submit button to apply the changes.

Submit your changes

Note: Make sure that you have a general trigger set up on your workspace (e.g., on page view). Otherwise, none of the tags will be triggered.

Was this article helpful?
©2026
Powered by YourGPT