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 5ca4139 commit c6f5054Copy full SHA for c6f5054
packages/app/src/embed/index.js
@@ -9,10 +9,15 @@ import theme from '@codesandbox/common/lib/theme';
9
import '@codesandbox/common/lib/global.css';
10
11
import codesandbox from '@codesandbox/common/lib/themes/codesandbox.json';
12
-import track from '@codesandbox/common/lib/utils/analytics';
+import track, { identify } from '@codesandbox/common/lib/utils/analytics';
13
14
import App from './components/App';
15
16
+try {
17
+ identify('signed_in', Boolean(localStorage.jwt).toString());
18
+} catch (e) {
19
+ /* ignore error */
20
+}
21
document.addEventListener('click', () => {
22
track('Embed Interaction');
23
});
0 commit comments