forked from poole/hyde
-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
88 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
{% unless page.redirect %} | ||
{% if site.google_analytics %} | ||
<script> | ||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; | ||
ga('create', '{{ site.google_analytics }}', 'auto'); | ||
ga('send', 'pageview'); | ||
loadJSDeferred('https://www.google-analytics.com/analytics.js'); | ||
</script> | ||
<script> | ||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; | ||
{% if site.hydejack.cookies_banner %} | ||
if (navigator.CookiesOK) { | ||
ga('create', '{{ site.google_analytics }}', 'auto'); | ||
} else if (localStorage && localStorage.getItem('hy:cookiesOK')) { | ||
ga('create', '{{ site.google_analytics }}', { | ||
'storage': 'none', | ||
'clientId': localStorage.getItem('ga:clientId') | ||
}); | ||
} else { | ||
ga('create', '{{ site.google_analytics }}', { | ||
'storage': 'none' | ||
}); | ||
ga('set', 'forceSSL', true); | ||
ga('set', 'anonymizeIp', true); | ||
} | ||
{% else %} | ||
ga('create', '{{ site.google_analytics }}', 'auto'); | ||
{% endif %} | ||
ga('send', 'pageview'); | ||
loadJSDeferred('https://www.google-analytics.com/analytics.js'); | ||
</script> | ||
{% endif %} | ||
|
||
<!--[if gt IE 9]><!----> | ||
{% capture js_url %}{% link assets/js/hydejack-7.4.0.js %}{% endcapture %} | ||
<script>loadJSDeferred('{{ js_url | relative_url }}');</script> | ||
|
||
{% include my-scripts.html %} | ||
|
||
<!--<![endif]--> | ||
{% endunless %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,3 +63,5 @@ | |
} | ||
// @media print { display: none; } | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters