We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30fad1b commit 45532a3Copy full SHA for 45532a3
packages/homepage/src/pages/index.js
@@ -56,4 +56,14 @@ const Homepage = () => (
56
</Layout>
57
);
58
59
+if (typeof window !== 'undefined') {
60
+ window.addEventListener('load', () => {
61
+ try {
62
+ window.amplitude.identify('hero0420', 'A');
63
+ } catch (e) {
64
+ console.warn(e);
65
+ }
66
+ });
67
+}
68
+
69
export default Homepage;
packages/homepage/src/pages/index2.js
@@ -57,4 +57,14 @@ const Homepage = () => (
+ window.amplitude.identify('hero0420', 'B');
70
0 commit comments