mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
User manual: Update google analytics to modern version
This commit is contained in:
parent
fab4901674
commit
1a5b295c82
@ -43,20 +43,12 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if not embedded %}
|
{% if not embedded %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
||||||
var _gaq = _gaq || [];
|
ga('create', 'UA-20736318-1', 'auto');
|
||||||
_gaq.push(['_setAccount', 'UA-20736318-1']);
|
ga('send', 'pageview');
|
||||||
_gaq.push(['_setDomainName', '.calibre-ebook.com']);
|
</script>
|
||||||
_gaq.push(['_trackPageview']);
|
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
||||||
|
|
||||||
(function() {
|
|
||||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
||||||
})();
|
|
||||||
|
|
||||||
</script>
|
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user