Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently Purple DS apps support several different tracking services.

...

Warning

Not all tracking services support all event types. See the linked pages below for detailed information about the supported event types of each tracking service.


Configuration

There are two sets of configurations:

...

The JSON is structured as follows:

Code Block
languagejsjson
titletracking_config.json
linenumberstrue
collapsetrue
{
  "default": {
    "eventsEnabledByDefault": false,
    "viewsEnabledByDefault": false,
    "purchasesEnabledByDefault": false,
    "attributesEnabledByDefault": false,
    "events": {
      "<internal_event_key>": {
        "enabled": false,
        "templates": {
          "<template_name>": "<Text to send to tracking service>"
        },
        "parameters": {
          "paramKey1": "paramValue1"
        }
      }
    },
    "views": {
    },
    "purchases": {
    },
    "attributes": {
    }
  },
  "<tracking_service_name>": {
    "eventsEnabledByDefault": false,
    "viewsEnabledByDefault": false,
    "purchasesEnabledByDefault": false,
    "attributesEnabledByDefault": false,
    "events": {
      "<internal_event_key>": {
        "enabled": false,
        "templates": {
          "<template_name>": "<Text to send to tracking service>"
        }
      }
    },
    "views": {
    },
    "purchases": {
    },
    "attributes": {
    }
  },
}

...