Skip to main content

How to track your visitor data using cookies?

Tracking traffic analytics for your Unibuddy platform with our cookie bot

Written by Jack Johnson
Updated over 4 months ago

To ensure your visitor data is tracked in the Analytics tab of your University Dashboard, your IT or Web Services team can follow the steps below. This will also enable your prospective students to have the best possible, 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 can then be passed to Unibuddy.

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

We then recommend updating your 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 University 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 University Dashboard: https://university.unibuddy.co/

  2. Click "Integrations" in the left-hand navigation menu.

  3. Select "Main Platform".

  4. Copy the code onto your relevant Chat Platform page, where your Ambassadors are displayed to prospects.

  5. Select the 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, showing you what this will look like 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="https://staging.unibuddy.co/embed/your-university/colour/1a428a" title="Unibuddy" width="100%">

</iframe>

<script src="https://cdn.unibuddy.co/unibuddy-iframe.js" type="text/javascript">

</script>

When user consents to necessary and statistical cookies:

<iframe data-ub-cookie-consent="necessary statistics" id="unibuddy-iframe" scrolling="no" src="https://staging.unibuddy.co/embed/your-university/colour/1a428a" title="Unibuddy" width="100%">

</iframe>

<script src="https://cdn.unibuddy.co/unibuddy-iframe.js" type="text/javascript">

</script>

Traffic Drivers

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

<script>

window.unibuddySettings = {

uni_id: 'your-university',

colour: '1a428a',

title: 'Unibuddy Popcard',

align: 'right',

ubLang: 'en-GB',

ubCookieConsent: 'necessary statistics',

};

</script>

<script src="https://cdn-staging.unibuddy.co/unibuddy-popcard.js" type="text/javascript"></script>

Did this answer your question?