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 analyzing application usage.
Install
To install the Screeb Javascript SDK with Google Tag Manager, please follow these steps:
Navigate to the “Tags” section in your Google Tag Manager container
Click on “Add New Tag”
Name your new tag “Screeb” and click “Choose a tag …”
Navigate to the “Community Template Gallery” by clicking on the banner above the tag list
Scroll to “Screeb” and click “Add to Workspace”
Fill in the “Website ID”. You can find your website id on the Installation page inside your Screeb account.
Set the trigger for the Screeb snippet to “Initialization - All Pages”
Publish your updated Workspace
That’s all folk! The Screeb tag has been successfully installed in anonymous mode.
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.
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.
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.
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.
This tag should be bound on a GTM Trigger, such as "Custom event", button click, etc.
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".
The debug will be printed in the developer console.