Reverted tracker to old behaviour while still keeping more advanced use case

This commit is contained in:
Bartosz Hernas 2020-09-18 11:33:17 +02:00
parent 348ee22e18
commit 09235ddacf
3 changed files with 22 additions and 17 deletions

View file

@ -33,7 +33,11 @@
otherScript.parentNode.insertBefore(scriptElement, otherScript);
};
umami.load('${document.location.origin}/umami.js', '${values.website_uuid}', false);
umami.load('[HOST]/umami.js', '[UMAMI_UUID]', false);
}
}
})(window);
})(window);
// This snippet is for more advanced use case of Umami. If you want to track custom events,
// and not worry about having blocking script in the header,
// use this snippet (compiled version available in /public/snippet.js).
// Just remember to replace [HOST] and [UMAMI_UUID] when pasting it.