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

Setup Matomo only with endpoint url and site id

See issue #29
parent ba18ae0f
No related branches found
No related tags found
1 merge request!2Matomo web component
Pipeline #12999 failed
......@@ -41,6 +41,14 @@ export class MatomoElement extends DBPLitElement {
setupMatomo(loggedIn) {
if (loggedIn && ! this.isRunning) {
if (this.siteId === -1) {
console.log('site id missing, skipping matomo...');
return;
}
if (this.endpoint === '') {
console.log('endpoint missing, skipping matomo...');
return;
}
console.log('add matomo...');
window._paq = window._paq || [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment