Skip to content

Commit

Permalink
fix: donation page now uses Matomo like the rest of OFF (#10931)
Browse files Browse the repository at this point in the history
  • Loading branch information
teolemon authored Oct 24, 2024
1 parent 09d4a44 commit 7dbbcbc
Showing 1 changed file with 21 additions and 27 deletions.
48 changes: 21 additions & 27 deletions html/donate/en.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,33 +88,27 @@
}
</style>
<script src="https://static.openfoodfacts.org/js/dist/jquery.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(["_setAccount", "UA-31851927-1"]);
_gaq.push(["_setDomainName", "openfoodfacts.org"]);
_gaq.push(["_trackPageview"]);

(function() {
var ga = document.createElement("script");
ga.type = "text/javascript";
ga.async = true;
ga.src =
("https:" == document.location.protocol
? "https://ssl"
: "http://www") + ".google-analytics.com/ga.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(ga, s);
})();

$(function() {

$('iframe').load(function(){
$(".loading").remove();
}).show();

});

</script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.openfoodfacts.org"]);
_paq.push(["setDomains", ["*.openfoodfacts.org"]]);
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.openfoodfacts.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '5']);
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>
<noscript><p><img src="//analytics.openfoodfacts.org/matomo.php?idsite=5&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
</head>
<body>
<div class="wrapper">
Expand Down

0 comments on commit 7dbbcbc

Please sign in to comment.