mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
track "visit pricing" and "upgraded" event (#1662)
This commit is contained in:
parent
66039c526b
commit
b081b6a16a
@ -80,8 +80,9 @@ def pricing():
|
|||||||
@dashboard_bp.route("/subscription_success")
|
@dashboard_bp.route("/subscription_success")
|
||||||
@login_required
|
@login_required
|
||||||
def subscription_success():
|
def subscription_success():
|
||||||
flash("Thanks so much for supporting SimpleLogin!", "success")
|
return render_template(
|
||||||
return redirect(url_for("dashboard.index"))
|
"dashboard/thank-you.html",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@dashboard_bp.route("/coinbase_checkout")
|
@dashboard_bp.route("/coinbase_checkout")
|
||||||
|
@ -210,5 +210,6 @@ to apply the coupon code.
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plausible("visit pricing");
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
19
templates/dashboard/thank-you.html
Normal file
19
templates/dashboard/thank-you.html
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{% extends "single.html" %}
|
||||||
|
|
||||||
|
{% set active_page = "dashboard" %}
|
||||||
|
{% block title %}Thank you{% endblock %}
|
||||||
|
{% block single_content %}
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<h1 class="h3">Thanks so much for supporting SimpleLogin!</h1>
|
||||||
|
<p>
|
||||||
|
SimpleLogin is 100% funded by the community.
|
||||||
|
We do not use your data, track you or show you ads.
|
||||||
|
</p>
|
||||||
|
<p>Thanks to your support, we can keep the service running and develop new features.</p>
|
||||||
|
<a class="btn btn-primary" href="/">Close</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>plausible("upgraded")</script>
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user