Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Matomo tracking #28

Open
nana-boateng opened this issue Oct 17, 2023 · 2 comments
Open

Add Matomo tracking #28

nana-boateng opened this issue Oct 17, 2023 · 2 comments

Comments

@nana-boateng
Copy link
Collaborator

nana-boateng commented Oct 17, 2023

From Sabina:

<!-- Matomo Tag Manager -->


<script>
  var _mtm = window._mtm = window._mtm || [];
  _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
  (function() {
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src='https://analytics.scholarsportal.info/js/container_MOTMjz1l_dev_860b195d069efc12f7a26700.js'; s.parentNode.insertBefore(g,s);
  })();
</script>

<!-- End Matomo Tag Manager -->
@spagotto
Copy link

spagotto commented Nov 8, 2023

Above is the code for the test environment. The code for the prod environment has a different container ID:

<!-- Matomo Tag Manager -->
<script>
  var _mtm = window._mtm = window._mtm || [];
  _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
  (function() {
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.async=true; g.src='https://analytics.scholarsportal.info/js/container_JBxcbS7D.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Tag Manager -->

@spagotto
Copy link

spagotto commented Jun 4, 2024

Just want to make sure this part doesn't get forgotten!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants