All Collections
I am an Administrator
Managing your Account
How to track your visitor data using cookies?
How to track your visitor data using cookies?

Tracking analytics in Unibuddy with our cookie bot

Jack Johnson avatar
Written by Jack Johnson
Updated over a week ago

To ensure your visitor data is tracked in your Analytics section of the Admin Dashboard you can work with your IT and webs services team to implement the below to enable your prospective students to have the best possible and uninterrupted experience when they visit your site.

This will require a change to both your Main Chat Platform and Traffic Driver snippet codes for Unibuddy.


1. Capture cookie consent from your users and pass it to Unibuddy

(i) Capture consent, update code snippets

When a user visits your site, they should be asked which Cookies they consent to being stored on their computer (including Cookies which might be dropped by third parties such as Unibuddy). Any such consent could then be passed to Unibuddy.

At this point, please contact our Customer Support Team who will add your University to a list in the application code (and then deploy it), after which point the feature will take effect.

We then recommend updating the Unibuddy iframes with the latest code snippets as described in Point 3 in this guide. In order to continue using Unibuddy's data and analytics to learn about your students, we’d recommend that you pass on that consent, by taking the steps outlined in this document.

This will ensure that students who do consent to marketing or/and analytics cookies can then be tracked inside of the Unibuddy chat platform, contributing to the insights that you’re able to access from your dashboard.

(ii) Pass consent to Unibuddy

Once you’ve added a way of capturing a user's cookie consent to your website (usually a cookie manager or consent banner), you can pass this consent to Unibuddy.

Point 3 in this guide, will provide you with an overview of how to do this, by re-embedding your chat platform.

2. Update your policies and notices to your students

(i) Update your privacy policy and respective notices to your students

When a user visits your Unibuddy chat platform, third party cookies (from Unibuddy) can be stored on their browser. Your Privacy Policy and any other relevant notices should reflect this.

(ii) Explain to your students that their consent will be passed on to Unibuddy

Once you’ve implemented the solution outlined in point 3 (up next), you’ll need to make it clear to students that if they give their consent for cookies, that consent will be passed onto a third party company (Unibuddy)

3. Update your Main Chat platform/ Traffic Driver snippet codes

(i) Update code snippet

We have updated the snippet codes for our platforms by adding the data-ub-cookie-consent parameter. Please update the Unibuddy iframes on your website with the new snippet or by adding the data-ub-cookie-consent parameter.

To access these codes please see the steps below:

  1. Login to your admin dashboard:

  2. Click "Integrations" in left-hand side menu.

  3. Select "Main Platform".

  4. Copy the code onto your relevant page where all your ambassadors will show.

  5. Select relevant traffic driver tab e.g. "Popcard".

  6. Update the site with the new code for your traffic driver.

(ii) Passing user consent to Unibuddy

The user can either limit their consent to “necessary” or allow other cookie types such as performance, statistics, analytics, functional and marketing. This preference can be passed on to Unibuddy in a space-delimited format. This allows Unibuddy to adapt its platform to respect the end-user’s consent.

Example Code Snippets

Below are some example snippets of how this will look in your admin dashboard. Highlighted in bold are the additional lines of code we have added.

Main Chat Platform/Widget

When user consents to necessary cookies only:

<iframe data-ub-cookie-consent="necessary" id="unibuddy-iframe" scrolling="no" src="" title="Unibuddy" width="100%">


<script src="" type="text/javascript">


When user consents to necessary and statistical cookies:

<iframe data-ub-cookie-consent="necessary statistics" id="unibuddy-iframe" scrolling="no" src="" title="Unibuddy" width="100%">


<script src="" type="text/javascript">


Traffic Drivers

Example of a traffic driver snippet code with necessary cookies: "Popcard":


window.unibuddySettings = {

uni_id: 'your-university',

colour: '1a428a',

title: 'Unibuddy Popcard',

align: 'right',

ubLang: 'en-GB',

ubCookieConsent: 'necessary statistics',



<script src="" type="text/javascript"></script>

Did this answer your question?