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
$("#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) {