1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-12-22 13:02:50 +00:00

Track download links

bzr-revno: 56
This commit is contained in:
Raoul Snyman 2017-02-05 09:26:20 -07:00
parent be8139fb19
commit bf5ebee130

18
conf.py
View File

@ -681,23 +681,25 @@ RSS_TEASERS = False
#""" #"""
EXTRA_HEAD_DATA = """ EXTRA_HEAD_DATA = """
<link href="/assets/css/ekko-lightbox.css" rel="stylesheet"> <link href="/assets/css/ekko-lightbox.css" rel="stylesheet">
<script src='//www.google.com/recaptcha/api.js'></script> <script src="//www.google.com/recaptcha/api.js"></script>
<script type='text/javascript'> <script type="text/javascript">
var Countly = Countly || {}; var Countly = Countly || {};
Countly.q = Countly.q || []; Countly.q = Countly.q || [];
Countly.app_key = "53ec944e2cab9356d3577dd1e260dc113fbf210f"; Countly.app_key = "53ec944e2cab9356d3577dd1e260dc113fbf210f";
Countly.url = "https://stats.openlp.io"; Countly.url = "https://stats.openlp.io";
Countly.q.push(['track_sessions']); Countly.q.push(["track_sessions"]);
Countly.q.push(['track_pageview']); Countly.q.push(["track_pageview"]);
Countly.q.push(["track_links", document.getElementById("download-section")]);
//load countly script asynchronously //load countly script asynchronously
(function() { (function() {
var cly = document.createElement('script'); cly.type = 'text/javascript'; var cly = document.createElement("script");
cly.type = "text/javascript";
cly.async = true; cly.async = true;
//enter url of script here cly.src = "https://cdn.jsdelivr.net/countly-sdk-web/latest/countly.min.js";
cly.src = 'https://cdn.jsdelivr.net/countly-sdk-web/latest/countly.min.js';
cly.onload = function() { Countly.init() }; cly.onload = function() { Countly.init() };
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(cly, s); var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(cly, s);
})(); })();
</script> </script>
""" """