Improve anonymous analytics
parent
0ca16c3a5e
commit
5a31d4fd17
|
@ -26,7 +26,8 @@
|
|||
<link href="{% static 'base.css' %}" rel="stylesheet" type="text/css">
|
||||
<script async
|
||||
src="https://analytics2.thisfro.ch/script.js"
|
||||
data-website-id="4cc39391-553f-45ae-9728-74ee24aa40a1"></script>
|
||||
data-website-id="4cc39391-553f-45ae-9728-74ee24aa40a1"
|
||||
data-domains="beta.pflaenz.li,pflaenz.li"></script>
|
||||
<link rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href="{% static 'favicon/apple-touch-icon.png' %}">
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
<form method="post" enctype="multipart/form-data" class="mb-5">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<button type="submit" class="btn btn-pfl">{{ button_label }}</button>
|
||||
<button type="submit"
|
||||
class="btn btn-pfl"
|
||||
{% if umami_event %}data-umami-event-id="{{ umami_event }}"{% endif %}>
|
||||
{{ button_label }}
|
||||
</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -45,7 +45,7 @@ def create_offer(request):
|
|||
else:
|
||||
form = CreateOfferForm()
|
||||
|
||||
return render(request, "basic_form.html", {"form": form, "button_label": _("Create"), "title": _("Create offer")})
|
||||
return render(request, "basic_form.html", {"form": form, "button_label": _("Create"), "title": _("Create offer"), "umami_event": "Offer create"})
|
||||
|
||||
|
||||
def offer_detail(request, offer_id):
|
||||
|
@ -183,7 +183,7 @@ def register_user(request):
|
|||
else:
|
||||
form = RegistrationForm()
|
||||
|
||||
return render(request, "basic_form.html", {"form": form, "button_label": _("Register"), "title": _("Registeration")})
|
||||
return render(request, "basic_form.html", {"form": form, "button_label": _("Register"), "title": _("Registeration"), "umami_event": "User registration"})
|
||||
|
||||
|
||||
def error_404(request, exception):
|
||||
|
|
Loading…
Reference in New Issue