From 2c6a7818907decc742465fef428867d856701745 Mon Sep 17 00:00:00 2001 From: Michael Q Larson Date: Tue, 7 Apr 2015 00:32:01 -0700 Subject: [PATCH] add inspectlet javascript --- views/partials/universal-head.jade | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/views/partials/universal-head.jade b/views/partials/universal-head.jade index 10308e0065..d0c6ec57f3 100644 --- a/views/partials/universal-head.jade +++ b/views/partials/universal-head.jade @@ -14,4 +14,20 @@ script. })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-55446531-1', 'auto'); ga('require', 'displayfeatures'); - ga('send', 'pageview'); \ No newline at end of file + ga('send', 'pageview'); +script#inspectletjs(type='text/javascript'). + window.__insp = window.__insp || []; + __insp.push(['wid', 561999918]); + (function() { + function __ldinsp() { + var insp = document.createElement('script'); + insp.type = 'text/javascript'; + insp.async = true; + insp.id = "inspsync"; + insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js'; + var x = document.getElementsByTagName('script')[0]; + x.parentNode.insertBefore(insp, x); + } + if (window.attachEvent) window.attachEvent('onload', __ldinsp); + else window.addEventListener('load', __ldinsp, false); + })(); \ No newline at end of file