Skip to content
Snippets Groups Projects
Commit 03692115 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch '543_remove_google_analytics' into 'master'

Remove google analytics

Closes #543

See merge request !315
parents 9c483882 f8223eb5
No related branches found
No related tags found
1 merge request!315Remove google analytics
Pipeline #36398 failed
...@@ -28,18 +28,13 @@ ...@@ -28,18 +28,13 @@
from django.conf import settings from django.conf import settings
from .. import __version__ from .. import __version__
def exported_settings(request): def exported_settings(request):
return { return {
'URL_PREFIX': settings.URL_PREFIX, "URL_PREFIX": settings.URL_PREFIX,
'PREREGISTRATION_ONLY': settings.PREREGISTRATION_ONLY "PREREGISTRATION_ONLY": settings.PREREGISTRATION_ONLY,
} }
def beat_version(request):
return {
'beat_version': __version__,
}
def google_analytics(request): def beat_version(request):
return { return {"beat_version": __version__}
'google_analytics': getattr(settings, 'GOOGLE_ANALYTICS_KEY'),
}
This diff is collapsed.
...@@ -110,18 +110,5 @@ $(document).ready(function() { ...@@ -110,18 +110,5 @@ $(document).ready(function() {
}); });
</script> </script>
{# google analytics #}
{% if google_analytics %}
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
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');
ga('create', '{{ google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
</body> </body>
</html> </html>
...@@ -8,13 +8,13 @@ dependencies: ...@@ -8,13 +8,13 @@ dependencies:
# packages you may pin are here # packages you may pin are here
- python=3.6 - python=3.6
- bob-devel=2019.08.28 - bob-devel=2020.01.09
- beat-devel=2019.08.28 - beat-devel=2020.01.09
# beat dependencies matching release.cfg # beat dependencies matching release.cfg
- beat.core=1.9.0 - beat.core=1.9.2
- beat.backend.python=1.7.2 - beat.backend.python=1.7.3
- beat.cmdline=1.5.0 - beat.cmdline=1.6.1
# requirements.txt, they are indirectly pinned through the above # requirements.txt, they are indirectly pinned through the above
- docopt - docopt
......
...@@ -24,9 +24,9 @@ eggs = ${buildout:eggs} ...@@ -24,9 +24,9 @@ eggs = ${buildout:eggs}
interpreter = python interpreter = python
[sources] [sources]
beat.core = git https://gitlab.idiap.ch/beat/beat.core.git rev=v1.9.0 beat.core = git https://gitlab.idiap.ch/beat/beat.core.git rev=v1.9.2
beat.cmdline = git https://gitlab.idiap.ch/beat/beat.cmdline.git rev=v1.5.0 beat.cmdline = git https://gitlab.idiap.ch/beat/beat.cmdline.git rev=v1.6.1
beat.backend.python = git https://gitlab.idiap.ch/beat/beat.backend.python.git rev=v1.7.2 beat.backend.python = git https://gitlab.idiap.ch/beat/beat.backend.python.git rev=v1.7.3
[uwsgi] [uwsgi]
recipe = buildout.recipe.uwsgi recipe = buildout.recipe.uwsgi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment