@dbp-toolkit/matomo
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@dbp-toolkit/matomo", | ||
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/matomo", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "src/index.js", | ||
@@ -17,11 +17,11 @@ "license": "LGPL-2.1-or-later", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^16.0.0", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^10.0.0", | ||
"@rollup/plugin-url": "^5.0.1", | ||
"@rollup/plugin-node-resolve": "^11.0.0", | ||
"@rollup/plugin-url": "^6.0.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^7.3.1", | ||
"eslint-plugin-jsdoc": "^30.6.4", | ||
"eslint-plugin-jsdoc": "^31.0.0", | ||
"i18next-scanner": "^3.0.0", | ||
"karma": "^5.1.0", | ||
"karma": "^6.0.0", | ||
"karma-chrome-launcher": "^3.0.0", | ||
@@ -58,3 +58,3 @@ "karma-firefox-launcher": "^2.1.0", | ||
}, | ||
"gitHead": "91f47e1c02f864028f9537c84781106645cee797" | ||
"gitHead": "fefb27aee7da353d170fc789d7779cfb5ac6b9c7" | ||
} |
import DBPLitElement from '@dbp-toolkit/common/dbp-lit-element'; | ||
import {EventBus} from '@dbp-toolkit/common'; | ||
import buildInfo from 'consts:buildinfo'; | ||
@@ -18,2 +17,3 @@ function pushEvent(event) { | ||
this.lastEvent = []; | ||
this.gitInfo = ''; | ||
} | ||
@@ -26,2 +26,3 @@ | ||
siteId: { type: Number, attribute: 'site-id' }, | ||
gitInfo: { type: Number, attribute: 'git-info' }, | ||
}; | ||
@@ -60,3 +61,3 @@ } | ||
pushEvent(['setCustomVariable', 1, "GitCommit", buildInfo.info, "visit"]); | ||
pushEvent(['setCustomVariable', 1, "GitCommit", this.gitInfo, "visit"]); | ||
pushEvent(['enableHeartBeatTimer']); | ||
@@ -63,0 +64,0 @@ pushEvent(['disableCookies']); |
45416
339