Skip to content
Snippets Groups Projects
Commit 96c1ecf6 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Change GAtemp-tag to web stats tag [VIPSUTV-381]

parent e8680920
No related branches found
No related tags found
No related merge requests found
...@@ -103,19 +103,12 @@ DATABASES = { ...@@ -103,19 +103,12 @@ DATABASES = {
# Site name - appears in header of all pages. HTML is allowed # Site name - appears in header of all pages. HTML is allowed
SITE_NAME = "Example site title" SITE_NAME = "Example site title"
# Insert Google Analytics Script? # Insert Web Analytics Script?
INSERT_GOOGLE_ANALYTICS = False # Could have more than 1
GOOGLE_ANALYTICS_SCRIPT = """ INSERT_WEB_ANALYTICS = False
<!-- Google Analytics --> WEB_ANALYTICS_SCRIPT = """
<script> <!-- Plausible.io -->
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ <script defer data-domain="foo.bar.com" src="https://plausible.io/js/script.js"></script>
(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', '[YOUR CODE HERE]', '[YOUR CONFIG HERE]');
</script>
""" """
# Convenience method for building URL to self # Convenience method for building URL to self
......
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
<script src="{% static "js/3rdparty/html5shiv.js" %}"></script> <script src="{% static "js/3rdparty/html5shiv.js" %}"></script>
<script src="{% static "js/3rdparty/respond.min.js" %}"></script> <script src="{% static "js/3rdparty/respond.min.js" %}"></script>
<![endif]--> <![endif]-->
{% if settings.INSERT_GOOGLE_ANALYTICS == True %} {% if settings.INSERT_WEB_ANALYTICS == True %}
{{ settings.GOOGLE_ANALYTICS_SCRIPT|safe }} {{ settings.WEB_ANALYTICS_SCRIPT|safe }}
{% endif %} {% endif %}
<title>{% block title %}Template{% endblock %} - VIPSWeb</title> <title>{% block title %}Template{% endblock %} - VIPSWeb</title>
</head> </head>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment