mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
Add google Analytics
This commit is contained in:
parent
a4204a3d1f
commit
aebe2fac95
@ -81,6 +81,19 @@
|
|||||||
{% block aside %}{% endblock %} {% block content %}{% endblock %}
|
{% block aside %}{% endblock %} {% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{%- include "footer.html" %}
|
{%- include "footer.html" %}
|
||||||
|
<script data-no-instant>
|
||||||
|
if (!location.port) {
|
||||||
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
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', 'UA-72788897-1', 'auto');
|
||||||
|
ga('send', 'pageview');
|
||||||
|
InstantClick.on('change', function() {
|
||||||
|
ga('send', 'pageview', location.pathname + location.search);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script data-no-instant>
|
<script data-no-instant>
|
||||||
InstantClick.on('change', function() {
|
InstantClick.on('change', function() {
|
||||||
InstantClickChangeFns.forEach(function(fn) {
|
InstantClickChangeFns.forEach(function(fn) {
|
||||||
|
Loading…
Reference in New Issue
Block a user