Add P2PU tracking code
This commit is contained in:
Родитель
8ca7cd5dfa
Коммит
0051a98751
|
@ -2,6 +2,7 @@ baseurl:
|
|||
markdown: redcarpet
|
||||
permalink: /:categories/:title/
|
||||
ga_tracking_code: UA-5757664-19
|
||||
p2pu_ga_tracking_code: UA-55722824-1
|
||||
exclude: [Gemfile, Gemfile.lock, README.md]
|
||||
defaults:
|
||||
-
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '{{site.ga_tracking_code}}', 'auto');
|
||||
ga('create', '{{include.ga_tracking_code}}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
{% include footer.html %}
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script>
|
||||
window.jQuery || document.write('<script src="{{ site.baseurl }}/js/jquery.min.js"><\/script>')
|
||||
</script>
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
||||
<script src="{{site.baseurl}}/js/gh_link_helper.js"></script>
|
||||
<script type="text/javascript"
|
||||
|
@ -48,7 +51,10 @@
|
|||
</script>
|
||||
<!-- Google Analytics -->
|
||||
{% if site.ga_tracking_code %}
|
||||
{% include ga.html %}
|
||||
{% include ga.html ga_tracking_code=site.ga_tracking_code %}
|
||||
{% endif %}
|
||||
{% if site.p2pu_ga_tracking_code %}
|
||||
{% include ga.html ga_tracking_code=site.p2pu_ga_tracking_code %}
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
|
|
Загрузка…
Ссылка в новой задаче