Nuke analytics and other google domains
This commit is contained in:
parent
6d7fb449a5
commit
53f085e017
|
@ -65,8 +65,6 @@ data AppSettings = AppSettings
|
|||
-- Example app-specific configuration values.
|
||||
-- , appCopyright :: Text
|
||||
-- ^ Copyright text to appear in the footer of the page
|
||||
, appAnalytics :: Maybe Text
|
||||
-- ^ Google Analytics code
|
||||
, appEmail :: [Text]
|
||||
-- ^ notification address
|
||||
, appCurrency :: Text
|
||||
|
@ -114,7 +112,6 @@ instance FromJSON AppSettings where
|
|||
appMutableStatic <- o .:? "mutable-static" .!= defaultDev
|
||||
appSkipCombining <- o .:? "skip-combining" .!= defaultDev
|
||||
|
||||
appAnalytics <- o .:? "analytics"
|
||||
appEmail <- o .: "email"
|
||||
appCurrency <- o .: "currency"
|
||||
appCashCharge <- o .: "cash_charge"
|
||||
|
|
|
@ -25,7 +25,6 @@ database:
|
|||
database: "_env:PGDATABASE:yammat"
|
||||
poolsize: "_env:PGPOOLSIZE:10"
|
||||
|
||||
#analytics: UA-YOURCODE
|
||||
email:
|
||||
- "nek0@momen"
|
||||
currency: "€"
|
||||
|
|
|
@ -16,10 +16,6 @@ $newline never
|
|||
|
||||
^{pageHead pc}
|
||||
|
||||
\<!--[if lt IE 9]>
|
||||
\<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
\<![endif]-->
|
||||
|
||||
<script>
|
||||
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/,'js');
|
||||
<body onkeypress="barcodeKeyPress(event)">
|
||||
|
@ -27,20 +23,3 @@ $newline never
|
|||
<p #barcodeContent>
|
||||
|
||||
^{pageBody pc}
|
||||
|
||||
$maybe analytics <- appAnalytics $ appSettings master
|
||||
<script>
|
||||
if(!window.location.href.match(/localhost/)){
|
||||
window._gaq = [['_setAccount','#{analytics}'],['_trackPageview'],['_trackPageLoadTime']];
|
||||
(function() {
|
||||
\ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
\ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
\ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
}
|
||||
\<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6. chromium.org/developers/how-tos/chrome-frame-getting-started -->
|
||||
\<!--[if lt IE 7 ]>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js">
|
||||
<script>
|
||||
window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
|
||||
\<![endif]-->
|
||||
|
|
Loading…
Reference in New Issue