layout: piwik in a partial

This commit is contained in:
Jörg Thalheim 2013-02-20 16:55:58 +01:00
parent 7ab79c7551
commit a84f1f9ead
2 changed files with 14 additions and 13 deletions

13
source/_piwik.slim Normal file
View File

@ -0,0 +1,13 @@
// Piwik
javascript:
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.higgsboson.tk/" : "http://piwik.higgsboson.tk/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
javascript:
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
noscript
p
img src="https://piwik.higgsboson.tk/piwik.php?idsite=1" style="border:0" alt=""

View File

@ -50,19 +50,7 @@ html.no-js.light lang="en"
== yield
footer
== partial "footer"
// Piwik
javascript:
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.higgsboson.tk/" : "http://piwik.higgsboson.tk/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
javascript:
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
noscript
p
img src="https://piwik.higgsboson.tk/piwik.php?idsite=1" style="border:0" alt=""
== partial "piwik"
/![if lt IE 7 ]
<script defer src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>