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

Support for Matomo #2795

Closed
1 task done
stbc opened this issue Feb 17, 2023 · 2 comments
Closed
1 task done

Support for Matomo #2795

stbc opened this issue Feb 17, 2023 · 2 comments
Labels
area:status-page Everything related to the status page feature-request Request for new features to be added

Comments

@stbc
Copy link

stbc commented Feb 17, 2023

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

Other

🔖 Feature description

Would be great if UK would support inserting Matomo tracking code for the status page, similar to #2567

✔️ Solution

<!-- Matomo -->
<script type="text/javascript">
  var _paq = window._paq = window._paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//{$MATOMO_URL}/";
    _paq.push(['setTrackerUrl', u+'matomo.php']);
    _paq.push(['setSiteId', {$IDSITE}]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Matomo Code -->

This is the particular piece of code, one must replace MATOMO_URL and IDSITE.

Two fields for URL and ID to enter the values would be sufficient. Code is inserted into the body or head. More details https://developer.matomo.org/guides/tracking-javascript-guide

❓ Alternatives

No response

📝 Additional Context

No response

@stbc stbc added the feature-request Request for new features to be added label Feb 17, 2023
@Japhys
Copy link

Japhys commented Jun 4, 2023

I second this. We have had a policy to only use Matomo Tag Manager on all of our websites for years

@CommanderStorm
Copy link
Collaborator

@stbc
We are consolidating duplicate issues a bit to make issue management easier.
I think, we should track this issue in #2818 as there is no functional difference that I can see ^^
=> I am going to close this as a duplicate (despite being the older issue)

@CommanderStorm CommanderStorm closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2023
@CommanderStorm CommanderStorm added the area:status-page Everything related to the status page label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:status-page Everything related to the status page feature-request Request for new features to be added
Projects
None yet
Development

No branches or pull requests

3 participants