From a1f77e0f4928735c5481459f97ad1372d581c33a Mon Sep 17 00:00:00 2001 From: Joolee <570302+Joolee@users.noreply.github.com> Date: Sat, 26 Feb 2022 16:47:13 +0100 Subject: [PATCH] Add description of minimum needed telemetryDimensions --- lib/Telemetry.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/Telemetry.js b/lib/Telemetry.js index 7d5d022..46e2bf0 100644 --- a/lib/Telemetry.js +++ b/lib/Telemetry.js @@ -5,6 +5,17 @@ const TelemetryDimensions = require('/assets/json/telemetryDimensions.json'); const http = require('http.min'); const util = require('util'); +/* + /assets/json/telemetryDimensions.json must contain at least: + ["-" + "App version", + "Homey firmware version", + "Debug mode" + ] + + These value locations (in this case, 1, 2 and 3) must also be defined as Matomo Custom Dimensions (type 'Visit') with corresponding ID's. +*/ + module.exports = class Telemetry extends Homey.SimpleClass { constructor({ host,