Skip to content

Commit

Permalink
TASK: Enforce https for trackingscript
Browse files Browse the repository at this point in the history
The documentation already specified that the
package only communicates with https tracking
hosts which was already valid for the backend
but not in the frontend.
  • Loading branch information
Sebobo committed Nov 17, 2017
1 parent cf3cd83 commit e93269b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/Private/Templates/Prototypes/TrackingCode.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//{settings.host}/";
var u="{settings.protocol}://{settings.host}/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', {settings.idSite}]);
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="//{settings.host}/piwik.php?idsite={settings.idSite}" style="border:0;" alt="" /></p></noscript>
<noscript><p><img src="{settings.protocol}://{settings.host}/piwik.php?idsite={settings.idSite}" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->

0 comments on commit e93269b

Please sign in to comment.