Commit ea41fa6b authored by fred's avatar fred
Browse files

move call to piwik after everything else has been done

parent 586dba98
......@@ -45,15 +45,6 @@ $(function() {
var newTitle = html?html.match(/<title>(.*?)<\/title>/):'';
if(newTitle){document.title = newTitle[1].trim().decodeHTML();}
if (typeof (Piwik) == 'object') {
piwikTracker = Piwik.getAsyncTracker();
if (typeof (piwikTracker.trackPageView) == 'function') {
piwikTracker.setDocumentTitle(document.title);
piwikTracker.setCustomUrl(window.location.href);
piwikTracker.trackPageView();
}
}
/*
Quite UGLY but needed for styling the whole body with ID
Feel free to correct and find a better way
......@@ -69,6 +60,16 @@ $(function() {
$("#Changing").css({'min-height':$(window).height()});
$.scrollTo('#Changing',1000,{offset:-$('#metaNav').height()+2});
init();
if (typeof (Piwik) == 'object') {
piwikTracker = Piwik.getAsyncTracker();
if (typeof (piwikTracker.trackPageView) == 'function') {
piwikTracker.setDocumentTitle(document.title);
piwikTracker.setCustomUrl(window.location.href);
piwikTracker.trackPageView();
}
}
};
function afterLoadError(xhr, text, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment