|
@@ -13,9 +13,6 @@ html(
|
|
|
head
|
|
head
|
|
|
include ./_metadata.pug
|
|
include ./_metadata.pug
|
|
|
|
|
|
|
|
- if (typeof(gaExperiments) != "undefined")
|
|
|
|
|
- |!{gaExperiments}
|
|
|
|
|
-
|
|
|
|
|
//- Stylesheet
|
|
//- Stylesheet
|
|
|
link(rel='stylesheet', href=buildCssPath(getCssThemeModifier(userSettings, brandVariation)), id="main-stylesheet")
|
|
link(rel='stylesheet', href=buildCssPath(getCssThemeModifier(userSettings, brandVariation)), id="main-stylesheet")
|
|
|
block css
|
|
block css
|
|
@@ -53,20 +50,6 @@ html(
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
} catch (e) {}
|
|
} catch (e) {}
|
|
|
- if gaOptimize === true && typeof(gaOptimizeId) != "undefined"
|
|
|
|
|
- //- Anti-flicker snippet
|
|
|
|
|
- style(type='text/css') .async-hide { opacity: 0 !important}
|
|
|
|
|
- script(type="text/javascript", nonce=scriptNonce).
|
|
|
|
|
- if (!ga.isBlocked) {
|
|
|
|
|
- ga('require', '#{gaOptimizeId}');
|
|
|
|
|
- ga('send', 'event', 'pageview', document.title.substring(0, 499), window.location.href.substring(0, 499));
|
|
|
|
|
- (function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
|
|
|
|
|
- h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
|
|
|
|
|
- (a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
|
|
|
|
|
- })(window,document.documentElement,'async-hide','dataLayer',4000,
|
|
|
|
|
- {'#{gaOptimizeId}':true});
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
else
|
|
else
|
|
|
script(type="text/javascript", nonce=scriptNonce).
|
|
script(type="text/javascript", nonce=scriptNonce).
|
|
|
window.ga = function() { console.log("would send to GA", arguments) };
|
|
window.ga = function() { console.log("would send to GA", arguments) };
|