Popupsmart Logo
IntroductionInstallation

How to Set up Popupsmart with Google Tag Manager

Follow our guide to seamlessly embed Popupsmart code via Google Tag Manager on your website.

There are three different ways to set up Popupsmart on your website by adding a provided single line of JavaScript code:

  1. Embed the code on your custom website
  2. Setup with popular CMS services
  3. Setup with Google Tag Manager

One-Time Setup

Adding the code to your website is a one-time requirement, so you won't need to repeat this process again.

How to Set Up with Google Tag Manager

Copy Embed Code

Log in to your Popupsmart account and go to your dashboard. Click on "Embed Code", which is located on the left sidebar. Then, copy your unique Popupsmart embed code from the GTM tab.

popupsmart embed code

Add New Tag

Go to your Google Tag Manager and click "Add a new tag."

add a new tag

Configure Tag

Give your tag a name and click "Tag Configuration."

tag configuration

Select Custom HTML

Select "Custom HTML" to enter your embed code.

custom html

Paste Embed Code

Paste the Popupsmart embed code inside the HTML field.

support document write

Set Trigger

Click on Triggering and select All Pages to allow Popupsmart to work on all your web pages. This way, you can add a popup to any of them without further configurations.

triggering

If you select All Pages, our system counts the pageviews of the whole website regardless of which page you added the popup to.

Submit Tag

Once you have configured the triggers, click the Submit button.

submit button on tag manager

Publish Changes

Publish the changes from the following screen.

publish button on tag manager

Pageview Note

A pageview is the amount of total page view requests from your added websites.

Important Limitation

If you make these configurations instead of All Pages, you won't be able to show popups on the pages that weren't specified in GTM. In that case, you must manually add those pages among the triggers.

Ad Blocker Notice

If you have an ad blocker on your browser, GTM verification is not going to work. Disable the ad blocker first to verify your website.

Still have some questions about embedding Popupsmart code to Google Tag Manager?

Feel free to contact us via email or live chat!

How is this guide?