mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-03-26 06:55:03 +08:00
Only render GA tracking code in production
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
<div class="text-center">
|
||||
</div>
|
||||
</div>
|
||||
{% if jekyll.environment != 'development' %}
|
||||
<script>
|
||||
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||
ga('create', 'UA-102577034-2', 'auto');
|
||||
@@ -35,5 +36,6 @@
|
||||
</script>
|
||||
<script async src="https://www.google-analytics.com/analytics.js"></script>
|
||||
<script async src="/assets/js/autotrack.js"></script>
|
||||
{% endif %}
|
||||
<script async src="https://buttons.github.io/buttons.js"></script>
|
||||
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||||
|
||||
Reference in New Issue
Block a user