Merge branch '12.0-one-doc-edi' of github.com:odoo/documentation-user into 12.0-one-doc-edi
This commit is contained in:
commit
614f981921
@ -51,6 +51,7 @@
|
||||
#}
|
||||
{% block footer %}
|
||||
{%- if google_analytics_key -%}
|
||||
{# FIXME VFE bring back old logic, it cannot be specified in a js file. #}
|
||||
<script type="text/javascript"
|
||||
src="{{ pathto('_static/js/google_analytics.js', 1) }}"></script>
|
||||
{%- endif -%}
|
||||
|
@ -3,6 +3,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');
|
||||
|
||||
// VFE FIXME, the {{}} is jinja code, it cannot be moved in an independent js code :P
|
||||
ga('create', '{{ google_analytics_key }}', 'auto');
|
||||
ga('set', 'anonymizeIp', true);
|
||||
ga('send','pageview');
|
Loading…
Reference in New Issue
Block a user