Skip to content

Commit

Permalink
Add google analytics event on signup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorendaugaard committed Oct 17, 2024
1 parent f13d8b2 commit ae923bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ docker build . -t rulesbot -t registry.practicalai.io/rulesbot && docker push re

Then login to server and reload rulesbot container:
```
./scripts/run-rulesbot-container.sh
./apps/run-rulesbot-container.sh
```
9 changes: 7 additions & 2 deletions users/templates/users/sign_up.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ <h3 class="font-weight-bolder text-primary text-gradient">Join us today!</h3>
<p class="mb-0">Enter your email and password to register</p>
</div>
<div class="card-body">
<form action="{% url 'users:sign-up' %}" method="post">
<form action="{% url 'users:sign-up' %}" method="post" onsubmit="gtag('event', 'sign_up_form_submit', {'event_category': 'Sign Up', 'event_label': 'Form Submitted'});">
{% csrf_token %}
{{ form }}
<div class="text-center">
<input type="submit" class="btn bg-gradient-primary w-100 mt-4 mb-0" value="Sign up" />
<form id="signUpForm" >
<input
type="submit"
class="btn bg-gradient-primary w-100 mt-4 mb-0"
value="Sign up"
/>
</div>
</form>
</div>
Expand Down

0 comments on commit ae923bc

Please sign in to comment.