Skip to content

Commit 13d7884

Browse files
committed
fix for noscript to take appropriate path
1 parent a79d626 commit 13d7884

File tree

1 file changed

+6
-2
lines changed
  • app/design/frontend/base/default/template/piwikanalytics

1 file changed

+6
-2
lines changed

app/design/frontend/base/default/template/piwikanalytics/piwik.phtml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<?php
1919

2020
if ($siteId) {
21+
22+
/*path for noscript should take unadultered path*/
23+
$bugPath = $installPath;
24+
2125
if (strpos($installPath, "https://") !== false) {
2226
$secureinstallPath = $installPath;
2327
$installPath = str_replace("https://", "http://", $installPath);
@@ -73,8 +77,8 @@
7377
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+'piwik.js';
7478
s.parentNode.insertBefore(g,s); })();
7579
</script>
76-
<noscript><p><img src="<?php echo $installPath ?>piwik.php?idsite=<?php echo $siteId ?>" style="border:0" alt="" /></p></noscript>
80+
<noscript><p><img src="<?php echo $bugPath ?>piwik.php?idsite=<?php echo $siteId ?>" style="border:0" alt="" /></p></noscript>
7781
<!-- END PIWIK TRACKING CODE -->
7882

7983
<?php } ?>
80-
<?php endif; ?>
84+
<?php endif; ?>

0 commit comments

Comments
 (0)