Skip to content

Commit

Permalink
Merge branch 'zlamalp/matomo' into 'main'
Browse files Browse the repository at this point in the history
feat(pwdreset): add analytics to mu template

See merge request perun/perun-idm/perun-wui!277
  • Loading branch information
zlamalp committed May 2, 2024
2 parents 917e999 + e37985d commit 681e94c
Show file tree
Hide file tree
Showing 2 changed files with 251 additions and 0 deletions.
18 changes: 18 additions & 0 deletions perun-wui-pwdreset/src/main/webapp/PerunPwdResetMU.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,24 @@

</script>

<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['enableHeartBeatTimer']);
(function() {
var u="//analytics.ics.muni.cz/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '708']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

<!-- Load GWT GUI -->
<script type="text/javascript" language="javascript" src="./PerunPwdReset/PerunPwdReset.nocache.js"></script>

Expand Down
Loading

0 comments on commit 681e94c

Please sign in to comment.