C3 AI Documentation Home

Enable Google Tag Manager to Monitor Adoption

The C3 AI UI Framework offers Google Tag Manager as a way to monitor your application's usage. This is disabled by default. The purpose of this document is to explain how to enable Google Tag Manager as part of your application.

How to enable Google Tag Manager

  1. In your {package}.c3pkg.json, add googleTagManager as a dependency package. For example,
JSON
//examplePackage.c3pkg.json
{
  "name": "examplePackage",
  "dependencies": {
    // Make sure you use the corresponding version of your analytics package
    "googleTagManger": "1.0.0"
  }
}
  1. Set the config through UiSdlConfig.app.googleTagManager.tagId. This makes sure it points to your instance of Google Tag Manager.

You're reading the C3 AI UI Developer Guide. The full Table of Contents is here.

Was this page helpful?