Installing with Google Tag Manager
Step-by-step instructions to set up Userlove using GTM
Last updated
Step-by-step instructions to set up Userlove using GTM
Last updated
Log in to your Google Tag Manager account and navigate to the desired container.
Click on the "Tags" tab and then click the "New" button.
Select "Custom HTML" as the tag type.
Give your tag a descriptive name. ie: Userlove
In the "HTML" field, paste the Userlove SDK Snippet code for your custom tag.
Under "Triggering", select All Pages
Click "Save" to create your custom HTML tag.
Publish your changes to make the tag live on your website.
Note: You can modify triggering as per your requirement, but please note that Userlove can only show experiences wherever the code snippet is loaded.
How to Identify and send user properties to Userlove? To show the right content to the right users at the right time, you must identify users with the "identify" event and send their data to Userlove.
It's requires to pass a "id" (YOUR_USER_ID), Name and Email to userlove() function as per the instructions below, you can leverage this information for better targeting and personalizing experiences.
In your GTM account, navigate to the "Tags" section and click "New".
Choose "Custom HTML" as the tag type.
Copy and paste Userlove identify event snippet in HTML section
You will need to pass your user id, user name and user email as variables in GTM you can also pass additional information that you want to use for targeting to user for personalised experiences
Set trigger (Please trigger identify event as soon as user logged into your application)
Give your tag a name and click "Save".
We recommend passing as much information as possible about your users. The more data you provide, the better we can target and personalize the onboarding experience for each user.
By tracking events in your application, It's allow you to show Userlove's content based on what actions user have or haven't taken. This can also help you see how your content affects user behavior.
In your GTM account, navigate to the "Tags" section and click "New".
Choose "Custom HTML" as the tag type.
Copy and paste Userlove Event Tracking snippet in HTML section
You can also send additional data to Userlove with your custom event
Give your tag a name and click "Save".
You can use following event tracking code to track any custom event and send data to Userlove platform, you can modify this code as per your requirement