Skip to content
Snippets Groups Projects
Commit 52c3cbc7 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Merge branch 'fix-matomo-git-info' into 'master'

matomo: make side-id and git-info strings

Closes #52

See merge request !63
parents 6c465787 3282489b
No related branches found
No related tags found
1 merge request!63matomo: make side-id and git-info strings
Pipeline #47304 passed
......@@ -6,7 +6,7 @@ export class MatomoElement extends DBPLitElement {
constructor() {
super();
this.endpoint = '';
this.siteId = -1;
this.siteId = '';
this.isRunning = false;
this.lastEvent = [];
this.gitInfo = '';
......@@ -20,8 +20,8 @@ export class MatomoElement extends DBPLitElement {
return {
...super.properties,
endpoint: { type: String },
siteId: { type: Number, attribute: 'site-id' },
gitInfo: { type: Number, attribute: 'git-info' },
siteId: { type: String, attribute: 'site-id' },
gitInfo: { type: String, attribute: 'git-info' },
auth: { type: Object },
analyticsEvent: { type: Object, attribute: 'analytics-event' },
};
......@@ -70,7 +70,7 @@ export class MatomoElement extends DBPLitElement {
setupMatomo(loggedIn) {
if (loggedIn && ! this.isRunning) {
if (this.siteId === -1) {
if (this.siteId === '') {
console.log('site id missing, skipping matomo...');
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment