All Collections
Getting Started with Screeb
How to install Screeb with Google Tag Manager (GTM)?
How to install Screeb with Google Tag Manager (GTM)?
Samuel Berthe avatar
Written by Samuel Berthe
Updated over a week ago

Google Tag Manager is a free tool that allows you to manage and deploy marketing tags (snippets of code or tracking pixels) on your website (or mobile app) without having to modify the code. It simplifies the process of adding these tags to your website and allows for easier tracking and management of your digital marketing efforts.

Screeb users can install the Screeb javascript tag in a few clicks and start collecting insight and analyze application usage.

Install

To install the Screeb Javascript SDK with Google Tag Manager, please follow these steps:

  1. Navigate to the “Tags” section in your Google Tag Manager container

  2. Click on “Add New Tag”

  3. Name your new tag “Screeb” and click “Choose a tag …”

  4. Navigate to the “Community Tags” by clicking on the banner above the tag list

  5. Scroll to “Screeb” and click “Add to Workspace”

  6. Fill in the “Website ID”. You can find your website id on the Installation page inside your Screeb account.

  7. Set the trigger for the Screeb snippet to “All Pages – Page View”

  8. Publish your updated Workspace

That’s all folk! The Screeb tag has been successfully installed in anonymous mode.

[screenshot coming soon]

Identify your users

Create variables for your user data

As a first step, make sure that all user data fields that you want to send to Screeb are available as variables.

Go to “Variables” in your GTM account and check if you already have “User-Defined Variables“. If you don’t, go ahead and create one for each data field you want to sync to Screeb.

At a minimum, you need to create a variable for the user identifier (e.g. user_id). For more accuracy in user targeting and analysis, more user properties can be provided.

[screenshot coming soon]

Inject user data into Screeb tag

Update your GTM Tag and add the User-Defined variables. The user identifier variable you previously created will be used to associate Screeb session and survey responses to the current user. Additional properties can be added.

[screenshot coming soon]

Inject user data during navigation

When the User-Defined variables are not available on page load, it can be added later. Add a new GTM Tag, using the Screeb template. Then select the "Set identity properties" action.

[screenshot coming soon]

Track user actions and events

Add a new GTM Tag, using the Screeb template. Then select the "Track event" action. You will be asked to name the event and optionally provide contextual properties.

[screenshot coming soon]

This tag should be bound on a GTM Trigger, such as "Custom event", button click, etc.

[screenshot coming soon]


Troubleshooting

At any time, you can debug the Screeb Tag via GTM.

First, create a new GTM tag using one of the following actions: "Print debug to console" or "Print targeting engine debug to console". Then add a GTM trigger of type "Page View", for URLs containing "?screeb=debug".

[screenshot coming soon]


The debug will be printed in the developer console.

[screenshot coming soon]

Did this answer your question?