1. Home
  2. Analytics
  3. Clientside events and additional javascript files
  4. Bridging library for Google Analytics

Bridging library for classic Google Analytics events

We have included a bridging javascript file that will "catch" all classic Google Analytics event calls and send them to the uMarketingSuite as well. The purpose of the file is that if you have a running website with Google Analytics events already defined you do not have to reproduce this in any way.

To include the file you should add the following code just before the closing </body>-tag of your HTML:

<script src="~/Assets/uMarketingSuite/Scripts/uMarketingSuite.analytics.ga-bridge.js"></script>

Each call to Google Analytics will be sent to uMarketingSuite as well. It will only work for all events triggered in the 'classic' way:

ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);

See the documentation of Google Analytics for more information: https://developers.google.com/analytics/devguides/collection/analyticsjs/events