Skip to content
Snippets Groups Projects
Commit bac4b031 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon:
Browse files

Read git commit from `buildInfo`

See issue #29 (comment in MR !2)
parent a68a09a3
No related branches found
No related tags found
1 merge request!2Matomo web component
Pipeline #13078 passed
......@@ -64,6 +64,7 @@ export default (async () => {
}),
consts({
environment: build,
buildInfo: getBuildInfo(),
}),
emitEJS({
src: 'assets',
......
......@@ -2,6 +2,7 @@ import {i18n} from './i18n.js';
import {LitElement} from "lit-element";
import DBPLitElement from 'dbp-common/dbp-lit-element';
import {EventBus} from 'dbp-common';
import buildInfo from 'consts:buildInfo';
export class MatomoElement extends DBPLitElement {
......@@ -53,7 +54,7 @@ export class MatomoElement extends DBPLitElement {
console.log('add matomo...');
window._paq = window._paq || [];
_paq.push(['setCustomVariable', 1, "GitCommit", "<%= buildInfo.info %>", "visit"]);
_paq.push(['setCustomVariable', 1, "GitCommit", buildInfo.info, "visit"]);
_paq.push(['enableHeartBeatTimer']);
_paq.push(['disableCookies']);
_paq.push(['trackPageView']);
......
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