-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathchanges.patch
57 lines (53 loc) · 2.78 KB
/
changes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
diff --git a/app.py b/app.py
index c43af8c..867ccb1 100755
--- a/app.py
+++ b/app.py
@@ -232,4 +232,4 @@ def feature_flags():
return render_template('feature_flags.html')
if __name__ == '__main__':
- app.run(debug=True)
+ app.run(debug=True, host=app.config['APP_HOST'], port=app.config['APP_PORT'])
\ No newline at end of file
diff --git a/static/js/posthog.js b/static/js/posthog.js
index 7c93e1c..244c5d3 100755
--- a/static/js/posthog.js
+++ b/static/js/posthog.js
@@ -1,7 +1,8 @@
-// Ensure the posthog-js library is correctly imported
+// posthog.js
+
import posthog from 'posthog-js';
-posthog.init('phc_riCzwyMkRO7qRnhNLYfUIAehPc6V0U7Qudkv1a1XLu0', { api_host: 'https://eu.i.posthog.com' });
+posthog.init('phc_riCzwyMkRO7qRnhNLYfUIAehPc6V0U7Qudkv1a1XLu0', { api_host: 'https://eu.i.posthog.com', disable_web_experiments: false });
// Track page views
posthog.capture('$pageview');
@@ -17,4 +18,4 @@ function identifyUser(userEmail) {
}
// Export functions for use in other scripts
-export { trackButtonClick, identifyUser };
+export { trackButtonClick, identifyUser };
\ No newline at end of file
diff --git a/templates/base.html b/templates/base.html
index 8e5cdc9..15c682b 100755
--- a/templates/base.html
+++ b/templates/base.html
@@ -10,7 +10,7 @@
<!-- PostHog Initialization Script -->
<script>
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(o=t.createElement("script")).type="text/javascript",o.async=!0,o.src=s.api_host+"/static/array.js",(n=t.getElementsByTagName("script")[0]).parentNode.insertBefore(o,n);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},p="capture identify alias people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "),r=0;r<p.length;r++)g(u,p[r]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
- posthog.init("{{ config['PH_PROJECT_KEY'] }}", { api_host: "{{ config['PH_HOST'] }}", disable_web_experiments: false });
+ posthog.init("{{ config['PH_PROJECT_KEY'] }}", { api_host: "{{ config['PH_HOST'] }}", disable_web_experiments: false });
</script>
{% if current_user.is_authenticated %}
<script>
diff --git a/templates/signup.html b/templates/signup.html
index fac5105..4012598 100755
--- a/templates/signup.html
+++ b/templates/signup.html
@@ -110,4 +110,4 @@
}
</script>
</div>
-{% endblock %}
+{% endblock %}
\ No newline at end of file