Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2014-09-08 03:41:52 +0400
committerMatthieu Aubry <matt@piwik.org>2014-09-08 03:41:52 +0400
commit0aecd47ca315aa556d967606aa7de37de577540e (patch)
tree927d3a3952051b025792c9fd8a54001f3dac695d /misc/others
parent070f58ea124046e15d773f00aa4ca307a9dfe36d (diff)
parente7760f2405c70987a7c8f609bce40556090d0548 (diff)
Merge pull request #344 from Irrational86/master
Changed JavaScript Tracking Code generation to use "//"
Diffstat (limited to 'misc/others')
-rw-r--r--misc/others/tracker_simpleImageTracker.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/others/tracker_simpleImageTracker.php b/misc/others/tracker_simpleImageTracker.php
index 30f6c2b211..6bcaf21fd1 100644
--- a/misc/others/tracker_simpleImageTracker.php
+++ b/misc/others/tracker_simpleImageTracker.php
@@ -12,11 +12,11 @@ $trackingURL = Piwik_getUrlTrackPageView($idSite = 16, $customTitle = 'This titl
<script type="text/javascript">
var _paq = _paq || [];
(function() {
- var u=(("https:" == document.location.protocol) ? "https" : "http") + "://localhost/piwik-master/";
+ var u="//localhost/piwik-master/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "16"]);
- var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
- g.defer=true; g.async=true; g.src=u+"js/piwik.js"; s.parentNode.insertBefore(g,s);
+ 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>
<!-- End Piwik Code -->