Introducing Spotchecks
  • Introduction
  • SpotChecks Essentials
  • Configure Essentials
  • How to use SpotChecks?
    • Web SpotChecks
      • Integrate SpotChecks with Shopify
      • Integrate SpotChecks with Google Tag Manager
      • Integrate SpotChecks with WordPress
    • Mobile SpotChecks
      • IOS
        • Swift UI App
        • UI Kit App
      • Android
      • Flutter
      • React Native
Powered by GitBook
On this page
  1. How to use SpotChecks?
  2. Web SpotChecks

Integrate SpotChecks with Google Tag Manager

PreviousIntegrate SpotChecks with ShopifyNextIntegrate SpotChecks with WordPress

Last updated 9 months ago

SpotChecks provides the flexibility to integrate it with Google Tag Manager. It can be seamlessly integrated with Google Tag Manager without making various code changes.

Follow the below steps to configure SpotChecks in Google Tag Manager.

  1. Navigate to the Google Tag Manager container which is installed on your website.

  2. Click on the “New” button to create a new tag

  3. Name your new tag “spotcheck”

  4. Click on Tag Configuration and choose Custom HTML.

  1. Copy and Paste your SpotChecks JavaScript snippet

  1. Check the box next to the "Support document.write"

  2. Set the trigger for the snippet to “Initialization - All Pages”

  3. Publish your changes to the workspace

Identify the Visitors

The key functionality of SpotChecks is to identify the visitors and set survey triggers based on the user information. You can utilize this functionality by passing the necessary information to the following snippet through which you can set conditions.

In the userDetails, you are required to set the placeholders as you can find in the below image. The placeholders should match the variables created in the Google Tag Manager.

If the app holds only static data and there is no requirement to keep track of the users, you can pass the following snippet in a new tag.

<script> window.SpotCheckLauncher('popup', { userDetails: {}, variables: {}, properties:{} });</script>