[Scummvm-git-logs] scummvm-web master -> 3c9a904a832805fac52dcba6d429662446120b18
lotharsm
serra at scummvm.org
Fri Dec 7 16:57:08 CET 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
3c9a904a83 WEB: Update Matamo tracking code to include subdomains for download tracking
Commit: 3c9a904a832805fac52dcba6d429662446120b18
https://github.com/scummvm/scummvm-web/commit/3c9a904a832805fac52dcba6d429662446120b18
Author: Lothar Serra Mari (serra at scummvm.org)
Date: 2018-12-07T16:56:50+01:00
Commit Message:
WEB: Update Matamo tracking code to include subdomains for download tracking
Changed paths:
templates/pages/index.tpl
diff --git a/templates/pages/index.tpl b/templates/pages/index.tpl
index 5fbbd8f..a3e5b77 100644
--- a/templates/pages/index.tpl
+++ b/templates/pages/index.tpl
@@ -19,18 +19,20 @@
{if $smarty.cookies.cookie_consent == "true"}
<!-- Matomo -->
<script type="text/javascript">
- var _paq = _paq || [];
- /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
- (function() {
- var u="//analytics.scummvm.org/";
- _paq.push(['setTrackerUrl', u+'piwik.php']);
- _paq.push(['setSiteId', '1']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
- })();
+ var _paq = _paq || [];
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ _paq.push(["setCookieDomain", "*.scummvm.org"]);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="https://analytics.scummvm.org/";
+ _paq.push(['setTrackerUrl', u+'piwik.php']);
+ _paq.push(['setSiteId', '1']);
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
+ })();
</script>
+ <noscript><p><img src="https://analytics.scummvm.org/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
{/if}
</head>
More information about the Scummvm-git-logs
mailing list