Plausible roll up (#1350)
* enable plausible roll-up, use everything.simplelogin.com * versionning analytics.js to avoid caching * allow plausible custom event * send "Complete registration" event when user finishes signup * remove blank lines
This commit is contained in:
parent
7b24cdd98a
commit
3a4dac15f0
|
@ -17,10 +17,13 @@
|
|||
var plausibleScript = document.createElement('script');
|
||||
plausibleScript.defer = 1;
|
||||
plausibleScript.async = 1;
|
||||
plausibleScript.dataset.domain = "app.simplelogin.io";
|
||||
plausibleScript.dataset.domain = "app.simplelogin.io,everything.simplelogin.com";
|
||||
plausibleScript.src = 'https://plausible.simplelogin.io/js/index.js';
|
||||
|
||||
var ins = document.getElementsByTagName('script')[0];
|
||||
ins.parentNode.insertBefore(plausibleScript, ins);
|
||||
|
||||
// allow custom event
|
||||
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }
|
||||
|
||||
})();
|
|
@ -10,3 +10,4 @@
|
|||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block script %}<script>plausible('Complete registration')</script>{% endblock %}
|
||||
|
|
|
@ -181,8 +181,8 @@
|
|||
|
||||
</script>
|
||||
<script src="{{ url_for('static', filename='local-storage-polyfill.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/analytics.js', v='1') }}"></script>
|
||||
<!-- For additional script -->
|
||||
{% block script %}{% endblock %}
|
||||
<script src="{{ url_for('static', filename='js/analytics.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue