How to push custom dimensions & metrics

Here you can find some Javascript variables that you can use to work with your custom dimensions and metrics.

To push custom dimensions and metrics, StriveCast provides easy to use JavaScript variables, which can be filled with values of your choice and stored on our backend. Notice that custom metrics and dimensions are not supported when using Microsoft Stream or any enterprise video platform.

Analytics

The variable “striveCastMediaTracker.eventValues” is available on a global scope. You can define a “.custom” property with the following fields. You do not have to set all of those fields.

<script>
  striveCastMediaTracker.eventValues.custom = {
      "dimension1": "value1",
      "dimension2": "value2",
      "dimension3": "value3",
      "dimension4": "value4",
      "metric1": 1,
      "metric2": 2,
      "metric3": 3,
      "metric4": 4
  };
</script>

Peer-2-Peer

The variable “striveCastP2PDNProxy.eventValues” is available on a global scope.

You can define a “.custom” property with the following fields. You do not have to set all of those fields.

<script>
striveCastP2PDNProxy.eventValues.custom = {
      "dimension1": "value1",
      "dimension2": "value2",
      "dimension3": "value3",
      "dimension4": "value4",
      "metric1": 1,
      "metric2": 2,
      "metric3": 3,
      "metric4": 4
  };
</script>