@amplitude/wizard 1.0.0-beta.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +171 -74
- package/dist/bin.js +338 -222
- package/dist/src/lib/agent-interface.js +64 -9
- package/dist/src/lib/agent-runner.js +1 -10
- package/dist/src/lib/api.d.ts +22 -4
- package/dist/src/lib/api.js +114 -12
- package/dist/src/lib/commandments.js +14 -1
- package/dist/src/lib/constants.d.ts +6 -5
- package/dist/src/lib/constants.js +13 -13
- package/dist/src/lib/credential-resolution.d.ts +45 -0
- package/dist/src/lib/credential-resolution.js +311 -0
- package/dist/src/lib/exit-codes.d.ts +10 -0
- package/dist/src/lib/exit-codes.js +12 -0
- package/dist/src/lib/health-checks/statuspage.d.ts +1 -0
- package/dist/src/lib/health-checks/statuspage.js +5 -1
- package/dist/src/lib/mode-config.d.ts +14 -0
- package/dist/src/lib/mode-config.js +14 -0
- package/dist/src/lib/session-checkpoint.d.ts +27 -0
- package/dist/src/lib/session-checkpoint.js +134 -0
- package/dist/src/lib/wizard-session.d.ts +44 -1
- package/dist/src/lib/wizard-session.js +70 -14
- package/dist/src/lib/wizard-tools.js +19 -4
- package/dist/src/steps/add-mcp-server-to-clients/clients/claude.d.ts +3 -0
- package/dist/src/steps/add-mcp-server-to-clients/clients/claude.js +6 -0
- package/dist/src/steps/add-mcp-server-to-clients/clients/cursor.js +3 -1
- package/dist/src/ui/agent-ui.d.ts +91 -0
- package/dist/src/ui/agent-ui.js +277 -0
- package/dist/src/ui/logging-ui.js +1 -1
- package/dist/src/ui/tui/App.d.ts +12 -0
- package/dist/src/ui/tui/App.js +29 -18
- package/dist/src/ui/tui/components/AmplitudeLogo.js +16 -17
- package/dist/src/ui/tui/components/AmplitudeTextLogo.d.ts +0 -2
- package/dist/src/ui/tui/components/AmplitudeTextLogo.js +53 -18
- package/dist/src/ui/tui/components/BrailleSpinner.d.ts +8 -0
- package/dist/src/ui/tui/components/BrailleSpinner.js +15 -0
- package/dist/src/ui/tui/components/ConsoleView.d.ts +8 -11
- package/dist/src/ui/tui/components/ConsoleView.js +51 -34
- package/dist/src/ui/tui/components/HeaderBar.d.ts +12 -0
- package/dist/src/ui/tui/components/HeaderBar.js +17 -0
- package/dist/src/ui/tui/components/JourneyStepper.d.ts +16 -0
- package/dist/src/ui/tui/components/JourneyStepper.js +83 -0
- package/dist/src/ui/tui/components/KeyHintBar.d.ts +19 -0
- package/dist/src/ui/tui/components/KeyHintBar.js +20 -0
- package/dist/src/ui/tui/console-commands.d.ts +1 -2
- package/dist/src/ui/tui/console-commands.js +48 -7
- package/dist/src/ui/tui/flows.d.ts +1 -1
- package/dist/src/ui/tui/flows.js +1 -1
- package/dist/src/ui/tui/hooks/useAsyncEffect.d.ts +15 -0
- package/dist/src/ui/tui/hooks/useAsyncEffect.js +35 -0
- package/dist/src/ui/tui/hooks/useWizardStore.d.ts +9 -0
- package/dist/src/ui/tui/hooks/useWizardStore.js +11 -0
- package/dist/src/ui/tui/ink-ui.js +1 -1
- package/dist/src/ui/tui/primitives/DissolveTransition.js +4 -5
- package/dist/src/ui/tui/primitives/EventPlanViewer.d.ts +3 -1
- package/dist/src/ui/tui/primitives/EventPlanViewer.js +8 -3
- package/dist/src/ui/tui/primitives/ProgressList.js +1 -1
- package/dist/src/ui/tui/primitives/SlashCommandInput.js +19 -4
- package/dist/src/ui/tui/primitives/SplitView.d.ts +2 -1
- package/dist/src/ui/tui/primitives/SplitView.js +10 -2
- package/dist/src/ui/tui/primitives/TabContainer.js +10 -2
- package/dist/src/ui/tui/primitives/index.d.ts +0 -1
- package/dist/src/ui/tui/primitives/index.js +0 -1
- package/dist/src/ui/tui/router.js +1 -1
- package/dist/src/ui/tui/screen-registry.d.ts +0 -7
- package/dist/src/ui/tui/screen-registry.js +13 -4
- package/dist/src/ui/tui/screens/ActivationOptionsScreen.d.ts +2 -2
- package/dist/src/ui/tui/screens/ActivationOptionsScreen.js +8 -8
- package/dist/src/ui/tui/screens/AuthScreen.js +57 -27
- package/dist/src/ui/tui/screens/ChecklistScreen.d.ts +2 -12
- package/dist/src/ui/tui/screens/ChecklistScreen.js +22 -33
- package/dist/src/ui/tui/screens/DataIngestionCheckScreen.d.ts +3 -12
- package/dist/src/ui/tui/screens/DataIngestionCheckScreen.js +109 -39
- package/dist/src/ui/tui/screens/DataSetupScreen.d.ts +3 -3
- package/dist/src/ui/tui/screens/DataSetupScreen.js +17 -10
- package/dist/src/ui/tui/screens/IntroScreen.d.ts +5 -3
- package/dist/src/ui/tui/screens/IntroScreen.js +132 -41
- package/dist/src/ui/tui/screens/LoginScreen.d.ts +1 -1
- package/dist/src/ui/tui/screens/LoginScreen.js +4 -4
- package/dist/src/ui/tui/screens/LogoutScreen.d.ts +4 -2
- package/dist/src/ui/tui/screens/LogoutScreen.js +17 -5
- package/dist/src/ui/tui/screens/McpScreen.d.ts +4 -4
- package/dist/src/ui/tui/screens/McpScreen.js +25 -17
- package/dist/src/ui/tui/screens/OutageScreen.d.ts +1 -1
- package/dist/src/ui/tui/screens/OutageScreen.js +5 -5
- package/dist/src/ui/tui/screens/OutroScreen.d.ts +5 -0
- package/dist/src/ui/tui/screens/OutroScreen.js +21 -14
- package/dist/src/ui/tui/screens/RegionSelectScreen.js +15 -13
- package/dist/src/ui/tui/screens/RunScreen.d.ts +7 -5
- package/dist/src/ui/tui/screens/RunScreen.js +102 -157
- package/dist/src/ui/tui/screens/SettingsOverrideScreen.d.ts +1 -1
- package/dist/src/ui/tui/screens/SettingsOverrideScreen.js +6 -5
- package/dist/src/ui/tui/screens/SetupScreen.d.ts +1 -1
- package/dist/src/ui/tui/screens/SetupScreen.js +7 -7
- package/dist/src/ui/tui/screens/SlackScreen.d.ts +2 -2
- package/dist/src/ui/tui/screens/SlackScreen.js +60 -35
- package/dist/src/ui/tui/session-constants.d.ts +41 -0
- package/dist/src/ui/tui/session-constants.js +38 -0
- package/dist/src/ui/tui/start-tui.d.ts +3 -1
- package/dist/src/ui/tui/start-tui.js +14 -10
- package/dist/src/ui/tui/store.d.ts +2 -1
- package/dist/src/ui/tui/store.js +33 -7
- package/dist/src/ui/tui/styles.d.ts +75 -19
- package/dist/src/ui/tui/styles.js +101 -19
- package/dist/src/ui/tui/utils/classify-error.d.ts +14 -0
- package/dist/src/ui/tui/utils/classify-error.js +90 -0
- package/dist/src/ui/tui/utils/diagnostics.d.ts +21 -0
- package/dist/src/ui/tui/utils/diagnostics.js +72 -0
- package/dist/src/ui/tui/utils/with-retry.d.ts +12 -0
- package/dist/src/ui/tui/utils/with-retry.js +32 -0
- package/dist/src/ui/tui/utils/with-timeout.d.ts +10 -0
- package/dist/src/ui/tui/utils/with-timeout.js +24 -0
- package/dist/src/utils/ampli-settings.d.ts +1 -1
- package/dist/src/utils/ampli-settings.js +15 -5
- package/dist/src/utils/api-key-store.js +5 -5
- package/dist/src/utils/atomic-write.d.ts +15 -0
- package/dist/src/utils/atomic-write.js +34 -0
- package/dist/src/utils/setup-utils.js +2 -2
- package/dist/src/utils/token-refresh.d.ts +22 -0
- package/dist/src/utils/token-refresh.js +79 -0
- package/dist/src/utils/wizard-abort.js +6 -1
- package/package.json +6 -6
- package/skills/instrumentation/add-analytics-instrumentation/SKILL.md +142 -0
- package/skills/instrumentation/diff-intake/SKILL.md +128 -0
- package/skills/instrumentation/discover-analytics-patterns/SKILL.md +185 -0
- package/skills/instrumentation/discover-event-surfaces/SKILL.md +322 -0
- package/skills/instrumentation/discover-event-surfaces/references/best-practices.md +563 -0
- package/skills/instrumentation/instrument-events/SKILL.md +169 -0
- package/skills/instrumentation/instrument-events/references/best-practices.md +563 -0
- package/skills/integration/integration-android/SKILL.md +49 -0
- package/skills/integration/integration-android/references/EXAMPLE.md +1977 -0
- package/skills/integration/integration-android/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-android/references/analytics.md +1778 -0
- package/skills/integration/integration-android/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-android/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-android/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-android/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-angular/SKILL.md +49 -0
- package/skills/integration/integration-angular/references/EXAMPLE.md +899 -0
- package/skills/integration/integration-angular/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-angular/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-angular/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-angular/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-angular/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-angular/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-astro-hybrid/SKILL.md +56 -0
- package/skills/integration/integration-astro-hybrid/references/EXAMPLE.md +1095 -0
- package/skills/integration/integration-astro-hybrid/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-astro-hybrid/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-astro-hybrid/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-astro-hybrid/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-astro-hybrid/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-astro-hybrid/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-astro-ssr/SKILL.md +52 -0
- package/skills/integration/integration-astro-ssr/references/EXAMPLE.md +1106 -0
- package/skills/integration/integration-astro-ssr/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-astro-ssr/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-astro-ssr/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-astro-ssr/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-astro-ssr/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-astro-ssr/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-astro-static/SKILL.md +49 -0
- package/skills/integration/integration-astro-static/references/EXAMPLE.md +910 -0
- package/skills/integration/integration-astro-static/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-astro-static/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-astro-static/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-astro-static/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-astro-static/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-astro-static/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-astro-view-transitions/SKILL.md +51 -0
- package/skills/integration/integration-astro-view-transitions/references/EXAMPLE.md +979 -0
- package/skills/integration/integration-astro-view-transitions/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-astro-view-transitions/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-astro-view-transitions/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-astro-view-transitions/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-astro-view-transitions/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-astro-view-transitions/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-django/SKILL.md +57 -0
- package/skills/integration/integration-django/references/EXAMPLE.md +1005 -0
- package/skills/integration/integration-django/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-django/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-django/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-django/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-django/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-django/references/python.md +1424 -0
- package/skills/integration/integration-expo/SKILL.md +53 -0
- package/skills/integration/integration-expo/references/EXAMPLE.md +1291 -0
- package/skills/integration/integration-expo/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-expo/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-expo/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-expo/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-expo/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-expo/references/react-native-sdk.md +2819 -0
- package/skills/integration/integration-fastapi/SKILL.md +57 -0
- package/skills/integration/integration-fastapi/references/EXAMPLE.md +1389 -0
- package/skills/integration/integration-fastapi/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-fastapi/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-fastapi/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-fastapi/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-fastapi/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-fastapi/references/python.md +1424 -0
- package/skills/integration/integration-flask/SKILL.md +56 -0
- package/skills/integration/integration-flask/references/EXAMPLE.md +1130 -0
- package/skills/integration/integration-flask/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-flask/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-flask/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-flask/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-flask/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-flask/references/python.md +1424 -0
- package/skills/integration/integration-javascript_node/SKILL.md +54 -0
- package/skills/integration/integration-javascript_node/references/EXAMPLE.md +365 -0
- package/skills/integration/integration-javascript_node/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-javascript_node/references/analytics.md +1778 -0
- package/skills/integration/integration-javascript_node/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-javascript_node/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-javascript_node/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-javascript_node/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-javascript_web/SKILL.md +58 -0
- package/skills/integration/integration-javascript_web/references/EXAMPLE.md +451 -0
- package/skills/integration/integration-javascript_web/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-javascript_web/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-javascript_web/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-javascript_web/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-javascript_web/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-javascript_web/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-laravel/SKILL.md +52 -0
- package/skills/integration/integration-laravel/references/EXAMPLE.md +2039 -0
- package/skills/integration/integration-laravel/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-laravel/references/analytics.md +1778 -0
- package/skills/integration/integration-laravel/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-laravel/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-laravel/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-laravel/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-nextjs-app-router/SKILL.md +54 -0
- package/skills/integration/integration-nextjs-app-router/references/EXAMPLE.md +673 -0
- package/skills/integration/integration-nextjs-app-router/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-nextjs-app-router/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-nextjs-app-router/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-nextjs-app-router/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-nextjs-app-router/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-nextjs-app-router/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-nextjs-pages-router/SKILL.md +54 -0
- package/skills/integration/integration-nextjs-pages-router/references/EXAMPLE.md +735 -0
- package/skills/integration/integration-nextjs-pages-router/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-nextjs-pages-router/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-nextjs-pages-router/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-nextjs-pages-router/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-nextjs-pages-router/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-nextjs-pages-router/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-nuxt-3.6/SKILL.md +46 -0
- package/skills/integration/integration-nuxt-3.6/references/EXAMPLE.md +8422 -0
- package/skills/integration/integration-nuxt-3.6/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-nuxt-3.6/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-nuxt-3.6/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-nuxt-3.6/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-nuxt-3.6/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-nuxt-3.6/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-nuxt-4/SKILL.md +46 -0
- package/skills/integration/integration-nuxt-4/references/EXAMPLE.md +8670 -0
- package/skills/integration/integration-nuxt-4/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-nuxt-4/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-nuxt-4/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-nuxt-4/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-nuxt-4/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-nuxt-4/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-python/SKILL.md +53 -0
- package/skills/integration/integration-python/references/EXAMPLE.md +445 -0
- package/skills/integration/integration-python/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-python/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-python/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-python/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-python/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-python/references/python.md +1424 -0
- package/skills/integration/integration-react-native/SKILL.md +49 -0
- package/skills/integration/integration-react-native/references/EXAMPLE.md +2253 -0
- package/skills/integration/integration-react-native/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-react-native/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-react-native/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-react-native/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-react-native/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-react-native/references/react-native-sdk.md +2819 -0
- package/skills/integration/integration-react-react-router-6/SKILL.md +53 -0
- package/skills/integration/integration-react-react-router-6/references/EXAMPLE.md +570 -0
- package/skills/integration/integration-react-react-router-6/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-react-react-router-6/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-react-react-router-6/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-react-react-router-6/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-react-react-router-6/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-react-react-router-6/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-react-react-router-7-data/SKILL.md +53 -0
- package/skills/integration/integration-react-react-router-7-data/references/EXAMPLE.md +830 -0
- package/skills/integration/integration-react-react-router-7-data/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-react-react-router-7-data/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-react-react-router-7-data/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-react-react-router-7-data/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-react-react-router-7-data/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-react-react-router-7-data/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-react-react-router-7-declarative/SKILL.md +53 -0
- package/skills/integration/integration-react-react-router-7-declarative/references/EXAMPLE.md +609 -0
- package/skills/integration/integration-react-react-router-7-declarative/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-react-react-router-7-declarative/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-react-react-router-7-declarative/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-react-react-router-7-declarative/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-react-react-router-7-declarative/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-react-react-router-7-declarative/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-react-react-router-7-framework/SKILL.md +53 -0
- package/skills/integration/integration-react-react-router-7-framework/references/EXAMPLE.md +1081 -0
- package/skills/integration/integration-react-react-router-7-framework/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-react-react-router-7-framework/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-react-react-router-7-framework/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-react-react-router-7-framework/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-react-react-router-7-framework/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-react-react-router-7-framework/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-react-tanstack-router-code-based/SKILL.md +57 -0
- package/skills/integration/integration-react-tanstack-router-code-based/references/EXAMPLE.md +659 -0
- package/skills/integration/integration-react-tanstack-router-code-based/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-react-tanstack-router-code-based/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-react-tanstack-router-code-based/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-react-tanstack-router-code-based/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-react-tanstack-router-code-based/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-react-tanstack-router-code-based/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-react-tanstack-router-file-based/SKILL.md +57 -0
- package/skills/integration/integration-react-tanstack-router-file-based/references/EXAMPLE.md +777 -0
- package/skills/integration/integration-react-tanstack-router-file-based/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-react-tanstack-router-file-based/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-react-tanstack-router-file-based/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-react-tanstack-router-file-based/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-react-tanstack-router-file-based/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-react-tanstack-router-file-based/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-react-vite/SKILL.md +53 -0
- package/skills/integration/integration-react-vite/references/EXAMPLE.md +542 -0
- package/skills/integration/integration-react-vite/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-react-vite/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-react-vite/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-react-vite/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-react-vite/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-react-vite/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-ruby/SKILL.md +50 -0
- package/skills/integration/integration-ruby/references/EXAMPLE.md +420 -0
- package/skills/integration/integration-ruby/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-ruby/references/analytics.md +1778 -0
- package/skills/integration/integration-ruby/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-ruby/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-ruby/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-ruby/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-ruby-on-rails/SKILL.md +55 -0
- package/skills/integration/integration-ruby-on-rails/references/EXAMPLE.md +1013 -0
- package/skills/integration/integration-ruby-on-rails/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-ruby-on-rails/references/analytics.md +1778 -0
- package/skills/integration/integration-ruby-on-rails/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-ruby-on-rails/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-ruby-on-rails/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-ruby-on-rails/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-sveltekit/SKILL.md +47 -0
- package/skills/integration/integration-sveltekit/references/EXAMPLE.md +14121 -0
- package/skills/integration/integration-sveltekit/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-sveltekit/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-sveltekit/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-sveltekit/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-sveltekit/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-sveltekit/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-swift/SKILL.md +49 -0
- package/skills/integration/integration-swift/references/EXAMPLE.md +660 -0
- package/skills/integration/integration-swift/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-swift/references/analytics.md +1778 -0
- package/skills/integration/integration-swift/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-swift/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-swift/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-swift/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-tanstack-start/SKILL.md +58 -0
- package/skills/integration/integration-tanstack-start/references/EXAMPLE.md +998 -0
- package/skills/integration/integration-tanstack-start/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-tanstack-start/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-tanstack-start/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-tanstack-start/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-tanstack-start/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-tanstack-start/references/browser-sdk-2.md +4680 -0
- package/skills/integration/integration-vue-3/SKILL.md +46 -0
- package/skills/integration/integration-vue-3/references/EXAMPLE.md +846 -0
- package/skills/integration/integration-vue-3/references/amplitude-quickstart.md +1845 -0
- package/skills/integration/integration-vue-3/references/basic-integration-1.0-begin.md +43 -0
- package/skills/integration/integration-vue-3/references/basic-integration-1.1-edit.md +35 -0
- package/skills/integration/integration-vue-3/references/basic-integration-1.2-revise.md +23 -0
- package/skills/integration/integration-vue-3/references/basic-integration-1.3-conclude.md +57 -0
- package/skills/integration/integration-vue-3/references/browser-sdk-2.md +4680 -0
- package/skills/taxonomy/amplitude-quickstart-taxonomy-agent/SKILL.md +228 -0
- package/dist/src/ui/tui/components/TitleBar.d.ts +0 -8
- package/dist/src/ui/tui/components/TitleBar.js +0 -27
- package/dist/src/ui/tui/primitives/KagiSmallWebViewer.d.ts +0 -7
- package/dist/src/ui/tui/primitives/KagiSmallWebViewer.js +0 -101
- package/dist/src/utils/anthropic-status.d.ts +0 -17
- package/dist/src/utils/anthropic-status.js +0 -51
package/skills/integration/integration-react-react-router-6/references/amplitude-quickstart.md
ADDED
|
@@ -0,0 +1,1845 @@
|
|
|
1
|
+
<!--production-->
|
|
2
|
+
|
|
3
|
+
<!doctype html>
|
|
4
|
+
<html lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta name='zd-site-verification' content='od3rs5oc4ggcruhipz6rp' />
|
|
7
|
+
<meta charset="utf-8">
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
12
|
+
<meta content="Get started with the full Amplitude platform in minutes. Which features drive retention? Where do" name="description">
|
|
13
|
+
<meta name="google-site-verification" content="UHLjtoO7DV30dx3hVhwTOIWguEUr_VzS41msmq-uYKA" />
|
|
14
|
+
|
|
15
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/docs/assets/general/apple-touch-icon.png">
|
|
16
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/docs/assets/general/favicon-32x32.png">
|
|
17
|
+
<link rel="icon" type="image/png" sizes="16x16" href="/docs/assets/general/favicon-16x16.png">
|
|
18
|
+
<title>Amplitude Quickstart | Amplitude</title>
|
|
19
|
+
|
|
20
|
+
<script type="application/ld+json">
|
|
21
|
+
{
|
|
22
|
+
"@context": "https://schema.org",
|
|
23
|
+
"@type": "Article",
|
|
24
|
+
"headline": "Amplitude Quickstart",
|
|
25
|
+
"description": "Get started with the full Amplitude platform in minutes. Which features drive retention? Where do",
|
|
26
|
+
"url": "/docs/get-started/amplitude-quickstart",
|
|
27
|
+
"publisher": {
|
|
28
|
+
"@type": "Organization",
|
|
29
|
+
"name": "Amplitude",
|
|
30
|
+
"legalName": "Amplitude, Inc.",
|
|
31
|
+
"url": "https://amplitude.com",
|
|
32
|
+
"logo": {
|
|
33
|
+
"@type": "ImageObject",
|
|
34
|
+
"url": "https://amplitude.com/nextjs-public/amplitude-default-seo.png"
|
|
35
|
+
},
|
|
36
|
+
"address": {
|
|
37
|
+
"@type": "PostalAddress",
|
|
38
|
+
"streetAddress": "201 3rd St #200",
|
|
39
|
+
"addressLocality": "San Francisco",
|
|
40
|
+
"addressRegion": "CA",
|
|
41
|
+
"postalCode": "94103",
|
|
42
|
+
"addressCountry": "USA"
|
|
43
|
+
},
|
|
44
|
+
"contactPoint": {
|
|
45
|
+
"@type": "ContactPoint",
|
|
46
|
+
"telephone": "[+650-988-5131]",
|
|
47
|
+
"contactType": "Customer Support",
|
|
48
|
+
"email": "sales@amplitude.com"
|
|
49
|
+
},
|
|
50
|
+
"sameAs": [
|
|
51
|
+
"https://twitter.com/Amplitude_HQ",
|
|
52
|
+
"https://www.facebook.com/AmplitudeAnalytics/",
|
|
53
|
+
"https://www.linkedin.com/company/amplitude-analytics"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"datePublished": "",
|
|
57
|
+
"dateModified": "December 11th, 2025",
|
|
58
|
+
"mainEntityOfPage": {
|
|
59
|
+
"@type": "WebPage",
|
|
60
|
+
"@id": "/docs/get-started/amplitude-quickstart"
|
|
61
|
+
},
|
|
62
|
+
"author": [
|
|
63
|
+
{
|
|
64
|
+
"@type": "Organization",
|
|
65
|
+
"name": "Amplitude"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
</script>
|
|
70
|
+
|
|
71
|
+
<style>
|
|
72
|
+
/* Prism’s critical code-block styles only */
|
|
73
|
+
code[class*="language-"],
|
|
74
|
+
pre[class*="language-"] {
|
|
75
|
+
color: #2a2a2a;
|
|
76
|
+
background: #f5f2f0;
|
|
77
|
+
font-family:"IBM Plex Mono", Consolas, Menlo, monospace;
|
|
78
|
+
font-size: 0.9em;
|
|
79
|
+
white-space: pre;
|
|
80
|
+
/* …etc, just the essentials… */
|
|
81
|
+
}
|
|
82
|
+
</style>
|
|
83
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.25.0/tocbot.css">
|
|
84
|
+
<link href="/docs/css/site.css?id=cf9c3f0a1066ff8b5d94a25cd8d407e1" rel="stylesheet">
|
|
85
|
+
<link href="/docs/css/algolia.css?id=e343cc9490e043fefffa37d2817ddf8c" rel="stylesheet">
|
|
86
|
+
<link href="/docs/css/dracula-prism.css?id=a5713888be640854bb66b8b74c1037ce" rel="stylesheet">
|
|
87
|
+
<style>
|
|
88
|
+
pre[class*="language-"] code p {
|
|
89
|
+
all: unset; /* removes default block-level margins/padding */
|
|
90
|
+
display: inline; /* flow as if it were plain text */
|
|
91
|
+
}
|
|
92
|
+
</style>
|
|
93
|
+
<script src="/docs/js/site.js?id=078a82617f7dafffff92da951b4ec6c9"></script>
|
|
94
|
+
<script type="module" src="/docs/js/side-nav.js?id=b84c163c6c16a6a6b14fc85ee81c31e9"></script>
|
|
95
|
+
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/collapse@3.x.x/dist/cdn.min.js"></script>
|
|
96
|
+
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.13.5/dist/cdn.min.js"></script>
|
|
97
|
+
<link rel="preconnect" href="https://93SYI9HL20-dsn.algolia.net" crossorigin />
|
|
98
|
+
<script src="https://unpkg.com/@amplitude/experiment-js-client@1.9.0/dist/experiment.umd.js"></script>
|
|
99
|
+
<style>
|
|
100
|
+
[x-cloak] {
|
|
101
|
+
display: none !important;
|
|
102
|
+
}
|
|
103
|
+
.copy-btn {
|
|
104
|
+
height: 24px;
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0.5rem;
|
|
107
|
+
right: 0.5rem;
|
|
108
|
+
z-index: 10;
|
|
109
|
+
background: transparent;
|
|
110
|
+
border: none;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
padding: 0.25rem;
|
|
113
|
+
opacity: 0.6;
|
|
114
|
+
transition: opacity 0.2s;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.copy-btn:hover {
|
|
118
|
+
opacity: 1;
|
|
119
|
+
}
|
|
120
|
+
</style>
|
|
121
|
+
<script src="https://cdn.amplitude.com/script/8ec8f5cbeaf93a6717831a55add2d7a4.js"></script>
|
|
122
|
+
<script src="https://cdn.amplitude.com/script/8ec8f5cbeaf93a6717831a55add2d7a4.engagement.js"></script>
|
|
123
|
+
|
|
124
|
+
<script>
|
|
125
|
+
window.amplitude.add(window.sessionReplay.plugin({
|
|
126
|
+
sampleRate: 0.5
|
|
127
|
+
}));
|
|
128
|
+
window.amplitude.init('8ec8f5cbeaf93a6717831a55add2d7a4', {
|
|
129
|
+
"fetchRemoteConfig": true,
|
|
130
|
+
"autocapture": {
|
|
131
|
+
"attribution": {
|
|
132
|
+
"excludeInternalReferrers": true,
|
|
133
|
+
},
|
|
134
|
+
"pageViews": true,
|
|
135
|
+
"sessions": true,
|
|
136
|
+
"formInteractions": true,
|
|
137
|
+
"fileDownloads": true,
|
|
138
|
+
"elementInteractions": true,
|
|
139
|
+
"pageUrlEnrichment": true,
|
|
140
|
+
"webVitals": true,
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
window.amplitude.add(window.engagement.plugin())
|
|
145
|
+
|
|
146
|
+
function checkAuthenticatedUser() {
|
|
147
|
+
try {
|
|
148
|
+
const AMP_PREFIX = 'AMP_';
|
|
149
|
+
const currUserId = amplitude.getUserId();
|
|
150
|
+
|
|
151
|
+
if (!currUserId) {
|
|
152
|
+
// Iterate through all amplitude cookies within amplitude domain
|
|
153
|
+
const amplitudeCookies = getCookies(AMP_PREFIX);
|
|
154
|
+
|
|
155
|
+
for (let [cookieName, cookieValue] of amplitudeCookies.map((cookies) => cookies.split('='))) {
|
|
156
|
+
const [deviceId, userId] = cookieValue.split('.');
|
|
157
|
+
|
|
158
|
+
try {
|
|
159
|
+
const userSession = JSON.parse(decodeURIComponent(atob(cookieValue)))
|
|
160
|
+
if (userSession && userSession.userId) {
|
|
161
|
+
amplitude.setUserId(userSession.userId);
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
} catch {}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
} catch (e) {
|
|
168
|
+
console.error(e);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function getCookies(prefix) {
|
|
173
|
+
try {
|
|
174
|
+
const cookieArray = document.cookie.split(';').map((c) => c.trimStart());
|
|
175
|
+
let values = [];
|
|
176
|
+
for (let cookie of cookieArray) {
|
|
177
|
+
while (cookie.charAt(0) === ' ') {
|
|
178
|
+
cookie = cookie.substring(1);
|
|
179
|
+
}
|
|
180
|
+
if (cookie.startsWith(prefix)) {
|
|
181
|
+
values.push(cookie.substring(name.length));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return values;
|
|
185
|
+
} catch (e) {
|
|
186
|
+
return [];
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
191
|
+
checkAuthenticatedUser();
|
|
192
|
+
});
|
|
193
|
+
</script>
|
|
194
|
+
<script>
|
|
195
|
+
function academyClick(link) {
|
|
196
|
+
amplitude.track('Academy link', {
|
|
197
|
+
'destination': link,
|
|
198
|
+
'[Amplitude] Page URL': window.location.href
|
|
199
|
+
})
|
|
200
|
+
}
|
|
201
|
+
</script>
|
|
202
|
+
<!-- Preload consolidated glossary data -->
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
</head>
|
|
206
|
+
<body class="bg-gray-100 font-sans leading-normal text-gray-800 scroll-pt-24">
|
|
207
|
+
<div x-data="{ sidebarOpen: false }" class="container prose">
|
|
208
|
+
<div class="top-0 left-0 right-0 bg-white fixed z-10">
|
|
209
|
+
<div class="w-full pt-5 pl-5">
|
|
210
|
+
<div class="box-border">
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
<div class="box-border flex flex-row flex-nowrap items-center border-solid border-b border-black-200 h-12 px-4"
|
|
214
|
+
style="margin-left: -20px; margin-top: -20px;">
|
|
215
|
+
<div class="flex-auto mr-4"><a class="no-underline" href="/docs"><svg class="inline" xmlns="http://www.w3.org/2000/svg" width="102" height="22" viewBox="0 0 102 22" fill="none"><path d="M29.6006 4.30664L24.9824 15.8083H27.0328L27.9448 13.5064H32.8375L33.7338 15.8083H35.8324L31.222 4.30664H29.6006ZM28.6561 11.6698L30.3916 7.26636L32.1114 11.6698H28.6561Z" fill="#1E61F0"/><path d="M46.3273 7.61133C45.7724 7.61133 45.2618 7.7384 44.7934 7.99253C44.3251 8.24667 43.9778 8.59073 43.7515 9.02276C43.2724 8.08148 42.4381 7.61133 41.2486 7.61133C40.7695 7.61133 40.3081 7.71396 39.8643 7.9202C39.4206 8.12644 39.0615 8.45682 38.787 8.91036V7.77945H36.9541V15.8082H38.787V11.308C38.787 10.6668 38.9631 10.183 39.3153 9.85653C39.6676 9.53006 40.0916 9.36683 40.5865 9.36683C41.1355 9.36683 41.5684 9.53886 41.8862 9.8839C42.2039 10.2289 42.3623 10.703 42.3623 11.3071V15.8072H44.211V11.3071C44.211 10.6659 44.3861 10.182 44.7354 9.85555C45.0857 9.52908 45.5107 9.36585 46.0115 9.36585C46.5545 9.36585 46.9825 9.53788 47.2954 9.88292C47.6073 10.228 47.7637 10.702 47.7637 11.3061V15.8063H49.637V10.8975C49.637 9.89758 49.332 9.099 48.721 8.50276C48.11 7.90945 47.3121 7.61133 46.3273 7.61133Z" fill="#1E61F0"/><path d="M58.0913 8.17238C57.502 7.79802 56.8546 7.61133 56.1492 7.61133C55.5038 7.61133 54.9351 7.75013 54.4462 8.0287C53.9562 8.30727 53.5626 8.70509 53.2675 9.22412V7.78043H51.4346V18.6164H53.2675V14.3655C53.5636 14.8787 53.9562 15.2745 54.4462 15.5521C54.9361 15.8307 55.5038 15.9695 56.1492 15.9695C57.2206 15.9695 58.1297 15.5639 58.8784 14.7545C59.6261 13.9442 60 12.959 60 11.7987C60 11.0392 59.8288 10.3394 59.4874 9.6972C59.146 9.05502 58.6807 8.54675 58.0913 8.17238ZM57.4813 13.5181C57.0081 13.9911 56.4296 14.2277 55.7458 14.2277C55.0355 14.2277 54.4442 13.995 53.9739 13.5298C53.5026 13.0645 53.2675 12.4868 53.2675 11.7968C53.2675 11.0959 53.5026 10.5134 53.9739 10.0481C54.4452 9.58284 55.0355 9.35021 55.7458 9.35021C56.4296 9.35021 57.0081 9.58675 57.4813 10.0598C57.9556 10.5329 58.1917 11.1116 58.1917 11.7968C58.1927 12.4722 57.9556 13.045 57.4813 13.5181Z" fill="#1E61F0"/><path d="M63.287 4.30664H61.4541V15.8083H63.287V4.30664Z" fill="#1E61F0"/><path d="M66.9003 7.7793H65.0674V15.8081H66.9003V7.7793Z" fill="#1E61F0"/><path d="M65.996 4.04883C65.6733 4.04883 65.3959 4.16417 65.1647 4.39387C64.9335 4.62357 64.8174 4.89628 64.8174 5.21199C64.8174 5.53846 64.9325 5.81606 65.1647 6.04673C65.3959 6.27643 65.6733 6.39177 65.996 6.39177C66.3187 6.39177 66.5982 6.27643 66.8323 6.04673C67.0665 5.81703 67.1836 5.53846 67.1836 5.21199C67.1836 4.89628 67.0665 4.62357 66.8323 4.39387C66.5972 4.16417 66.3187 4.04883 65.996 4.04883Z" fill="#1E61F0"/><path d="M71.4538 5.62109H69.6051V7.77832H68.0713V9.51916H69.6051V12.7838C69.6051 13.7838 69.8737 14.554 70.4129 15.0936C70.951 15.6341 71.6751 15.9039 72.5842 15.9039C72.961 15.9039 73.2926 15.8716 73.5769 15.8071V14.1151C73.4107 14.1581 73.2109 14.1796 72.9797 14.1796C72.5055 14.1796 72.1336 14.0633 71.8621 13.8307C71.5905 13.5981 71.4538 13.2384 71.4538 12.7516V9.51916H73.5769V7.77832H71.4538V5.62109Z" fill="#1E61F0"/><path d="M80.6484 12.127C80.6484 12.7574 80.4673 13.2628 80.1033 13.643C79.7403 14.0223 79.2602 14.2129 78.662 14.2129C78.0697 14.2129 77.5935 14.0232 77.2324 13.643C76.8714 13.2638 76.6913 12.7584 76.6913 12.127V7.7793H74.8584V12.343C74.8584 13.471 75.1575 14.3575 75.7547 15.0017C76.3519 15.6458 77.1724 15.9684 78.2173 15.9684C78.7505 15.9684 79.2238 15.8452 79.638 15.5989C80.0522 15.3535 80.3886 15.0007 80.6474 14.5403V15.8081H82.496V7.7793H80.6474V12.127H80.6484Z" fill="#1E61F0"/><path d="M90.6406 9.19095C90.3445 8.68268 89.9549 8.29268 89.4699 8.01997C88.9858 7.74726 88.423 7.61139 87.7826 7.61139C87.0771 7.61139 86.4288 7.79613 85.8375 8.16463C85.2452 8.53313 84.7769 9.03847 84.4325 9.68065C84.0882 10.3228 83.916 11.0227 83.916 11.7822C83.916 12.5416 84.0882 13.2435 84.4325 13.8876C84.7769 14.5317 85.2452 15.04 85.8375 15.4114C86.4298 15.7829 87.0781 15.9686 87.7826 15.9686C88.423 15.9686 88.9858 15.8337 89.4699 15.5629C89.9539 15.2932 90.3445 14.9041 90.6406 14.3959V15.8073H92.4982V4.30664H90.6406V9.19095ZM89.9352 13.5269C89.464 13.9951 88.8786 14.2287 88.1791 14.2287C87.4953 14.2287 86.9168 13.9922 86.4435 13.5191C85.9693 13.046 85.7332 12.4674 85.7332 11.7822C85.7332 11.1087 85.9703 10.5349 86.4435 10.0619C86.9168 9.58877 87.4953 9.35223 88.1791 9.35223C88.8786 9.35223 89.464 9.58486 89.9352 10.0501C90.4065 10.5154 90.6416 11.0931 90.6416 11.7831C90.6406 12.4771 90.4055 13.0587 89.9352 13.5269Z" fill="#1E61F0"/><path d="M102 11.6218C102 10.8574 101.822 10.1664 101.466 9.54863C101.111 8.93088 100.633 8.45389 100.033 8.11667C99.4327 7.77945 98.7716 7.61133 98.0504 7.61133C97.286 7.61133 96.5854 7.79313 95.9469 8.15674C95.3094 8.52036 94.8057 9.01885 94.4367 9.65224C94.0678 10.2856 93.8838 10.9855 93.8838 11.7498C93.8838 12.5357 94.0678 13.2522 94.4367 13.8993C94.8057 14.5463 95.3104 15.0526 95.9509 15.4192C96.5914 15.7857 97.3017 15.9685 98.0829 15.9685C99.0785 15.9685 99.9256 15.7114 100.626 15.1983C101.326 14.6851 101.751 14.0058 101.902 13.1613H100.054C99.9729 13.5034 99.7535 13.782 99.3953 13.995C99.0372 14.2091 98.6112 14.3156 98.1153 14.3156C97.4749 14.3156 96.9505 14.1446 96.5412 13.8025C96.1319 13.4604 95.8682 12.9902 95.7502 12.3911H101.95C101.984 12.2474 102 11.9903 102 11.6218ZM95.7993 10.8271C95.9341 10.3345 96.189 9.95232 96.5668 9.67961C96.9436 9.4069 97.403 9.27006 97.9471 9.27006C98.4961 9.27006 98.9546 9.41374 99.3235 9.69916C99.6925 9.98555 99.9168 10.3609 99.9975 10.8262H95.7993V10.8271Z" fill="#1E61F0"/><path d="M9.3659 5.25304C9.30588 5.1768 9.24193 5.13477 9.16519 5.13477C9.1101 5.13868 9.05894 5.15627 9.01171 5.18559C8.44403 5.62642 7.6717 7.49628 7.03613 9.96336L7.59988 9.96727C8.70967 9.97998 9.85684 9.99269 10.9883 10.0093C10.6892 8.88133 10.4078 7.91463 10.1481 7.13072C9.76731 5.99101 9.51151 5.47785 9.3659 5.25304Z" fill="#1E61F0"/><path d="M10.6256 0.5C4.75792 0.5 0 5.22694 0 11.0564C0 16.886 4.75792 21.6129 10.6256 21.6129C16.4933 21.6129 21.2512 16.886 21.2512 11.0564C21.2512 5.22694 16.4933 0.5 10.6256 0.5ZM18.4689 10.9294C18.4394 11.0477 18.3666 11.163 18.2643 11.247C18.2515 11.2558 18.2387 11.2637 18.2259 11.2725L18.2131 11.2813L18.1875 11.2979L18.1659 11.3106C18.0852 11.3526 17.9947 11.3741 17.9012 11.3741H12.8659C12.9042 11.5393 12.9514 11.7299 12.9977 11.9342C13.2751 13.1169 14.0052 16.2623 14.7853 16.2623H14.8021H14.8109H14.8277C15.4337 16.2623 15.7456 15.3895 16.4284 13.4766L16.4372 13.4551C16.5484 13.1501 16.6724 12.8022 16.8042 12.4337L16.8386 12.3408C16.8898 12.2177 17.0305 12.1541 17.1545 12.2049C17.244 12.2392 17.3079 12.3281 17.3079 12.4259C17.3079 12.4513 17.304 12.4728 17.2991 12.4933L17.2696 12.5862C17.1968 12.8149 17.125 13.1247 17.0344 13.4854C16.6291 15.1559 16.0142 17.6787 14.444 17.6787H14.4312C13.4158 17.6699 12.8098 16.059 12.549 15.368C12.063 14.0787 11.696 12.7093 11.3419 11.379H6.71677L5.75653 14.4355L5.74374 14.4228C5.59911 14.6476 5.29608 14.715 5.0698 14.5714C4.92911 14.4824 4.84351 14.3299 4.84351 14.1647V14.1481L4.90353 13.8001C5.03536 13.0162 5.1977 12.1971 5.37676 11.3751H3.41397L3.40512 11.3663C3.0037 11.3067 2.72626 10.9343 2.78627 10.5355C2.8335 10.2256 3.07257 9.98028 3.37954 9.92456C3.45628 9.91576 3.53302 9.91185 3.60976 9.91576H3.70322C4.32207 9.92456 4.97928 9.93727 5.70438 9.94509C6.72464 5.82416 7.90625 3.72949 9.22067 3.72558C10.6286 3.72558 11.6744 6.90913 12.5107 10.0252L12.5146 10.0379C14.2305 10.0722 16.0653 10.123 17.8441 10.2501L17.9209 10.2588C17.9504 10.2588 17.976 10.2628 18.0065 10.2676H18.0153L18.0242 10.2716H18.0281C18.3321 10.3312 18.5328 10.6283 18.4689 10.9294Z" fill="#1E61F0"/></svg> <span class="hidden md:inline text-xs uppercase text-black-600 ml-2">documentation</span></a></div>
|
|
216
|
+
<div id="algolia-search-header"></div>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
|
|
222
|
+
</div>
|
|
223
|
+
<div class="top-12 left-0 right-0 fixed bg-white z-10">
|
|
224
|
+
<div class="w-full overflow-scroll md:overflow-auto pt-5 pl-5">
|
|
225
|
+
<div class="box-border">
|
|
226
|
+
|
|
227
|
+
<div class="box-border flex flex-row flex-nowrap items-center border-solid border-b border-black-200 h-12 px-4 justify-start"
|
|
228
|
+
style="margin-left: -20px; margin-top: -20px;">
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative top-nav-active"><a class="no-underline font-normal text-amp-blue-500 font-medium " href="/docs/get-started">Get Started</a></div>
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/data">Data</a></div>
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/analytics">Analytics</a></div>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/amplitude-ai">Amplitude AI</a></div>
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/session-replay">Session Replay</a></div>
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/guides-and-surveys">Guides and Surveys</a></div>
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/assistant">AI Assistant</a></div>
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/experiment-home">Experiment</a></div>
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/admin">Admin</a></div>
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
<div class="flex-initial mr-4 text-sm p-2 inline w-max" x-data="{ open: false }"><button
|
|
268
|
+
@click="open = !open" class="font-normal -mb-[11px] text-[#111827]">Developers <svg class="inline fill-[#111827]" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><g id="icon-chevron-down"><path id="Vector" d="M10.25 10.6338L13.8837 7L15 8.11625L10.25 12.8663L5.5 8.11625L6.61625 7L10.25 10.6338Z" fill="#5A5E68"/></g></svg></button>
|
|
269
|
+
<div x-cloak x-show="open" x-transition @click.outside="open = false" class="mt-4 py-2 right-4 sm:right-auto absolute border border-amp-gray-100 rounded flex flex-col shadow-lg top-4 bg-white w-48 p-4 font-normal z-20">
|
|
270
|
+
|
|
271
|
+
<a class="no-underline pl-4 py-2 font-light hover:bg-amp-blue-950 hover:rounded" href="/docs/sdks">SDKs</a>
|
|
272
|
+
|
|
273
|
+
<a class="no-underline pl-4 py-2 font-light hover:bg-amp-blue-950 hover:rounded" href="/docs/apis">APIs</a>
|
|
274
|
+
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/partners">Partners</a></div>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
<div class="flex-initial mr-4 text-sm p-2 transition hover:bg-amp-blue-950 hover:rounded hover:p-2 relative"><a class="no-underline font-normal " href="/docs/faq">FAQ</a></div>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
</div>
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
</div>
|
|
294
|
+
|
|
295
|
+
<div
|
|
296
|
+
class="w-64 top-24 bg-white bottom-0 border-solid border-r border-black-200 -left-60 lg:left-0 lg:translate-x-0 lg:block z-10 fixed transition shadow overflow-visible lg:overflow-auto lg:overscroll-contain" :class="{ 'translate-x-[240px]': sidebarOpen }">
|
|
297
|
+
<button @click="sidebarOpen = !sidebarOpen" class="absolute lg:hidden left-0 z-50 w-4 translate-x-[245px] translate-y-8" :class="{ 'rotate-180': sidebarOpen, 'translate-x-[250px]' : sidebarOpen }"><svg xmlns="http://www.w3.org/2000/svg" width="21" height="24" viewBox="0 0 21 24" fill="none"><rect x="0.5" y="0.5" width="20" height="23" rx="3.5" fill="white"/><rect x="0.5" y="0.5" width="20" height="23" rx="3.5" stroke="#DEDFE2"/><g clip-path="url(#clip0_671_1270)"><path d="M11.007 11.8L8.09998 8.893L8.99298 8L12.793 11.8L8.99298 15.6L8.09998 14.707L11.007 11.8Z" fill="#1E2024"/></g><defs><clipPath id="clip0_671_1270"><rect width="16" height="16" fill="white" transform="translate(2.5 4)"/></clipPath></defs></svg></button>
|
|
298
|
+
<div class="h-full overflow-scroll overscroll-contain">
|
|
299
|
+
|
|
300
|
+
<amp-side-nav current-uri="/docs/get-started/amplitude-quickstart" nav-title="get_started">
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
<amp-nav-item
|
|
306
|
+
title="⚡️Amplitude Quickstart"
|
|
307
|
+
url="/docs/get-started/amplitude-quickstart"
|
|
308
|
+
slug="amplitude-quickstart"
|
|
309
|
+
level="1"
|
|
310
|
+
is-current>
|
|
311
|
+
</amp-nav-item>
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
<amp-nav-item
|
|
319
|
+
title="Set Up Amplitude"
|
|
320
|
+
slug="set-up-amplitude"
|
|
321
|
+
has-children
|
|
322
|
+
level="1">
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
<amp-nav-item
|
|
329
|
+
title="What is Amplitude?"
|
|
330
|
+
url="/docs/get-started/what-is-amplitude"
|
|
331
|
+
slug="what-is-amplitude"
|
|
332
|
+
parent-slug="set-up-amplitude"
|
|
333
|
+
level="2"
|
|
334
|
+
>
|
|
335
|
+
</amp-nav-item>
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
<amp-nav-item
|
|
344
|
+
title="Create a new account"
|
|
345
|
+
url="/docs/get-started/create-a-new-account"
|
|
346
|
+
slug="create-a-new-account"
|
|
347
|
+
parent-slug="set-up-amplitude"
|
|
348
|
+
level="2"
|
|
349
|
+
>
|
|
350
|
+
</amp-nav-item>
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
<amp-nav-item
|
|
359
|
+
title="Create a project in Amplitude"
|
|
360
|
+
url="/docs/get-started/create-project"
|
|
361
|
+
slug="create-a-project-in-amplitude"
|
|
362
|
+
parent-slug="set-up-amplitude"
|
|
363
|
+
level="2"
|
|
364
|
+
>
|
|
365
|
+
</amp-nav-item>
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
<amp-nav-item
|
|
374
|
+
title="Plan your implementation"
|
|
375
|
+
url="/docs/get-started/plan-your-implementation"
|
|
376
|
+
slug="plan-your-implementation"
|
|
377
|
+
parent-slug="set-up-amplitude"
|
|
378
|
+
level="2"
|
|
379
|
+
>
|
|
380
|
+
</amp-nav-item>
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
<amp-nav-item
|
|
389
|
+
title="Instrumentation pre-work"
|
|
390
|
+
url="/docs/get-started/instrumentation-prework"
|
|
391
|
+
slug="instrumentation-pre-work"
|
|
392
|
+
parent-slug="set-up-amplitude"
|
|
393
|
+
level="2"
|
|
394
|
+
>
|
|
395
|
+
</amp-nav-item>
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
</amp-nav-item>
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
<amp-nav-item
|
|
406
|
+
title="Instrument Amplitude"
|
|
407
|
+
slug="instrument-amplitude"
|
|
408
|
+
has-children
|
|
409
|
+
level="1">
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
<amp-nav-item
|
|
416
|
+
title="Get Data into Amplitude"
|
|
417
|
+
slug="get-data-into-amplitude"
|
|
418
|
+
parent-slug="instrument-amplitude"
|
|
419
|
+
has-children
|
|
420
|
+
level="2">
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
<amp-nav-item
|
|
424
|
+
title="SDK Catalog"
|
|
425
|
+
url="/docs/sdks"
|
|
426
|
+
slug="sdk-catalog"
|
|
427
|
+
parent-slug="get-data-into-amplitude"
|
|
428
|
+
|
|
429
|
+
level="3"
|
|
430
|
+
>
|
|
431
|
+
</amp-nav-item>
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
<amp-nav-item
|
|
435
|
+
title="Source Catalog"
|
|
436
|
+
url="/docs/data/source-catalog"
|
|
437
|
+
slug="source-catalog"
|
|
438
|
+
parent-slug="get-data-into-amplitude"
|
|
439
|
+
|
|
440
|
+
level="3"
|
|
441
|
+
>
|
|
442
|
+
</amp-nav-item>
|
|
443
|
+
|
|
444
|
+
</amp-nav-item>
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
<amp-nav-item
|
|
453
|
+
title="Use Autocapture to get fast insights"
|
|
454
|
+
url="/docs/get-started/autocapture"
|
|
455
|
+
slug="use-autocapture-to-get-fast-insights"
|
|
456
|
+
parent-slug="instrument-amplitude"
|
|
457
|
+
level="2"
|
|
458
|
+
>
|
|
459
|
+
</amp-nav-item>
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
<amp-nav-item
|
|
468
|
+
title="What events will you need?"
|
|
469
|
+
url="/docs/get-started/select-events"
|
|
470
|
+
slug="what-events-will-you-need"
|
|
471
|
+
parent-slug="instrument-amplitude"
|
|
472
|
+
level="2"
|
|
473
|
+
>
|
|
474
|
+
</amp-nav-item>
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
<amp-nav-item
|
|
483
|
+
title="Track progress as you instrument Amplitude"
|
|
484
|
+
url="/docs/get-started/track-your-progress"
|
|
485
|
+
slug="track-progress-as-you-instrument-amplitude"
|
|
486
|
+
parent-slug="instrument-amplitude"
|
|
487
|
+
level="2"
|
|
488
|
+
>
|
|
489
|
+
</amp-nav-item>
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
<amp-nav-item
|
|
498
|
+
title="Questions your engineer might ask you"
|
|
499
|
+
url="/docs/get-started/engineer-questions"
|
|
500
|
+
slug="questions-your-engineer-might-ask-you"
|
|
501
|
+
parent-slug="instrument-amplitude"
|
|
502
|
+
level="2"
|
|
503
|
+
>
|
|
504
|
+
</amp-nav-item>
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
<amp-nav-item
|
|
513
|
+
title="Cross-platform instrumentation vs. separate platform instrumentation"
|
|
514
|
+
url="/docs/get-started/cross-platform-vs-separate-platform"
|
|
515
|
+
slug="cross-platform-instrumentation-vs-separate-platform-instrumentation"
|
|
516
|
+
parent-slug="instrument-amplitude"
|
|
517
|
+
level="2"
|
|
518
|
+
>
|
|
519
|
+
</amp-nav-item>
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
</amp-nav-item>
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
<amp-nav-item
|
|
530
|
+
title="Build a Chart"
|
|
531
|
+
slug="build-a-chart"
|
|
532
|
+
has-children
|
|
533
|
+
level="1">
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
<amp-nav-item
|
|
540
|
+
title="The Amplitude Home page"
|
|
541
|
+
url="/docs/get-started/amplitude-home-page"
|
|
542
|
+
slug="the-amplitude-home-page"
|
|
543
|
+
parent-slug="build-a-chart"
|
|
544
|
+
level="2"
|
|
545
|
+
>
|
|
546
|
+
</amp-nav-item>
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
<amp-nav-item
|
|
555
|
+
title="Create a chart"
|
|
556
|
+
url="/docs/get-started/create-a-chart"
|
|
557
|
+
slug="create-a-chart"
|
|
558
|
+
parent-slug="build-a-chart"
|
|
559
|
+
level="2"
|
|
560
|
+
>
|
|
561
|
+
</amp-nav-item>
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
<amp-nav-item
|
|
570
|
+
title="Spaces: Keep your work organized"
|
|
571
|
+
url="/docs/get-started/spaces"
|
|
572
|
+
slug="spaces-keep-your-work-organized"
|
|
573
|
+
parent-slug="build-a-chart"
|
|
574
|
+
level="2"
|
|
575
|
+
>
|
|
576
|
+
</amp-nav-item>
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
<amp-nav-item
|
|
585
|
+
title="Start from a template"
|
|
586
|
+
url="/docs/get-started/start-from-template"
|
|
587
|
+
slug="start-from-a-template"
|
|
588
|
+
parent-slug="build-a-chart"
|
|
589
|
+
level="2"
|
|
590
|
+
>
|
|
591
|
+
</amp-nav-item>
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
</amp-nav-item>
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
<amp-nav-item
|
|
602
|
+
title="Get Value from Amplitude"
|
|
603
|
+
slug="get-value-from-amplitude"
|
|
604
|
+
has-children
|
|
605
|
+
level="1">
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
<amp-nav-item
|
|
612
|
+
title="Understand your users' activity"
|
|
613
|
+
url="/docs/get-started/understand-user-activity"
|
|
614
|
+
slug="understand-your-users-activity"
|
|
615
|
+
parent-slug="get-value-from-amplitude"
|
|
616
|
+
level="2"
|
|
617
|
+
>
|
|
618
|
+
</amp-nav-item>
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
<amp-nav-item
|
|
627
|
+
title="Analyze your acquisition channels"
|
|
628
|
+
url="/docs/get-started/analyze-acquisition-channels"
|
|
629
|
+
slug="analyze-your-acquisition-channels"
|
|
630
|
+
parent-slug="get-value-from-amplitude"
|
|
631
|
+
level="2"
|
|
632
|
+
>
|
|
633
|
+
</amp-nav-item>
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
<amp-nav-item
|
|
642
|
+
title="Analyze the adoption of a feature"
|
|
643
|
+
url="/docs/get-started/analyze-feature-adoption"
|
|
644
|
+
slug="analyze-the-adoption-of-a-feature"
|
|
645
|
+
parent-slug="get-value-from-amplitude"
|
|
646
|
+
level="2"
|
|
647
|
+
>
|
|
648
|
+
</amp-nav-item>
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
<amp-nav-item
|
|
657
|
+
title="Understand the conversion rate of an important flow"
|
|
658
|
+
url="/docs/get-started/understand-conversion-rate"
|
|
659
|
+
slug="understand-the-conversion-rate-of-an-important-flow"
|
|
660
|
+
parent-slug="get-value-from-amplitude"
|
|
661
|
+
level="2"
|
|
662
|
+
>
|
|
663
|
+
</amp-nav-item>
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
<amp-nav-item
|
|
672
|
+
title="How Amplitude identifies your users"
|
|
673
|
+
url="/docs/get-started/identify-users"
|
|
674
|
+
slug="how-amplitude-identifies-your-users"
|
|
675
|
+
parent-slug="get-value-from-amplitude"
|
|
676
|
+
level="2"
|
|
677
|
+
>
|
|
678
|
+
</amp-nav-item>
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
</amp-nav-item>
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
<amp-nav-item
|
|
689
|
+
title="Additional Reading"
|
|
690
|
+
slug="additional-reading"
|
|
691
|
+
has-children
|
|
692
|
+
level="1">
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
<amp-nav-item
|
|
699
|
+
title="Helpful definitions"
|
|
700
|
+
url="/docs/get-started/helpful-definitions"
|
|
701
|
+
slug="helpful-definitions"
|
|
702
|
+
parent-slug="additional-reading"
|
|
703
|
+
level="2"
|
|
704
|
+
>
|
|
705
|
+
</amp-nav-item>
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
<amp-nav-item
|
|
714
|
+
title="User property definitions"
|
|
715
|
+
url="/docs/get-started/user-property-definitions"
|
|
716
|
+
slug="user-property-definitions"
|
|
717
|
+
parent-slug="additional-reading"
|
|
718
|
+
level="2"
|
|
719
|
+
>
|
|
720
|
+
</amp-nav-item>
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
<amp-nav-item
|
|
729
|
+
title="Event property definitions"
|
|
730
|
+
url="/docs/get-started/event-property-definitions"
|
|
731
|
+
slug="event-property-definitions"
|
|
732
|
+
parent-slug="additional-reading"
|
|
733
|
+
level="2"
|
|
734
|
+
>
|
|
735
|
+
</amp-nav-item>
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
<amp-nav-item
|
|
744
|
+
title="Browser compatibility for Amplitude's product website"
|
|
745
|
+
url="/docs/get-started/browser-compatibility"
|
|
746
|
+
slug="browser-compatibility-for-amplitudes-product-website"
|
|
747
|
+
parent-slug="additional-reading"
|
|
748
|
+
level="2"
|
|
749
|
+
>
|
|
750
|
+
</amp-nav-item>
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
<amp-nav-item
|
|
759
|
+
title="How to organize your team for implementation"
|
|
760
|
+
url="/docs/get-started/implementationn-team-organization"
|
|
761
|
+
slug="how-to-organize-your-team-for-implementation"
|
|
762
|
+
parent-slug="additional-reading"
|
|
763
|
+
level="2"
|
|
764
|
+
>
|
|
765
|
+
</amp-nav-item>
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
<amp-nav-item
|
|
774
|
+
title="Optimize your Amplitude workflow to improve user engagement"
|
|
775
|
+
url="/docs/get-started/optimize-amplitude-workflow"
|
|
776
|
+
slug="optimize-your-amplitude-workflow-to-improve-user-engagement"
|
|
777
|
+
parent-slug="additional-reading"
|
|
778
|
+
level="2"
|
|
779
|
+
>
|
|
780
|
+
</amp-nav-item>
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
<amp-nav-item
|
|
789
|
+
title="Analyze A/B test results in Amplitude"
|
|
790
|
+
url="/docs/get-started/analyze-a-b-test-results"
|
|
791
|
+
slug="analyze-ab-test-results-in-amplitude"
|
|
792
|
+
parent-slug="additional-reading"
|
|
793
|
+
level="2"
|
|
794
|
+
>
|
|
795
|
+
</amp-nav-item>
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
</amp-nav-item>
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
<amp-nav-item
|
|
806
|
+
title="Migrate to Amplitude"
|
|
807
|
+
slug="migrate-to-amplitude"
|
|
808
|
+
has-children
|
|
809
|
+
level="1">
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
<amp-nav-item
|
|
816
|
+
title="Migrate From Adobe"
|
|
817
|
+
url="/docs/migration/migrate-from-adobe"
|
|
818
|
+
slug="migrate-from-adobe"
|
|
819
|
+
parent-slug="migrate-to-amplitude"
|
|
820
|
+
level="2"
|
|
821
|
+
>
|
|
822
|
+
</amp-nav-item>
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
<amp-nav-item
|
|
831
|
+
title="Migrate From Mixpanel"
|
|
832
|
+
url="/docs/migration/migrate-from-mixpanel"
|
|
833
|
+
slug="migrate-from-mixpanel"
|
|
834
|
+
parent-slug="migrate-to-amplitude"
|
|
835
|
+
level="2"
|
|
836
|
+
>
|
|
837
|
+
</amp-nav-item>
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
<amp-nav-item
|
|
846
|
+
title="Migrate From mParticle"
|
|
847
|
+
url="/docs/migration/migrate-from-mparticle"
|
|
848
|
+
slug="migrate-from-mparticle"
|
|
849
|
+
parent-slug="migrate-to-amplitude"
|
|
850
|
+
level="2"
|
|
851
|
+
>
|
|
852
|
+
</amp-nav-item>
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
<amp-nav-item
|
|
861
|
+
title="Migrate From Segment"
|
|
862
|
+
url="/docs/migration/migrate-from-segment"
|
|
863
|
+
slug="migrate-from-segment"
|
|
864
|
+
parent-slug="migrate-to-amplitude"
|
|
865
|
+
level="2"
|
|
866
|
+
>
|
|
867
|
+
</amp-nav-item>
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
<amp-nav-item
|
|
876
|
+
title="Migrate from Google Analytics"
|
|
877
|
+
url="/docs/migration/migrate-from-google-analytics"
|
|
878
|
+
slug="migrate-from-google-analytics"
|
|
879
|
+
parent-slug="migrate-to-amplitude"
|
|
880
|
+
level="2"
|
|
881
|
+
>
|
|
882
|
+
</amp-nav-item>
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
</amp-nav-item>
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
</amp-side-nav>
|
|
890
|
+
|
|
891
|
+
</div>
|
|
892
|
+
|
|
893
|
+
</div>
|
|
894
|
+
<div class="absolute top-24 left-0 lg:left-64 bottom-0 right-0 z-0 transition">
|
|
895
|
+
<div class="max-w-screen-xl pt-8 mx-auto">
|
|
896
|
+
<section class="w-full flex flex-col items-center">
|
|
897
|
+
<div class="flex flex-row flex-nowrap w-full text-sm pl-6 lg:pl-8 text-gray-400">
|
|
898
|
+
|
|
899
|
+
<div class="mr-2 text-s text-gray-500 "><a class=""
|
|
900
|
+
href="/docs/get-started">Get Started</a></div>
|
|
901
|
+
<span class="mr-2">/</span><div class="mr-2 text-s text-gray-500 "><a class="font-semibold"
|
|
902
|
+
href="/docs/get-started/amplitude-quickstart">Amplitude Quickstart</a></div>
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
</div>
|
|
906
|
+
<div class="flex flex-row w-full pt-8 px-6 lg:p-8">
|
|
907
|
+
<div class="copy w-full">
|
|
908
|
+
<div class="flex flex-row items-start justify-between">
|
|
909
|
+
<h1 class="font-[Gellix] font-normal mb-5 max-w-3xl">Amplitude Quickstart</h1>
|
|
910
|
+
</div>
|
|
911
|
+
<div
|
|
912
|
+
class="prose prose-a:text-amp-blue prose-ol:list-decimal prose-ol:list-outside prose-pre:bg-[#fafafa] max-w-prose" data-headings-anchors data-math-root>
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
<p>Get started with the full Amplitude platform in minutes. Which features drive retention? Where do users drop off? What's working and what's not? Traditional analytics implementations can take weeks or months. Amplitude's modern approach gets you from zero to insights in minutes, not months.</p>
|
|
922
|
+
<p>Use this kit to get Autocapture, Session Replay, Web Experiment, and Guides & Surveys.</p>
|
|
923
|
+
<h2 id="speed-run-your-installation-browser-sdk-and-autocapture">Speed run your installation: Browser SDK and Autocapture<a href="#speed-run-your-installation-browser-sdk-and-autocapture" class="heading-permalink" aria-hidden="true" title="Permalink"></a></h2>
|
|
924
|
+
<p>Quickly get data flowing into Amplitude with Browser SDK and <a href="/docs/data/autocapture">Autocapture</a>.</p>
|
|
925
|
+
<h3 id="install-amplitude">Install Amplitude<a href="#install-amplitude" class="heading-permalink" aria-hidden="true" title="Permalink"></a></h3>
|
|
926
|
+
<p>Need an API key? Create a <a href="https://app.amplitude.com/signup">free Amplitude account</a> to get started.</p>
|
|
927
|
+
<p>When you create your Amplitude account, Amplitude provides two ways to install:</p>
|
|
928
|
+
<ul>
|
|
929
|
+
<li>A prompt which you can pass to your agentic AI tool of choice.</li>
|
|
930
|
+
<li>A pre-configured snippet, which you can add inside the <code><head></code> tag of every page you want to track.</li>
|
|
931
|
+
</ul>
|
|
932
|
+
<p>
|
|
933
|
+
<div class="hint tip"><h2 class="hint-title">Get your data flowing!</h2><div class="hint-content"><div class="quickstart-configurator">
|
|
934
|
+
|
|
935
|
+
<p class="text-sm text-amp-gray-600 my-0">Customize your installation by selecting the features and data region for your project.</p>
|
|
936
|
+
|
|
937
|
+
<div class="flex flex-col sm:flex-row sm:items-center gap-4 sm:gap-8 py-3">
|
|
938
|
+
|
|
939
|
+
<div class="flex items-center gap-6">
|
|
940
|
+
<label class="flex items-center gap-2 cursor-pointer group">
|
|
941
|
+
<input type="checkbox" id="quickstart-autocapture" checked class="cursor-pointer w-4 h-4 rounded border-amp-gray-300 text-amp-blue focus:ring-amp-blue-500">
|
|
942
|
+
<span class="text-sm text-amp-gray-700 group-hover:text-amp-gray-900">Autocapture</span>
|
|
943
|
+
</label>
|
|
944
|
+
<label class="flex items-center gap-2 cursor-pointer group">
|
|
945
|
+
<input type="checkbox" id="quickstart-session-replay" checked class="cursor-pointer w-4 h-4 rounded border-amp-gray-300 text-amp-blue focus:ring-amp-blue-500">
|
|
946
|
+
<span class="text-sm text-amp-gray-700 group-hover:text-amp-gray-900">Session Replay</span>
|
|
947
|
+
</label>
|
|
948
|
+
</div>
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
<div class="hidden sm:block w-px h-6 bg-amp-gray-200"></div>
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
<div class="flex items-center gap-3">
|
|
955
|
+
<span class="text-sm text-amp-gray-700">Data region</span>
|
|
956
|
+
<div class="flex rounded-md overflow-hidden border border-amp-gray-200 shadow-sm">
|
|
957
|
+
<button type="button" id="quickstart-region-us" class="px-3 py-1.5 text-sm font-semibold bg-amp-blue-950 text-amp-blue-500 transition-colors">US</button>
|
|
958
|
+
<button type="button" id="quickstart-region-eu" class="px-3 py-1.5 text-sm font-medium bg-white text-amp-gray-300 hover:text-amp-gray-500 hover:bg-amp-gray-50 transition-colors">EU</button>
|
|
959
|
+
</div>
|
|
960
|
+
</div>
|
|
961
|
+
</div>
|
|
962
|
+
</div>
|
|
963
|
+
|
|
964
|
+
<style>
|
|
965
|
+
/* Fix API key button positioning in quickstart component - keep button visible during horizontal scroll */
|
|
966
|
+
pre:has(#quickstart-ai-prompt) .api-key-manual-button,
|
|
967
|
+
pre:has(#quickstart-snippet) .api-key-manual-button {
|
|
968
|
+
position: absolute !important;
|
|
969
|
+
right: 3rem !important;
|
|
970
|
+
will-change: transform !important;
|
|
971
|
+
transition: none !important;
|
|
972
|
+
}
|
|
973
|
+
</style>
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
<div class="border border-amp-gray-200 rounded" x-data="{ activeTab: 'AI Prompt' }">
|
|
977
|
+
<div class="flex space-x-1 border-amp-gray-200 border-b border-solid">
|
|
978
|
+
<button x-on:click="activeTab = 'AI Prompt'" :class="{'border-b-2 border-amp-blue-500 text-amp-blue-500 -mb-[2px]' : activeTab === 'AI Prompt', 'bg-gray-200': activeTab !== 'AI Prompt'}" class="px-4 py-2">AI Prompt</button><button x-on:click="activeTab = 'Snippet'" :class="{'border-b-2 border-amp-blue-500 text-amp-blue-500 -mb-[2px]' : activeTab === 'Snippet', 'bg-gray-200': activeTab !== 'Snippet'}" class="px-4 py-2">Snippet</button></div>
|
|
979
|
+
<div x-cloak x-show="activeTab === 'AI Prompt'" class="p-4 tab"><p>Paste the prompt below into your terminal or AI tools like Copilot, Cursor, Replit or Bolt.</p>
|
|
980
|
+
<p>Click the Key icon to insert your Amplitude API key.</p>
|
|
981
|
+
<pre><code class="language-plaintext" id="quickstart-ai-prompt">__AI_PROMPT_PLACEHOLDER__</code></pre>
|
|
982
|
+
</div>
|
|
983
|
+
<div x-cloak x-show="activeTab === 'Snippet'" class="p-4 tab"><p>Paste this snippet into the <code><head></code>of your site to track engagement.</p>
|
|
984
|
+
<p>Click the Key icon to insert your Amplitude API key.</p>
|
|
985
|
+
<pre><code class="language-html" id="quickstart-snippet"><script src="https://cdn.amplitude.com/script/AMPLITUDE_API_KEY.js"></script><script>window.amplitude.add(window.sessionReplay.plugin({sampleRate: 1}));window.amplitude.init('AMPLITUDE_API_KEY', {"fetchRemoteConfig":true,"autocapture":{"attribution":true,"fileDownloads":true,"formInteractions":true,"pageViews":true,"sessions":true,"elementInteractions":true,"networkTracking":true,"webVitals":true,"frustrationInteractions":true}});</script></code></pre>
|
|
986
|
+
</div>
|
|
987
|
+
</div>
|
|
988
|
+
|
|
989
|
+
<script>
|
|
990
|
+
(function() {
|
|
991
|
+
const autocaptureCheckbox = document.getElementById('quickstart-autocapture');
|
|
992
|
+
const sessionReplayCheckbox = document.getElementById('quickstart-session-replay');
|
|
993
|
+
const regionUsButton = document.getElementById('quickstart-region-us');
|
|
994
|
+
const regionEuButton = document.getElementById('quickstart-region-eu');
|
|
995
|
+
const aiPromptCode = document.getElementById('quickstart-ai-prompt');
|
|
996
|
+
const snippetCode = document.getElementById('quickstart-snippet');
|
|
997
|
+
|
|
998
|
+
// Configuration - matching production code
|
|
999
|
+
const isUnifiedSdkEnabled = true;
|
|
1000
|
+
let isEUDC = false;
|
|
1001
|
+
|
|
1002
|
+
function makeAiPrompt({ isAutocaptureSelected, isSessionReplaySelected, apiKey }) {
|
|
1003
|
+
const autoCapture = { autocapture: isAutocaptureSelected };
|
|
1004
|
+
const serverZone = isEUDC ? { serverZone: 'EU' } : {};
|
|
1005
|
+
const analyticsInitOptions = JSON.stringify({
|
|
1006
|
+
...autoCapture,
|
|
1007
|
+
...serverZone,
|
|
1008
|
+
});
|
|
1009
|
+
const unifiedInitOptions = JSON.stringify({
|
|
1010
|
+
...serverZone,
|
|
1011
|
+
analytics: {
|
|
1012
|
+
...autoCapture,
|
|
1013
|
+
},
|
|
1014
|
+
...(isSessionReplaySelected ? { sessionReplay: { sampleRate: 1 } } : {}),
|
|
1015
|
+
});
|
|
1016
|
+
|
|
1017
|
+
const includeSessionReplaySpecificSteps = !isUnifiedSdkEnabled && isSessionReplaySelected;
|
|
1018
|
+
|
|
1019
|
+
const documentationSteps = [
|
|
1020
|
+
`Install the Amplitude Analytics Browser SDK with \`npm install @amplitude/unified\` or \`yarn add @amplitude/unified\``,
|
|
1021
|
+
...(includeSessionReplaySpecificSteps
|
|
1022
|
+
? ['Install the Amplitude Session Replay SDK with `npm install @amplitude/plugin-session-replay-browser --save` or `yarn add @amplitude/plugin-session-replay-browser`']
|
|
1023
|
+
: []),
|
|
1024
|
+
`Import amplitude into the root of the client application with \`import * as amplitude from '@amplitude/unified';\``,
|
|
1025
|
+
...(includeSessionReplaySpecificSteps
|
|
1026
|
+
? [
|
|
1027
|
+
"Import sessionReplayPlugin into the root of the client application with `import { sessionReplayPlugin } from '@amplitude/plugin-session-replay-browser';`",
|
|
1028
|
+
'Add Session Replay to the Amplitude instance with `amplitude.add(sessionReplayPlugin({sampleRate: 1}));`',
|
|
1029
|
+
]
|
|
1030
|
+
: []),
|
|
1031
|
+
`Initialize amplitude with \`amplitude.initAll('${apiKey}', ${unifiedInitOptions});\``,
|
|
1032
|
+
...(isAutocaptureSelected
|
|
1033
|
+
? []
|
|
1034
|
+
: [`Track the initialization of amplitude with the following line of code that should fire when amplitude is initialized. Make sure you include the comment with the code. \`amplitude.track('amplitude initialized'); // you must send an event to advance through Amplitude onboarding. As you've disabled autocapture, we've added this initilization event. Of course, you can also add more and replace this one! See our documentation for more details (https://amplitude.com/docs/sdks/analytics/browser/browser-sdk-2#track-an-event).\``]),
|
|
1035
|
+
];
|
|
1036
|
+
|
|
1037
|
+
const documentationText = documentationSteps
|
|
1038
|
+
.map((step, index) => `${index + 1}. ${step}`)
|
|
1039
|
+
.join('\n');
|
|
1040
|
+
|
|
1041
|
+
return `You are an Amplitude Analytics installation wizard, an expert AI programming assistant that implements Amplitude Analytics${isSessionReplaySelected ? ' and Session Replay ' : ' '}for JavaScript-based applications.
|
|
1042
|
+
|
|
1043
|
+
Your task is to select, install, and initialize the correct Amplitude package(s) necessary to enable Amplitude Analytics${isSessionReplaySelected ? ' and Session Replay ' : ' '}for this application and track key interactions, all in strict accordance to the Documentation provided below.
|
|
1044
|
+
|
|
1045
|
+
Rules
|
|
1046
|
+
- Do not make any code changes if this is not a JavaScript-based application
|
|
1047
|
+
- Ensure ALL the code added ONLY runs client-side and never server-side
|
|
1048
|
+
- Ensure amplitude is only initialized once during the lifecycle of the application
|
|
1049
|
+
|
|
1050
|
+
Context
|
|
1051
|
+
---
|
|
1052
|
+
|
|
1053
|
+
## Documentation
|
|
1054
|
+
${documentationText}`;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
function updateSnippets() {
|
|
1058
|
+
const isAutocaptureSelected = autocaptureCheckbox.checked;
|
|
1059
|
+
const isSessionReplaySelected = sessionReplayCheckbox.checked;
|
|
1060
|
+
|
|
1061
|
+
// Always use placeholder - let global API key system handle replacement
|
|
1062
|
+
const apiKey = 'AMPLITUDE_API_KEY';
|
|
1063
|
+
|
|
1064
|
+
// Generate AI Prompt using production logic
|
|
1065
|
+
const updatedAiPrompt = makeAiPrompt({
|
|
1066
|
+
isAutocaptureSelected,
|
|
1067
|
+
isSessionReplaySelected,
|
|
1068
|
+
apiKey
|
|
1069
|
+
});
|
|
1070
|
+
aiPromptCode.textContent = updatedAiPrompt;
|
|
1071
|
+
|
|
1072
|
+
// Build Snippet (HTML snippet tab)
|
|
1073
|
+
let snippetParts = [];
|
|
1074
|
+
// Use actual < and > characters, escape for template literal safety
|
|
1075
|
+
const scriptOpen = String.fromCharCode(60) + 'script';
|
|
1076
|
+
const scriptClose = String.fromCharCode(60) + '/script' + String.fromCharCode(62);
|
|
1077
|
+
|
|
1078
|
+
const cdnDomain = isEUDC ? 'cdn.eu.amplitude.com' : 'cdn.amplitude.com';
|
|
1079
|
+
snippetParts.push(`${scriptOpen} src="https://${cdnDomain}/script/${apiKey}.js"${String.fromCharCode(62)}${scriptClose}`);
|
|
1080
|
+
|
|
1081
|
+
let scriptContent = [];
|
|
1082
|
+
if (isSessionReplaySelected) {
|
|
1083
|
+
scriptContent.push('window.amplitude.add(window.sessionReplay.plugin({sampleRate: 1}));');
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
// Build init config for snippet
|
|
1087
|
+
let snippetInitConfig = {
|
|
1088
|
+
fetchRemoteConfig: true
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
if (isEUDC) {
|
|
1092
|
+
snippetInitConfig.serverZone = 'EU';
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
if (isAutocaptureSelected) {
|
|
1096
|
+
snippetInitConfig.autocapture = {
|
|
1097
|
+
attribution: true,
|
|
1098
|
+
fileDownloads: true,
|
|
1099
|
+
formInteractions: true,
|
|
1100
|
+
pageViews: true,
|
|
1101
|
+
sessions: true,
|
|
1102
|
+
elementInteractions: true,
|
|
1103
|
+
networkTracking: true,
|
|
1104
|
+
webVitals: true,
|
|
1105
|
+
frustrationInteractions: true
|
|
1106
|
+
};
|
|
1107
|
+
} else {
|
|
1108
|
+
snippetInitConfig.autocapture = {
|
|
1109
|
+
attribution: false,
|
|
1110
|
+
fileDownloads: false,
|
|
1111
|
+
formInteractions: false,
|
|
1112
|
+
pageViews: false,
|
|
1113
|
+
sessions: false,
|
|
1114
|
+
elementInteractions: false,
|
|
1115
|
+
networkTracking: false,
|
|
1116
|
+
webVitals: false,
|
|
1117
|
+
frustrationInteractions: false
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
scriptContent.push(`window.amplitude.init('${apiKey}', ${JSON.stringify(snippetInitConfig)});`);
|
|
1122
|
+
|
|
1123
|
+
snippetParts.push(scriptOpen + String.fromCharCode(62) + scriptContent.join('') + scriptClose);
|
|
1124
|
+
|
|
1125
|
+
const updatedSnippet = snippetParts.join('');
|
|
1126
|
+
snippetCode.textContent = updatedSnippet;
|
|
1127
|
+
|
|
1128
|
+
// Store original content with placeholder for global API key system
|
|
1129
|
+
aiPromptCode.setAttribute('data-original-content', updatedAiPrompt);
|
|
1130
|
+
snippetCode.setAttribute('data-original-content', updatedSnippet);
|
|
1131
|
+
|
|
1132
|
+
// Re-highlight with Prism
|
|
1133
|
+
if (window.Prism) {
|
|
1134
|
+
Prism.highlightElement(aiPromptCode);
|
|
1135
|
+
Prism.highlightElement(snippetCode);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
// Trigger API key button addition and replacement from global system
|
|
1139
|
+
if (window.amplitudeApiKeyFeature) {
|
|
1140
|
+
// Small delay to ensure Prism highlighting is complete
|
|
1141
|
+
setTimeout(() => {
|
|
1142
|
+
// Add buttons to code blocks with AMPLITUDE_API_KEY
|
|
1143
|
+
if (window.amplitudeApiKeyFeature.addButtons) {
|
|
1144
|
+
window.amplitudeApiKeyFeature.addButtons();
|
|
1145
|
+
}
|
|
1146
|
+
// Apply stored API key if exists
|
|
1147
|
+
if (window.amplitudeApiKeyFeature.updateBlocks) {
|
|
1148
|
+
const storedApiKey = localStorage.getItem('amplitude_api_key');
|
|
1149
|
+
if (storedApiKey) {
|
|
1150
|
+
window.amplitudeApiKeyFeature.updateBlocks(storedApiKey);
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
// Fix button positioning to not scroll horizontally
|
|
1155
|
+
fixApiKeyButtonPosition();
|
|
1156
|
+
}, 100);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
function fixApiKeyButtonPosition() {
|
|
1161
|
+
// Get both pre containers
|
|
1162
|
+
const preElements = [
|
|
1163
|
+
aiPromptCode.closest('pre'),
|
|
1164
|
+
snippetCode.closest('pre')
|
|
1165
|
+
].filter(Boolean);
|
|
1166
|
+
|
|
1167
|
+
preElements.forEach(pre => {
|
|
1168
|
+
const button = pre.querySelector('.api-key-manual-button');
|
|
1169
|
+
if (button && pre) {
|
|
1170
|
+
// Remove any existing scroll handler to prevent duplicates
|
|
1171
|
+
if (pre._scrollHandler) {
|
|
1172
|
+
pre.removeEventListener('scroll', pre._scrollHandler);
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
// Create and store the scroll handler
|
|
1176
|
+
pre._scrollHandler = () => {
|
|
1177
|
+
button.style.transform = `translateX(${pre.scrollLeft}px)`;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
// Listen to scroll events and adjust button position
|
|
1181
|
+
pre.addEventListener('scroll', pre._scrollHandler);
|
|
1182
|
+
|
|
1183
|
+
// Set initial position
|
|
1184
|
+
button.style.transform = `translateX(${pre.scrollLeft}px)`;
|
|
1185
|
+
}
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
// Add event listeners
|
|
1190
|
+
autocaptureCheckbox.addEventListener('change', updateSnippets);
|
|
1191
|
+
sessionReplayCheckbox.addEventListener('change', updateSnippets);
|
|
1192
|
+
|
|
1193
|
+
// Region toggle handlers
|
|
1194
|
+
function setRegion(isEU) {
|
|
1195
|
+
isEUDC = isEU;
|
|
1196
|
+
if (isEU) {
|
|
1197
|
+
regionUsButton.classList.remove('bg-amp-blue-950', 'text-amp-blue-500', 'font-semibold');
|
|
1198
|
+
regionUsButton.classList.add('bg-white', 'text-amp-gray-300', 'font-medium', 'hover:text-amp-gray-500', 'hover:bg-amp-gray-50');
|
|
1199
|
+
regionEuButton.classList.remove('bg-white', 'text-amp-gray-300', 'font-medium', 'hover:text-amp-gray-500', 'hover:bg-amp-gray-50');
|
|
1200
|
+
regionEuButton.classList.add('bg-amp-blue-950', 'text-amp-blue-500', 'font-semibold');
|
|
1201
|
+
} else {
|
|
1202
|
+
regionEuButton.classList.remove('bg-amp-blue-950', 'text-amp-blue-500', 'font-semibold');
|
|
1203
|
+
regionEuButton.classList.add('bg-white', 'text-amp-gray-300', 'font-medium', 'hover:text-amp-gray-500', 'hover:bg-amp-gray-50');
|
|
1204
|
+
regionUsButton.classList.remove('bg-white', 'text-amp-gray-300', 'font-medium', 'hover:text-amp-gray-500', 'hover:bg-amp-gray-50');
|
|
1205
|
+
regionUsButton.classList.add('bg-amp-blue-950', 'text-amp-blue-500', 'font-semibold');
|
|
1206
|
+
}
|
|
1207
|
+
updateSnippets();
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
regionUsButton.addEventListener('click', () => setRegion(false));
|
|
1211
|
+
regionEuButton.addEventListener('click', () => setRegion(true));
|
|
1212
|
+
|
|
1213
|
+
// Initial update
|
|
1214
|
+
updateSnippets();
|
|
1215
|
+
|
|
1216
|
+
// Listen for API key updates from the global system
|
|
1217
|
+
window.addEventListener('storage', function(e) {
|
|
1218
|
+
if (e.key === 'amplitude_api_key') {
|
|
1219
|
+
updateSnippets();
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1222
|
+
})();
|
|
1223
|
+
</script></div></div>
|
|
1224
|
+
</p>
|
|
1225
|
+
<h3 id="use-autocapture">Use Autocapture<a href="#use-autocapture" class="heading-permalink" aria-hidden="true" title="Permalink"></a></h3>
|
|
1226
|
+
<p>With <code>autocapture: true</code>, Amplitude automatically tracks:</p>
|
|
1227
|
+
<ul>
|
|
1228
|
+
<li><strong>Sessions</strong> – How users engage over time.</li>
|
|
1229
|
+
<li><strong>Page views</strong> – Which pages matter most.</li>
|
|
1230
|
+
<li><strong>Clicks & interactions</strong> – What users engage with.</li>
|
|
1231
|
+
<li><strong>Form interactions</strong> – Where users get stuck.</li>
|
|
1232
|
+
<li><strong>File downloads</strong> – Content engagement.</li>
|
|
1233
|
+
<li><strong>Marketing attribution</strong> – Where users come from.</li>
|
|
1234
|
+
</ul>
|
|
1235
|
+
<h2 id="take-the-next-step">Take the next step<a href="#take-the-next-step" class="heading-permalink" aria-hidden="true" title="Permalink"></a></h2>
|
|
1236
|
+
<p>After your data starts flowing into Amplitude, expand your implementation with Session Replay, Web Experiment, and Guides & Surveys.</p>
|
|
1237
|
+
<h3 id="add-session-replay">Add Session Replay<a href="#add-session-replay" class="heading-permalink" aria-hidden="true" title="Permalink"></a></h3>
|
|
1238
|
+
<p>The snippet above includes <a href="/docs/session-replay/session-replay-plugin">Session Replay</a> at 100% sampling (<code>sampleRate: 1</code>). This lets you watch exactly what users experience and helps you debug issues and understand user behavior. Lower the sample rate in production to control volume and cost.</p>
|
|
1239
|
+
<h3 id="launch-a-web-experiment">Launch a Web Experiment<a href="#launch-a-web-experiment" class="heading-permalink" aria-hidden="true" title="Permalink"></a></h3>
|
|
1240
|
+
<p>Web Experiment lets you run A/B tests on your website using the same data you already send through the Unified Browser SDK. Target users, roll out changes gradually, and compare variants based on real product metrics like activation or retention in Amplitude. Web Experiment handles experiment assignment, exposure, and basic statistical analysis so you don't need to build that logic yourself.</p>
|
|
1241
|
+
<p>Test different versions or features of your site using Amplitude's no-code <a href="/docs/web-experiment/set-up-a-web-experiment#the-visual-editor">Visual Editor</a>.</p>
|
|
1242
|
+
<h3 id="create-a-guide-or-survey">Create a guide or survey<a href="#create-a-guide-or-survey" class="heading-permalink" aria-hidden="true" title="Permalink"></a></h3>
|
|
1243
|
+
<p><a href="/docs/guides-and-surveys">Guides & Surveys</a> let you deliver in-product messages and collect feedback on your website using the same Unified Browser SDK instrumentation you already set up. You can target users based on their behavior or properties, show walkthroughs or prompts, and trigger surveys at key moments in the journey. Amplitude captures responses and interactions, so you can see how they relate to core metrics like activation, conversion, or retention. This is a natural next step after events are flowing and you want to both influence and understand user behavior directly in the product.</p>
|
|
1244
|
+
<h2 id="benefits-of-this-approach">Benefits of this approach<a href="#benefits-of-this-approach" class="heading-permalink" aria-hidden="true" title="Permalink"></a></h2>
|
|
1245
|
+
<ul>
|
|
1246
|
+
<li><strong>Time to insight</strong>: Think minutes, not months. Start analyzing user behavior the same day.</li>
|
|
1247
|
+
<li><strong>No engineering bottleneck</strong>: Non-technical team members can define events using Visual Labeling.</li>
|
|
1248
|
+
<li><strong>Flexible foundation</strong>: Add custom precision tracking later as needs emerge.</li>
|
|
1249
|
+
<li><strong>Complete picture</strong>: Autocapture + Session Replay shows what users do and why.</li>
|
|
1250
|
+
<li><strong>Cost-effective</strong>: Only pay for what you use; scale as you grow.</li>
|
|
1251
|
+
</ul>
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
</div>
|
|
1255
|
+
</div>
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
<div class="relative basis-64 shrink-0 hidden lg:block">
|
|
1261
|
+
<div class="flex flex-row ml-8 mb-2">
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
<div class="copy-page-menu relative" data-md-url="/docs/md/get-started/amplitude-quickstart.md">
|
|
1265
|
+
<button class="copy-page-toggle group flex items-center font-medium border border-white hover:border-amp-gray-200 rounded-md transition-all duration-200"
|
|
1266
|
+
aria-label="Copy page options" title="Copy page options">
|
|
1267
|
+
<div class="flex items-center justify-center">
|
|
1268
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 -960 960 960" width="16px" fill="currentColor" class="w-6 h-6 text-amp-gray-500 transition-transform duration-200 group-hover:-translate-y-px"> <path d="M362.31-260Q332-260 311-281q-21-21-21-51.31v-455.38Q290-818 311-839q21-21 51.31-21h335.38Q728-860 749-839q21 21 21 51.31v455.38Q770-302 749-281q-21 21-51.31 21H362.31Zm0-60h335.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46v-455.38q0-4.62-3.85-8.46-3.84-3.85-8.46-3.85H362.31q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v455.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85Zm-140 200Q192-120 171-141q-21-21-21-51.31v-515.38h60v515.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h395.38v60H222.31ZM350-320v-480 480Z" />
|
|
1269
|
+
</svg>
|
|
1270
|
+
</div>
|
|
1271
|
+
</button>
|
|
1272
|
+
|
|
1273
|
+
<!-- Dropdown Menu -->
|
|
1274
|
+
<div class="copy-page-dropdown hidden absolute right-0 mt-2 w-56 bg-white rounded-md shadow-lg border border-amp-gray-200 z-50 opacity-0 scale-95 transition-all duration-100 ease-out">
|
|
1275
|
+
<div class="py-1">
|
|
1276
|
+
<button class="copy-markdown-btn flex items-center w-full px-4 py-2 text-sm text-amp-gray-700 hover:bg-amp-gray-50 hover:text-amp-gray-900 transition-colors duration-150">
|
|
1277
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
1278
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
|
|
1279
|
+
</svg>
|
|
1280
|
+
Copy as Markdown
|
|
1281
|
+
</button>
|
|
1282
|
+
|
|
1283
|
+
<a href="/docs/md/get-started/amplitude-quickstart.md" target="_blank" class="copy-page-link flex items-center w-full px-4 py-2 text-sm text-amp-gray-700 hover:bg-amp-gray-50 hover:text-amp-gray-900 transition-colors duration-150">
|
|
1284
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
1285
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14" />
|
|
1286
|
+
</svg>
|
|
1287
|
+
View as Markdown
|
|
1288
|
+
</a>
|
|
1289
|
+
|
|
1290
|
+
<hr class="my-1 border-amp-gray-100">
|
|
1291
|
+
|
|
1292
|
+
<a href="https://chat.openai.com/?q=Look+at+this+document+from+Amplitude+so+I+can+ask+questions+about+it%3A+https%3A//amplitude.com/docs/md/get-started/amplitude-quickstart.md" target="_blank" class="open-chatgpt copy-page-link flex items-center w-full px-4 py-2 text-sm text-amp-gray-700 hover:bg-amp-gray-50 hover:text-amp-gray-900 transition-colors duration-150">
|
|
1293
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-3" viewBox="0 0 320 320">
|
|
1294
|
+
<path d="m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"/>
|
|
1295
|
+
</svg>
|
|
1296
|
+
Open in ChatGPT
|
|
1297
|
+
</a>
|
|
1298
|
+
|
|
1299
|
+
<a href="https://claude.ai/chat?q=Look+at+this+document+from+Amplitude+so+I+can+ask+questions+about+it%3A+https%3A//amplitude.com/docs/md/get-started/amplitude-quickstart.md" target="_blank" class="open-claude copy-page-link flex items-center w-full px-4 py-2 text-sm text-amp-gray-700 hover:bg-amp-gray-50 hover:text-amp-gray-900 transition-colors duration-150">
|
|
1300
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" class="h-4 w-4 mr-3" viewBox="0 0 256 256" xml:space="preserve">
|
|
1301
|
+
<g style="stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;" transform="translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)">
|
|
1302
|
+
<path d="M 17.671 59.85 l 17.699 -9.93 l 0.298 -0.862 l -0.298 -0.48 h -0.862 l -2.958 -0.182 l -10.113 -0.273 l -8.77 -0.364 L 4.17 47.302 l -2.138 -0.456 l -2.004 -2.642 l 0.207 -1.318 l 1.798 -1.209 l 2.575 0.225 l 5.691 0.389 l 8.54 0.589 l 6.195 0.364 l 9.177 0.954 h 1.458 l 0.207 -0.589 l -0.498 -0.364 l -0.389 -0.364 l -8.837 -5.989 l -9.566 -6.329 l -5.011 -3.644 l -2.709 -1.846 l -1.367 -1.731 l -0.589 -3.778 l 2.46 -2.709 l 3.304 0.225 l 0.844 0.225 l 3.347 2.575 l 7.149 5.533 l 9.335 6.875 l 1.367 1.136 l 0.547 -0.389 l 0.067 -0.273 l -0.613 -1.026 l -5.078 -9.177 l -5.418 -9.335 l -2.411 -3.869 l -0.638 -2.32 C 20.945 6.08 20.781 5.278 20.781 4.3 l 2.8 -3.802 L 25.13 0 l 3.735 0.498 l 1.573 1.367 l 2.32 5.308 l 3.76 8.357 l 5.831 11.364 l 1.707 3.371 l 0.911 3.122 l 0.34 0.954 h 0.589 v -0.547 l 0.48 -6.402 l 0.887 -7.859 L 48.125 9.42 l 0.298 -2.849 l 1.409 -3.413 l 2.8 -1.846 l 2.187 1.045 l 1.798 2.575 l -0.249 1.664 l -1.069 6.948 l -2.095 10.884 l -1.367 7.288 h 0.796 l 0.911 -0.911 l 3.687 -4.895 l 6.195 -7.744 l 2.733 -3.073 l 3.189 -3.395 l 2.047 -1.616 h 3.869 l 2.849 4.233 l -1.275 4.373 l -3.984 5.053 l -3.304 4.282 l -4.737 6.377 l -2.958 5.102 l 0.273 0.407 l 0.705 -0.067 l 10.702 -2.278 l 5.782 -1.045 l 6.9 -1.184 l 3.122 1.458 l 0.34 1.482 l -1.227 3.031 l -7.38 1.822 l -8.655 1.731 l -12.888 3.049 l -0.158 0.115 l 0.182 0.225 l 5.806 0.547 l 2.484 0.134 h 6.08 l 11.321 0.844 l 2.958 1.956 l 1.774 2.393 l -0.298 1.822 l -4.555 2.32 l -6.147 -1.458 l -14.346 -3.413 l -4.92 -1.227 h -0.68 v 0.407 l 4.1 4.009 l 7.513 6.784 l 9.408 8.746 l 0.48 2.162 l -1.209 1.707 L 78.044 75.8 l -8.266 -6.219 l -3.189 -2.8 l -7.222 -6.08 h -0.48 v 0.638 l 1.664 2.436 l 8.789 13.21 l 0.456 4.051 l -0.638 1.318 l -2.278 0.796 l -2.502 -0.456 l -5.144 -7.222 l -5.308 -8.133 l -4.282 -7.288 l -0.522 0.298 l -2.527 27.216 l -1.184 1.391 L 42.677 90 l -2.278 -1.731 l -1.209 -2.8 l 1.209 -5.533 l 1.458 -7.222 l 1.184 -5.74 l 1.069 -7.131 l 0.638 -2.369 l -0.043 -0.158 l -0.522 0.067 l -5.375 7.38 l -8.175 11.048 l -6.468 6.924 l -1.549 0.613 l -2.685 -1.391 l 0.249 -2.484 l 1.5 -2.211 l 8.953 -11.388 l 5.4 -7.058 l 3.486 -4.075 l -0.024 -0.589 h -0.207 L 15.509 69.592 l -4.233 0.547 l -1.822 -1.707 l 0.225 -2.8 l 0.862 -0.911 l 7.149 -4.92 l -0.024 0.024 L 17.671 59.85 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round"/>
|
|
1303
|
+
</g>
|
|
1304
|
+
</svg>
|
|
1305
|
+
Open in Claude
|
|
1306
|
+
</a>
|
|
1307
|
+
</div>
|
|
1308
|
+
</div>
|
|
1309
|
+
|
|
1310
|
+
</div>
|
|
1311
|
+
|
|
1312
|
+
<style>
|
|
1313
|
+
/* Custom Tippy.js themes for success and error states */
|
|
1314
|
+
.tippy-box[data-theme~='light-success'] {
|
|
1315
|
+
background-color: #dcfce7;
|
|
1316
|
+
color: #166534;
|
|
1317
|
+
border: 1px solid #bbf7d0;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
.tippy-box[data-theme~='light-success'] .tippy-arrow {
|
|
1321
|
+
color: #dcfce7;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
.tippy-box[data-theme~='light-error'] {
|
|
1325
|
+
background-color: #fef2f2;
|
|
1326
|
+
color: #dc2626;
|
|
1327
|
+
border: 1px solid #fecaca;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
.tippy-box[data-theme~='light-error'] .tippy-arrow {
|
|
1331
|
+
color: #fef2f2;
|
|
1332
|
+
}
|
|
1333
|
+
</style>
|
|
1334
|
+
|
|
1335
|
+
<script>
|
|
1336
|
+
(function() {
|
|
1337
|
+
'use strict';
|
|
1338
|
+
|
|
1339
|
+
// Initialize when DOM is ready
|
|
1340
|
+
if (document.readyState === 'loading') {
|
|
1341
|
+
document.addEventListener('DOMContentLoaded', initCopyPageMenu);
|
|
1342
|
+
} else {
|
|
1343
|
+
initCopyPageMenu();
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
function initCopyPageMenu() {
|
|
1347
|
+
const menus = document.querySelectorAll('.copy-page-menu');
|
|
1348
|
+
menus.forEach(menu => {
|
|
1349
|
+
const toggle = menu.querySelector('.copy-page-toggle');
|
|
1350
|
+
const dropdown = menu.querySelector('.copy-page-dropdown');
|
|
1351
|
+
const arrow = menu.querySelector('.copy-page-arrow');
|
|
1352
|
+
const copyBtn = menu.querySelector('.copy-markdown-btn');
|
|
1353
|
+
const links = menu.querySelectorAll('.copy-page-link');
|
|
1354
|
+
const mdUrl = menu.dataset.mdUrl;
|
|
1355
|
+
|
|
1356
|
+
let isOpen = false;
|
|
1357
|
+
let copyTooltip = null;
|
|
1358
|
+
|
|
1359
|
+
// Initialize Tippy.js tooltip for copy button
|
|
1360
|
+
if (window.tippy && copyBtn) {
|
|
1361
|
+
copyTooltip = tippy(copyBtn, {
|
|
1362
|
+
content: 'Copy as Markdown',
|
|
1363
|
+
placement: 'top',
|
|
1364
|
+
trigger: 'manual',
|
|
1365
|
+
theme: 'light',
|
|
1366
|
+
animation: 'fade',
|
|
1367
|
+
duration: [200, 150],
|
|
1368
|
+
hideOnClick: false
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
// Toggle dropdown
|
|
1373
|
+
toggle.addEventListener('click', (e) => {
|
|
1374
|
+
e.stopPropagation();
|
|
1375
|
+
toggleDropdown();
|
|
1376
|
+
});
|
|
1377
|
+
|
|
1378
|
+
// Close on outside click
|
|
1379
|
+
document.addEventListener('click', (e) => {
|
|
1380
|
+
if (isOpen && !menu.contains(e.target)) {
|
|
1381
|
+
closeDropdown();
|
|
1382
|
+
}
|
|
1383
|
+
});
|
|
1384
|
+
|
|
1385
|
+
// Close dropdown when links are clicked
|
|
1386
|
+
links.forEach(link => {
|
|
1387
|
+
link.addEventListener('click', () => {
|
|
1388
|
+
closeDropdown();
|
|
1389
|
+
});
|
|
1390
|
+
});
|
|
1391
|
+
|
|
1392
|
+
// Copy markdown functionality
|
|
1393
|
+
copyBtn.addEventListener('click', async () => {
|
|
1394
|
+
try {
|
|
1395
|
+
const resp = await fetch(mdUrl);
|
|
1396
|
+
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
|
|
1397
|
+
const raw = await resp.text();
|
|
1398
|
+
|
|
1399
|
+
// Strip YAML front matter
|
|
1400
|
+
const md = raw.replace(/^---[\r\n]+[\s\S]*?[\r\n]+---[\r\n]*/, '');
|
|
1401
|
+
|
|
1402
|
+
if (navigator.clipboard?.writeText) {
|
|
1403
|
+
await navigator.clipboard.writeText(md);
|
|
1404
|
+
} else {
|
|
1405
|
+
// Fallback for older browsers
|
|
1406
|
+
const ta = document.createElement('textarea');
|
|
1407
|
+
ta.value = md;
|
|
1408
|
+
ta.style.cssText = 'position:fixed;top:0;left:0;width:1px;height:1px;padding:0;border:none;outline:none;box-shadow:none;background:transparent;';
|
|
1409
|
+
document.body.appendChild(ta);
|
|
1410
|
+
ta.focus();
|
|
1411
|
+
ta.select();
|
|
1412
|
+
document.execCommand('copy');
|
|
1413
|
+
document.body.removeChild(ta);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
showTooltip('✓ Copied to clipboard!', 'success');
|
|
1417
|
+
} catch (err) {
|
|
1418
|
+
showTooltip('✗ Copy failed: ' + err.message, 'error');
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
|
|
1422
|
+
function toggleDropdown() {
|
|
1423
|
+
isOpen ? closeDropdown() : openDropdown();
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
function openDropdown() {
|
|
1427
|
+
isOpen = true;
|
|
1428
|
+
dropdown.classList.remove('hidden');
|
|
1429
|
+
// Force reflow before adding animation classes
|
|
1430
|
+
dropdown.offsetHeight;
|
|
1431
|
+
dropdown.classList.remove('opacity-0', 'scale-95');
|
|
1432
|
+
dropdown.classList.add('opacity-100', 'scale-100');
|
|
1433
|
+
if (arrow) arrow.style.transform = 'rotate(180deg)';
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
function closeDropdown() {
|
|
1437
|
+
if (!isOpen) return;
|
|
1438
|
+
isOpen = false;
|
|
1439
|
+
dropdown.classList.remove('opacity-100', 'scale-100');
|
|
1440
|
+
dropdown.classList.add('opacity-0', 'scale-95');
|
|
1441
|
+
if (arrow) arrow.style.transform = '';
|
|
1442
|
+
// Hide after animation
|
|
1443
|
+
setTimeout(() => {
|
|
1444
|
+
if (!isOpen) dropdown.classList.add('hidden');
|
|
1445
|
+
}, 100);
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
function showTooltip(message, type = 'success') {
|
|
1449
|
+
closeDropdown();
|
|
1450
|
+
|
|
1451
|
+
if (copyTooltip) {
|
|
1452
|
+
// Update tooltip content and styling based on type
|
|
1453
|
+
copyTooltip.setContent(message);
|
|
1454
|
+
|
|
1455
|
+
// Set theme based on success/error
|
|
1456
|
+
const theme = type === 'success' ? 'light-success' : 'light-error';
|
|
1457
|
+
copyTooltip.setProps({ theme: theme });
|
|
1458
|
+
|
|
1459
|
+
// Show tooltip
|
|
1460
|
+
copyTooltip.show();
|
|
1461
|
+
|
|
1462
|
+
// Hide after 2 seconds
|
|
1463
|
+
setTimeout(() => {
|
|
1464
|
+
if (copyTooltip) {
|
|
1465
|
+
copyTooltip.hide();
|
|
1466
|
+
// Reset to default content and theme
|
|
1467
|
+
setTimeout(() => {
|
|
1468
|
+
if (copyTooltip) {
|
|
1469
|
+
copyTooltip.setContent('Copy as Markdown');
|
|
1470
|
+
copyTooltip.setProps({ theme: 'light' });
|
|
1471
|
+
}
|
|
1472
|
+
}, 200);
|
|
1473
|
+
}
|
|
1474
|
+
}, 2000);
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
})();
|
|
1480
|
+
</script>
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
</div>
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
<div class="sticky top-24 ml-8 text-sm js-toc">
|
|
1488
|
+
</div>
|
|
1489
|
+
|
|
1490
|
+
</div>
|
|
1491
|
+
|
|
1492
|
+
|
|
1493
|
+
</div>
|
|
1494
|
+
</div>
|
|
1495
|
+
|
|
1496
|
+
<div class="mt-12 mb-5 max-w-screen-xl mx-auto pl-8">
|
|
1497
|
+
<div class="inline-flex items-center">
|
|
1498
|
+
<span class="text-sm text-amp-gray-600 mr-4">Was this page helpful?</span>
|
|
1499
|
+
<div class="inline-flex flex-row-reverse items-center">
|
|
1500
|
+
<button @click="amplitude.track('Article rating')" class="article-rating inline-flex flex-row-reverse items-center">
|
|
1501
|
+
|
|
1502
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
1503
|
+
class="inline cursor-pointer"
|
|
1504
|
+
height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed">
|
|
1505
|
+
<path
|
|
1506
|
+
d="m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z">
|
|
1507
|
+
</path>
|
|
1508
|
+
</svg>
|
|
1509
|
+
|
|
1510
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
1511
|
+
class="inline cursor-pointer"
|
|
1512
|
+
height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed">
|
|
1513
|
+
<path
|
|
1514
|
+
d="m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z">
|
|
1515
|
+
</path>
|
|
1516
|
+
</svg>
|
|
1517
|
+
|
|
1518
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
1519
|
+
class="inline cursor-pointer"
|
|
1520
|
+
height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed">
|
|
1521
|
+
<path
|
|
1522
|
+
d="m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z">
|
|
1523
|
+
</path>
|
|
1524
|
+
</svg>
|
|
1525
|
+
|
|
1526
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
1527
|
+
class="inline cursor-pointer"
|
|
1528
|
+
height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed">
|
|
1529
|
+
<path
|
|
1530
|
+
d="m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z">
|
|
1531
|
+
</path>
|
|
1532
|
+
</svg>
|
|
1533
|
+
|
|
1534
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
1535
|
+
class="inline cursor-pointer"
|
|
1536
|
+
height="24px" viewBox="0 -960 960 960" width="24px" fill="#e8eaed">
|
|
1537
|
+
<path
|
|
1538
|
+
d="m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z">
|
|
1539
|
+
</path>
|
|
1540
|
+
</svg>
|
|
1541
|
+
|
|
1542
|
+
</button>
|
|
1543
|
+
</div>
|
|
1544
|
+
</div>
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
<p class="text-xs text-amp-gray-600"><svg class="inline" xmlns="http://www.w3.org/2000/svg" width="20" height="21" viewBox="0 0 20 21" fill="none"><g id="schedule"><mask id="mask0_388_26358" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="21"><rect id="Bounding box" y="0.987793" width="20" height="20" fill="#D9D9D9"/></mask><g mask="url(#mask0_388_26358)"><path id="schedule_2" d="M12.7917 14.5295L13.8542 13.467L10.75 10.3628V5.98779H9.25V10.9878L12.7917 14.5295ZM10 18.9878C8.89756 18.9878 7.86153 18.7795 6.89192 18.3628C5.92231 17.9461 5.07292 17.3732 4.34375 16.644C3.61458 15.9149 3.04167 15.0645 2.625 14.0928C2.20833 13.1212 2 12.083 2 10.9783C2 9.8735 2.20833 8.83502 2.625 7.86279C3.04167 6.89057 3.61458 6.04335 4.34375 5.32113C5.07292 4.5989 5.92332 4.02946 6.89496 3.61279C7.86661 3.19613 8.90481 2.98779 10.0095 2.98779C11.1143 2.98779 12.1528 3.19779 13.1251 3.61779C14.0974 4.03779 14.9432 4.60779 15.6625 5.32779C16.3817 6.04779 16.9511 6.89446 17.3707 7.86779C17.7902 8.84113 18 9.88113 18 10.9878C18 12.0902 17.7917 13.1263 17.375 14.0959C16.9583 15.0655 16.3889 15.9149 15.6667 16.644C14.9444 17.3732 14.0963 17.9461 13.1223 18.3628C12.1482 18.7795 11.1075 18.9878 10 18.9878ZM10.0099 17.4878C11.8082 17.4878 13.3395 16.8524 14.6037 15.5815C15.8679 14.3107 16.5 12.7761 16.5 10.9779C16.5 9.17956 15.8679 7.64831 14.6037 6.38411C13.3395 5.1199 11.8082 4.48779 10.0099 4.48779C8.21165 4.48779 6.67708 5.1199 5.40625 6.38411C4.13542 7.64831 3.5 9.17956 3.5 10.9779C3.5 12.7761 4.13542 14.3107 5.40625 15.5815C6.67708 16.8524 8.21165 17.4878 10.0099 17.4878Z" fill="#5A5E68"/></g></g></svg> December 11th, 2025</p>
|
|
1548
|
+
</div>
|
|
1549
|
+
|
|
1550
|
+
<div class="pl-8 border-y border-y-amp-gray-100 py-[2.12rem] gap-2">
|
|
1551
|
+
<div class="flex flex-col max-w-screen-xl mx-auto">
|
|
1552
|
+
<div><svg class="inline" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"><path d="M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg> <p class="text-[0.875rem] text-amp-gray-600 inline">Need help? <a href="https://help.amplitude.com/hc/en-us/requests/new" class="text-amp-blue-300" target="_blank">Contact Support</a></p></div>
|
|
1553
|
+
<div><svg class="inline" xmlns="http://www.w3.org/2000/svg" width="20" height="21" viewBox="0 0 20 21" fill="none"><g id="icon-amplitude"><path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M9.1805 7.21649C9.28367 7.3667 9.462 7.70394 9.72592 8.45712C9.90642 8.97243 10.1034 9.61079 10.3118 10.3556C9.52125 10.3442 8.72133 10.3356 7.94682 10.3275L7.55457 10.3232C7.99767 8.69717 8.53825 7.46332 8.93333 7.17198C8.95858 7.15678 8.99775 7.13881 9.04067 7.13881C9.0925 7.13881 9.13933 7.16553 9.1805 7.21649ZM15.3935 11.1677C15.393 11.1681 15.3924 11.1685 15.3918 11.169C15.3837 11.1756 15.3755 11.1819 15.3669 11.1878C15.3642 11.1897 15.3614 11.1917 15.3587 11.1936C15.3529 11.1973 15.347 11.2009 15.341 11.2043C15.3357 11.2075 15.3303 11.2108 15.3247 11.2137C15.3244 11.2139 15.324 11.214 15.3237 11.2142C15.2685 11.2433 15.2057 11.26 15.139 11.26H11.5864C11.6148 11.3784 11.6459 11.5129 11.6796 11.6593C11.8743 12.5048 12.3915 14.751 12.941 14.751L12.9517 14.7512L12.9578 14.7504L12.9683 14.7505C13.3974 14.7504 13.6165 14.1263 14.0966 12.759L14.1024 12.7425C14.1795 12.523 14.2666 12.2752 14.3608 12.013L14.3847 11.9462C14.4092 11.8808 14.4722 11.8344 14.5459 11.8344C14.6408 11.8344 14.7178 11.9118 14.7178 12.0073C14.7178 12.0245 14.7152 12.0413 14.7104 12.057L14.6906 12.1243C14.6404 12.287 14.5872 12.5087 14.5257 12.7653C14.2396 13.9579 13.8072 15.7596 12.6982 15.7596L12.6901 15.7595C11.9735 15.7539 11.5447 14.6017 11.3616 14.1097C11.0191 13.1897 10.76 12.2094 10.5101 11.26H7.23993L6.56109 13.4451L6.55113 13.4372C6.48906 13.5355 6.38018 13.5985 6.26002 13.5985C6.07048 13.5985 5.91552 13.4433 5.91467 13.2527L5.91509 13.2409L5.95619 12.9937C6.04997 12.4322 6.16233 11.8494 6.29045 11.26H4.90945L4.90435 11.2547C4.65368 11.2184 4.46117 10.996 4.46117 10.7368C4.46117 10.4825 4.64008 10.2661 4.88658 10.2221C4.90926 10.2192 4.95487 10.2153 5.04815 10.2153C5.06812 10.2153 5.09045 10.2155 5.11524 10.2159C5.55302 10.2235 6.01729 10.2305 6.52668 10.237C7.24757 7.29145 8.08242 5.79619 9.00842 5.79196C10.0022 5.79196 10.7393 8.06763 11.3294 10.2936L11.3317 10.3025C12.5441 10.3269 13.8364 10.3625 15.0926 10.4529L15.1452 10.4579C15.1654 10.4581 15.1852 10.4602 15.2045 10.4634L15.2118 10.4641C15.2141 10.4645 15.2161 10.4651 15.2182 10.4655C15.2193 10.4657 15.2205 10.466 15.2216 10.4662C15.4044 10.503 15.5401 10.6645 15.5401 10.8581C15.5401 10.9822 15.483 11.094 15.3935 11.1677ZM10 3.48779C5.85787 3.48779 2.5 6.86485 2.5 11.0306C2.5 15.1965 5.85787 18.5735 10 18.5735C14.1421 18.5735 17.5 15.1965 17.5 11.0306C17.5 6.86485 14.1421 3.48779 10 3.48779Z" fill="#5A5E68"/></g></svg> <p class="text-[0.875rem] text-amp-gray-600 inline">Visit <a href="https://www.amplitude.com" class="text-amp-blue-300" target="_blank">Amplitude.com</a></p></div>
|
|
1554
|
+
<div><svg class="inline" xmlns="http://www.w3.org/2000/svg" width="20" height="21" viewBox="0 0 20 21" fill="none"><g id="Icon Blog"><path id="Vector" d="M16.875 4.04193H3.125C2.39584 4.04193 1.80417 4.6336 1.80417 5.36276V16.6128C1.80417 17.3419 2.39584 17.9336 3.125 17.9336H16.875C17.6042 17.9336 18.1958 17.3419 18.1958 16.6128V5.36276C18.1958 4.6336 17.6042 4.04193 16.875 4.04193ZM16.8042 16.5419H3.2V5.43776H16.8042V16.5419ZM5.55417 8.48776C5.55417 8.10443 5.86667 7.79193 6.25 7.79193H13.75C14.1375 7.79193 14.4458 8.10443 14.4458 8.48776C14.4458 8.8711 14.1333 9.1836 13.75 9.1836H6.25C5.8625 9.1836 5.55417 8.8711 5.55417 8.48776ZM5.55417 10.9878C5.55417 10.6044 5.86667 10.2919 6.25 10.2919H13.75C14.1375 10.2919 14.4458 10.6044 14.4458 10.9878C14.4458 11.3711 14.1333 11.6836 13.75 11.6836H6.25C5.8625 11.6836 5.55417 11.3711 5.55417 10.9878ZM5.55417 13.4878C5.55417 13.1044 5.86667 12.7919 6.25 12.7919H13.75C14.1375 12.7919 14.4458 13.1044 14.4458 13.4878C14.4458 13.8711 14.1333 14.1836 13.75 14.1836H6.25C5.8625 14.1836 5.55417 13.8711 5.55417 13.4878Z" fill="#5A5E68"/></g></svg> <p class="text-[0.875rem] text-amp-gray-600 inline">Have a look at the Amplitude <a href="https://amplitude.com/blog" class="text-amp-blue-300" target="_blank">Blog</a></p></div>
|
|
1555
|
+
<div><svg class="inline" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="currentColor"><path d="M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg> <p class="text-[0.875rem] text-amp-gray-600 inline">Learn more at <a href="https://academy.amplitude.com/" class="text-amp-blue-300" target="_blank">Amplitude Academy</a></p></div>
|
|
1556
|
+
|
|
1557
|
+
</div>
|
|
1558
|
+
</div>
|
|
1559
|
+
<div class="pl-8 border-b border-b-amp-gray-100 flex flex-col py-[2.12rem] gap-2">
|
|
1560
|
+
<div class="flex flex-row justify-between items-center max-w-screen-xl">
|
|
1561
|
+
<div class="flex flex-row">
|
|
1562
|
+
|
|
1563
|
+
<a href="https://www.linkedin.com/company/amplitude-analytics" class="mr-4" target="_blank">
|
|
1564
|
+
<svg class="w-6 h-6 fill-amp-gray-600" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g id="Icon"><path id="Vector" d="M19.7778 2C20.3671 2 20.9324 2.23413 21.3491 2.65087C21.7659 3.06762 22 3.63285 22 4.22222V19.7778C22 20.3671 21.7659 20.9324 21.3491 21.3491C20.9324 21.7659 20.3671 22 19.7778 22H4.22222C3.63285 22 3.06762 21.7659 2.65087 21.3491C2.23413 20.9324 2 20.3671 2 19.7778V4.22222C2 3.63285 2.23413 3.06762 2.65087 2.65087C3.06762 2.23413 3.63285 2 4.22222 2H19.7778ZM19.2222 19.2222V13.3333C19.2222 12.3727 18.8406 11.4513 18.1613 10.772C17.482 10.0927 16.5607 9.71111 15.6 9.71111C14.6556 9.71111 13.5556 10.2889 13.0222 11.1556V9.92222H9.92222V19.2222H13.0222V13.7444C13.0222 12.8889 13.7111 12.1889 14.5667 12.1889C14.9792 12.1889 15.3749 12.3528 15.6666 12.6445C15.9583 12.9362 16.1222 13.3319 16.1222 13.7444V19.2222H19.2222ZM6.31111 8.17778C6.80618 8.17778 7.28098 7.98111 7.63104 7.63104C7.98111 7.28098 8.17778 6.80618 8.17778 6.31111C8.17778 5.27778 7.34444 4.43333 6.31111 4.43333C5.81309 4.43333 5.33547 4.63117 4.98332 4.98332C4.63117 5.33547 4.43333 5.81309 4.43333 6.31111C4.43333 7.34444 5.27778 8.17778 6.31111 8.17778ZM7.85556 19.2222V9.92222H4.77778V19.2222H7.85556Z"/></g></svg>
|
|
1565
|
+
</a>
|
|
1566
|
+
|
|
1567
|
+
<a href="https://twitter.com/Amplitude_HQ" class="mr-4" target="_blank">
|
|
1568
|
+
<svg class="w-6 h-6 fill-amp-gray-600" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g id="Frame 4824"><path id="Vector" d="M24 4.29446C23.1166 4.69598 22.1644 4.95985 21.1778 5.08604C22.1874 4.47801 22.9675 3.51434 23.3346 2.35564C22.3824 2.92925 21.327 3.33078 20.2141 3.56023C19.3078 2.57361 18.0344 2 16.5889 2C13.8929 2 11.6902 4.20268 11.6902 6.92161C11.6902 7.31166 11.7361 7.69025 11.8164 8.04589C7.73231 7.83939 4.0956 5.87763 1.67495 2.90631C1.25048 3.62906 1.00956 4.47801 1.00956 5.37285C1.00956 7.08222 1.86998 8.59656 3.20077 9.45698C2.38623 9.45698 1.62906 9.22753 0.963671 8.88337C0.963671 8.88337 0.963671 8.88337 0.963671 8.91778C0.963671 11.304 2.66157 13.3002 4.91013 13.7476C4.49713 13.8623 4.06119 13.9197 3.61377 13.9197C3.30402 13.9197 2.99426 13.8853 2.69599 13.8279C3.31549 15.7667 5.11664 17.2122 7.2849 17.2467C5.60994 18.5774 3.48757 19.3576 1.17017 19.3576C0.780115 19.3576 0.390057 19.3346 0 19.2887C2.17973 20.6883 4.77247 21.5029 7.54876 21.5029C16.5889 21.5029 21.5564 14 21.5564 7.49522C21.5564 7.27725 21.5564 7.07075 21.5449 6.85277C22.5086 6.16444 23.3346 5.29254 24 4.29446Z"/></g></svg>
|
|
1569
|
+
</a>
|
|
1570
|
+
|
|
1571
|
+
<a href="https://www.g2.com/products/amplitude-analytics/reviews" class="mr-4" target="_blank">
|
|
1572
|
+
<svg class="w-6 h-6 fill-amp-gray-600" xmlns="http://www.w3.org/2000/svg" width="21" height="20" viewBox="0 0 21 20"><g id="Frame 4825"><path id="path8" d="M11.0327 20C6.57742 19.9883 2.69803 17.1751 1.42954 12.9766C0.37117 9.45907 1.056 6.24504 3.43733 3.43569C4.90037 1.70805 6.78365 0.649677 9.00155 0.198312C10.2428 -0.0546084 11.5191 -0.0662816 12.7642 0.167183C12.9043 0.194421 12.9043 0.22944 12.8498 0.342281C12.2389 1.61466 11.628 2.89094 11.0249 4.16721C10.9938 4.24892 10.9121 4.29951 10.8226 4.29172C8.19999 4.35787 5.95874 6.20224 5.39064 8.76257C4.77975 11.4824 6.25057 14.2957 8.8498 15.2957C10.9121 16.0856 12.8265 15.7704 14.5736 14.4202C14.6631 14.354 14.6981 14.3385 14.7642 14.4513C15.4335 15.6225 16.1066 16.7899 16.7876 17.9572C16.8459 18.0584 16.8265 18.105 16.737 18.1673C15.4218 19.0973 13.9043 19.6926 12.309 19.9066C11.8809 19.9572 11.4568 19.9883 11.0327 20Z"/><path id="path10" d="M17.9512 17.105C17.8967 17.0739 17.8812 17.0155 17.8539 16.9649C17.0913 15.6497 16.3364 14.3345 15.5815 13.0155C15.5271 12.9065 15.4103 12.8404 15.2897 12.852C13.78 12.8559 12.2702 12.852 10.7605 12.852H10.5737C10.5737 12.7937 10.5932 12.7392 10.6321 12.6964C11.3986 11.3657 12.1652 10.031 12.9356 8.70027C12.9784 8.61078 13.0718 8.5563 13.173 8.56797C14.7177 8.57186 16.2664 8.57186 17.8111 8.56797C17.9084 8.5563 18.0018 8.61078 18.0446 8.70027C18.815 10.0427 19.5893 11.3851 20.3675 12.7275C20.422 12.7976 20.422 12.8949 20.3753 12.9688C19.5932 14.319 18.815 15.6653 18.0407 17.0155C18.0096 17.0427 18.0018 17.0894 17.9512 17.105Z"/><path id="path12" d="M14.6983 2.95331C14.422 2.67704 14.1613 2.41245 13.8967 2.15175C13.815 2.07004 13.8734 2.01167 13.9084 1.94941C14.2158 1.41634 14.7139 1.01945 15.3014 0.844348C16.0213 0.606992 16.8111 0.684814 17.4726 1.05836C18.675 1.70817 18.5699 3.2179 17.8734 3.90273C17.6088 4.15565 17.3131 4.36966 16.9862 4.54087C16.6516 4.71986 16.317 4.88718 15.9901 5.07784C15.7177 5.23348 15.5076 5.44749 15.4065 5.76267C15.3676 5.88718 15.3909 5.9222 15.5232 5.91831C16.4065 5.91442 17.2936 5.91831 18.1769 5.91442C18.3092 5.91442 18.3598 5.94166 18.3559 6.08563C18.3442 6.39691 18.3481 6.71209 18.3559 7.02338C18.3559 7.12065 18.3287 7.15567 18.2275 7.15567C16.8072 7.15178 15.3831 7.15178 13.9629 7.15567C13.8967 7.15567 13.8345 7.15567 13.8345 7.0584C13.8345 6.07395 14.0174 5.15566 14.7878 4.45527C15.1535 4.12842 15.566 3.85993 16.0096 3.6537C16.2547 3.53308 16.4999 3.42024 16.71 3.24903C16.8967 3.09728 17.0251 2.9144 17.0368 2.66537C17.0563 2.27626 16.7489 1.99222 16.2858 1.96109C15.6205 1.91439 15.1419 2.21401 14.8033 2.77043C14.7722 2.81712 14.7411 2.8716 14.6983 2.95331Z"/><path id="path14" d="M18.0869 18.5058V18.1828H17.9702V18.1167H18.2776V18.1828H18.1609V18.5058H18.0869ZM18.3321 18.5058V18.1167H18.4488L18.515 18.3813L18.5811 18.1167H18.6978V18.5058H18.6317V18.2023L18.5539 18.5058H18.4799L18.4021 18.2023V18.5058H18.3321Z"/></g></svg>
|
|
1573
|
+
</a>
|
|
1574
|
+
|
|
1575
|
+
</div>
|
|
1576
|
+
<div class="flex flex-col pr-8">
|
|
1577
|
+
<div class="flex flex-row justify-between">
|
|
1578
|
+
|
|
1579
|
+
<a class="text-amp-gray-600 text-[0.875rem] font-[Gellix]" href="https://amplitude.com/terms" target="_blank">Terms of Service</a>
|
|
1580
|
+
|
|
1581
|
+
<a class="text-amp-gray-600 text-[0.875rem] font-[Gellix]" href="https://amplitude.com/privacy" target="_blank">Privacy Notice</a>
|
|
1582
|
+
|
|
1583
|
+
<a class="text-amp-gray-600 text-[0.875rem] font-[Gellix]" href="https://amplitude.com/aup" target="_blank">Acceptable Use Policy</a>
|
|
1584
|
+
|
|
1585
|
+
<a class="text-amp-gray-600 text-[0.875rem] font-[Gellix]" href="https://amplitude.com/legal" target="_blank">Legal</a>
|
|
1586
|
+
|
|
1587
|
+
</div>
|
|
1588
|
+
<div><p class="text-[0.815rem] text-amp-gray-600 opacity-80 font-[Gellix]">© 2026 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.</p></div>
|
|
1589
|
+
</div>
|
|
1590
|
+
</div>
|
|
1591
|
+
</div>
|
|
1592
|
+
</section>
|
|
1593
|
+
</div>
|
|
1594
|
+
</div>
|
|
1595
|
+
|
|
1596
|
+
</div>
|
|
1597
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.25.0/tocbot.min.js"></script>
|
|
1598
|
+
<script>
|
|
1599
|
+
|
|
1600
|
+
// Get all h2 and h3 elements
|
|
1601
|
+
var headings = document.querySelectorAll('h2, h3');
|
|
1602
|
+
|
|
1603
|
+
// Check if there are more than 3
|
|
1604
|
+
if (headings.length > 2) {
|
|
1605
|
+
// Execute your code here
|
|
1606
|
+
tocbot.init({
|
|
1607
|
+
// Where to render the table of contents.
|
|
1608
|
+
tocSelector: '.js-toc',
|
|
1609
|
+
// Where to grab the headings to build the table of contents.
|
|
1610
|
+
contentSelector: '.prose',
|
|
1611
|
+
// Which headings to grab inside of the contentSelector element.
|
|
1612
|
+
headingSelector: 'h2, h3',
|
|
1613
|
+
// For headings inside relative or absolute positioned containers within content.
|
|
1614
|
+
hasInnerContainers: true,
|
|
1615
|
+
ignoreSelector: '.hint-title, .js-toc-ignore',
|
|
1616
|
+
orderedList: false,
|
|
1617
|
+
ignoreHiddenElements: true,
|
|
1618
|
+
headingsOffset: 96,
|
|
1619
|
+
scrollSmoothOffset: -96
|
|
1620
|
+
}); }
|
|
1621
|
+
|
|
1622
|
+
</script>
|
|
1623
|
+
|
|
1624
|
+
|
|
1625
|
+
|
|
1626
|
+
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@4"></script>
|
|
1627
|
+
<script type="text/javascript">
|
|
1628
|
+
docsearch({
|
|
1629
|
+
appId: "93SYI9HL20",
|
|
1630
|
+
apiKey: "105a5cad34a7ac8f6a9fb78189d9c113",
|
|
1631
|
+
indexName: "amplitude-vercel",
|
|
1632
|
+
container: '#algolia-search-header',
|
|
1633
|
+
debug: true,
|
|
1634
|
+
placeholder: "Search 'instrumentation' , 'Export API'",
|
|
1635
|
+
transformItems(items) {
|
|
1636
|
+
return items.map((item) => ({
|
|
1637
|
+
...item,
|
|
1638
|
+
url: item.url.replace('https://amplitude.com','')
|
|
1639
|
+
}))
|
|
1640
|
+
}
|
|
1641
|
+
});
|
|
1642
|
+
|
|
1643
|
+
// Amplitude tracking for DocSearch
|
|
1644
|
+
(function() {
|
|
1645
|
+
var lastQuery = '';
|
|
1646
|
+
var searchOpen = false;
|
|
1647
|
+
|
|
1648
|
+
document.addEventListener('click', function(e) {
|
|
1649
|
+
if (e.target.closest('.DocSearch-Button')) {
|
|
1650
|
+
amplitude.track('Search opened');
|
|
1651
|
+
searchOpen = true;
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
|
|
1655
|
+
document.addEventListener('input', function(e) {
|
|
1656
|
+
var input = document.querySelector('.DocSearch-Input');
|
|
1657
|
+
if (input && e.target === input) {
|
|
1658
|
+
lastQuery = input.value;
|
|
1659
|
+
}
|
|
1660
|
+
});
|
|
1661
|
+
|
|
1662
|
+
// Use capture phase to run before DocSearch closes the modal
|
|
1663
|
+
document.addEventListener('click', function(e) {
|
|
1664
|
+
var hit = e.target.closest('.DocSearch-Hit');
|
|
1665
|
+
if (hit) {
|
|
1666
|
+
var query = lastQuery; // Capture query before any DOM changes
|
|
1667
|
+
var link = hit.querySelector('a');
|
|
1668
|
+
var url = link ? link.getAttribute('href') : '';
|
|
1669
|
+
var hits = document.querySelectorAll('.DocSearch-Hit');
|
|
1670
|
+
var position = Array.prototype.indexOf.call(hits, hit) + 1;
|
|
1671
|
+
amplitude.track('Search result clicked', { query: query, url: url, position: position });
|
|
1672
|
+
}
|
|
1673
|
+
}, true);
|
|
1674
|
+
|
|
1675
|
+
var observer = new MutationObserver(function(mutations) {
|
|
1676
|
+
var modal = document.querySelector('.DocSearch-Modal');
|
|
1677
|
+
if (searchOpen && !modal) {
|
|
1678
|
+
if (lastQuery) {
|
|
1679
|
+
amplitude.track('Search query', { query: lastQuery });
|
|
1680
|
+
}
|
|
1681
|
+
lastQuery = '';
|
|
1682
|
+
searchOpen = false;
|
|
1683
|
+
} else if (modal && !searchOpen) {
|
|
1684
|
+
// Track search opened for keyboard shortcuts (Cmd+K/Ctrl+K)
|
|
1685
|
+
amplitude.track('Search opened');
|
|
1686
|
+
searchOpen = true;
|
|
1687
|
+
}
|
|
1688
|
+
});
|
|
1689
|
+
|
|
1690
|
+
observer.observe(document.body, { childList: true, subtree: true });
|
|
1691
|
+
})();
|
|
1692
|
+
</script>
|
|
1693
|
+
<script src="/docs/js/site.js?id=078a82617f7dafffff92da951b4ec6c9"></script>
|
|
1694
|
+
<script src="/docs/js/statuspage.js?id=4da5c29a14b085ee38c353c2a7b7713c"></script>
|
|
1695
|
+
|
|
1696
|
+
<!-- Latest Version -->
|
|
1697
|
+
<script src="https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js" type="text/javascript"></script>
|
|
1698
|
+
<script>
|
|
1699
|
+
var config = {
|
|
1700
|
+
apiKey: "106b5e962520ab454786a0d1ba709e47372ef512",
|
|
1701
|
+
product: "PRO_MULTISITE",
|
|
1702
|
+
initialState: 'notify',
|
|
1703
|
+
notifyDismissButton: false,
|
|
1704
|
+
theme: 'light',
|
|
1705
|
+
setInnerHTML: true,
|
|
1706
|
+
branding: {
|
|
1707
|
+
fontFamily: 'IBM Plex Sans, sans-serif',
|
|
1708
|
+
backgroundColor: '#fafcfe',
|
|
1709
|
+
removeIcon: true,
|
|
1710
|
+
removeAbout: true,
|
|
1711
|
+
},
|
|
1712
|
+
statement: {
|
|
1713
|
+
description: 'See our',
|
|
1714
|
+
name: 'Privacy Notice',
|
|
1715
|
+
url: 'https://amplitude.com/privacy#cookies',
|
|
1716
|
+
updated: '25/04/2018',
|
|
1717
|
+
},
|
|
1718
|
+
|
|
1719
|
+
ccpaConfig: {
|
|
1720
|
+
description: 'See our',
|
|
1721
|
+
name: 'Personal Information Notice',
|
|
1722
|
+
url: 'https://amplitude.com/privacy',
|
|
1723
|
+
updated: '25/04/2018',
|
|
1724
|
+
},
|
|
1725
|
+
|
|
1726
|
+
ccpaConfig: {
|
|
1727
|
+
description: 'See our',
|
|
1728
|
+
name: 'Personal Information Notice',
|
|
1729
|
+
url: 'https://amplitude.com/privacy',
|
|
1730
|
+
updated: '25/04/2018',
|
|
1731
|
+
},
|
|
1732
|
+
text: {
|
|
1733
|
+
title: 'This site uses cookies.',
|
|
1734
|
+
intro: 'Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used.',
|
|
1735
|
+
necessaryTitle: 'Necessary Cookies',
|
|
1736
|
+
necessaryDescription: 'Necessary cookies enable core functionality. The website cannot function properly without these cookies, and can only be disabled by changing your browser preferences.',
|
|
1737
|
+
accept: 'Accept',
|
|
1738
|
+
reject: 'Reject',
|
|
1739
|
+
rejectSettings: "Do Not Sell or Share My Personal Information",
|
|
1740
|
+
|
|
1741
|
+
// Regarding opening settings, "openCookieControl" should have been exposed
|
|
1742
|
+
// to the window by instrumentCookieControl() by, in the event it hasn't,
|
|
1743
|
+
// this falls back to CookieControl.open
|
|
1744
|
+
notifyDescription: `
|
|
1745
|
+
<div class="ccc-description">
|
|
1746
|
+
<div class="ccc-inner-description">
|
|
1747
|
+
<h2>Cookie Preferences</h2>
|
|
1748
|
+
<p>
|
|
1749
|
+
Sharing your cookies helps us improve site functionality and optimize your experience.
|
|
1750
|
+
<br><a href="https://amplitude.com/privacy#cookies" data-cta-clicked-type="interstitial" data-cc-policy>Click Here</a> to read our cookie policy.
|
|
1751
|
+
</p>
|
|
1752
|
+
</div>
|
|
1753
|
+
<div class="ccc-actions">
|
|
1754
|
+
<a class="ccc-manage-settings-btn" onclick="(window.openCookieControl || CookieControl.open)()"
|
|
1755
|
+
data-cta-clicked-type="interstitial"
|
|
1756
|
+
data-cc-settings>Manage Settings</a>
|
|
1757
|
+
<button onclick="CookieControl.acceptAll()" data-cc-accept data-cta-clicked-type="interstitial">
|
|
1758
|
+
Accept
|
|
1759
|
+
</button>
|
|
1760
|
+
</div>
|
|
1761
|
+
</div>`,
|
|
1762
|
+
},
|
|
1763
|
+
necessaryCookies: [
|
|
1764
|
+
'__utmzz', // utmz cookie replicator necessary to track utm google values
|
|
1765
|
+
'__utmzzses', // Also used by utmz cookie replciator
|
|
1766
|
+
'corp_utm', // Own cookie used to persist utm values for Marketo
|
|
1767
|
+
'membership_token_*', // Membership cookies for all access program
|
|
1768
|
+
'sj_csrftoken', // Skill Jar Cookie
|
|
1769
|
+
],
|
|
1770
|
+
optionalCookies: [{
|
|
1771
|
+
name: "performance",
|
|
1772
|
+
label: "Performance Cookies",
|
|
1773
|
+
description: 'We use these cookies to monitor and improve website performance.',
|
|
1774
|
+
cookies: [
|
|
1775
|
+
'amplitude_id*', // Amplitude SDK
|
|
1776
|
+
'amp_*', // Newer Amplitude SDK
|
|
1777
|
+
'AMP_*', // Newer Amplitude SDK
|
|
1778
|
+
'1P_JAR', // Google Analytics
|
|
1779
|
+
'DV', // Google Analytics
|
|
1780
|
+
'NID', // Google Analytics
|
|
1781
|
+
'OGPC', // Google Analytics
|
|
1782
|
+
'_ga', // Google Analytics
|
|
1783
|
+
'_gid', // Google Analytics
|
|
1784
|
+
'_gat*', // Google Analytics
|
|
1785
|
+
],
|
|
1786
|
+
onRevoke: function () {
|
|
1787
|
+
amplitude.setOptOut(true)
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
name: "advertising",
|
|
1792
|
+
label: "Advertising Cookies",
|
|
1793
|
+
description: 'We use these cookies to help us improve the relevancy of advertising campaigns you receive.',
|
|
1794
|
+
cookies: [
|
|
1795
|
+
'BizoID', // LinkedIn
|
|
1796
|
+
'UserMatchHistory', // LinkedIn
|
|
1797
|
+
'lang', // LinkedIn
|
|
1798
|
+
'bcookie', // LinkedIn
|
|
1799
|
+
'bscookie', // LinkedIn
|
|
1800
|
+
'lidc', // LinkedIn
|
|
1801
|
+
'fr', // Facebook
|
|
1802
|
+
'vc', // AddThis
|
|
1803
|
+
'uvc', // AddThis
|
|
1804
|
+
'uid', // AddThis
|
|
1805
|
+
'loc', // AddThis
|
|
1806
|
+
'ouid', // AddThis
|
|
1807
|
+
'di2', // AddThis
|
|
1808
|
+
'__atuvc', // AddThis
|
|
1809
|
+
'__atuvs', // AddThis
|
|
1810
|
+
'__d_mkto', // Marketo
|
|
1811
|
+
'_mkto_trk', // Marketo
|
|
1812
|
+
'BIGipServerab13web-app_https', // Marketo
|
|
1813
|
+
'IDE', // Doubleclick,
|
|
1814
|
+
'csv', // Reddit
|
|
1815
|
+
'edgebucket', // Reddit
|
|
1816
|
+
'loid', // Reddit
|
|
1817
|
+
'over18', // Reddit
|
|
1818
|
+
'recent_srs', // Reddit
|
|
1819
|
+
'session_tracker', // Reddit
|
|
1820
|
+
'token_v2', // Reddit
|
|
1821
|
+
'IDE', // Doubleclick
|
|
1822
|
+
'_uetsid', // Bing
|
|
1823
|
+
'_uetvid', // Bing
|
|
1824
|
+
'_uetsid_exp', // Bing
|
|
1825
|
+
'_uetvid_exp', // Bing
|
|
1826
|
+
'_uetmsclkid', // Bing
|
|
1827
|
+
'_clsk', // Bing
|
|
1828
|
+
'sa-user-id', // Stackadapt
|
|
1829
|
+
'sa-user-id-v2', // Stackadapt
|
|
1830
|
+
],
|
|
1831
|
+
onAccept: function () {
|
|
1832
|
+
|
|
1833
|
+
},
|
|
1834
|
+
onRevoke: function () {
|
|
1835
|
+
|
|
1836
|
+
},
|
|
1837
|
+
}
|
|
1838
|
+
]
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
CookieControl.load(config);
|
|
1842
|
+
</script>
|
|
1843
|
+
|
|
1844
|
+
</body>
|
|
1845
|
+
</html>
|