Set up business units

How to track user behaviour across different business units.

As your company may use different business units to differentiate activities across countries, divisions or other business entities, CrossEngage lets you add options to the tracking SDK to easily model data sent to your account. This will allow you to also track a businessUnit for each call made.

To set this up, copy the snippet below and paste it together with the web tracking snippet you have previously set up, changing the businessUnit value placeholder to the one your would like to use for tracking purposes, e.g. DE.

Business unit setup
window.additionalOptions = {
businessUnit: 'Business unit placeholder'
};
Using a tag manager
Without a tag manager
Using a tag manager
  1. Copy the snippet.

  2. Paste it in the previously set up global tag between the <script></script> HTML tags after the global tracking code snippet.

  3. Set up a variable for businessUnit that is updated dynamically to reflect the business unit for which tracking events are sent.

  4. Use this variable in the function options payload to update its value dynamically.

Without a tag manager
  1. Copy the snippet.

  2. Paste it in the <head> between the <script></script> HTML tags after the global tracking code snippet.

  3. Change the businessUnit dynamically to reflect the business unit for which tracking events are sent.