Files
zeekay bc4ddf332b chore: rebase the tree onto upstream master fa1a9a60
Mechanically re-derived: bin/debrand runs over a fresh import of
posthog/posthog@fa1a9a60d4 (2026-08-06).
The pipeline (.hanzo/workflows), the Dockerfiles and bin/docker*
entrypoints, compose files, LLM.md and the squashed initial migration
are restored from the shipped tree, same as the previous import.

The prune's import-closure guard kept 21 products the new core now
imports; dropping them is a refactor now, recorded rather than forced.
2026-08-06 01:25:36 -07:00

65 lines
2.5 KiB
TypeScript

import { OnboardingComponentsContext, createInstallation } from 'scenes/onboarding/shared/OnboardingDocsContentWrapper'
import { StepDefinition } from '../steps'
import { DEFAULT_SNIPPET_METHODS, snippetFunctions } from './_snippets/js-snippet-builder'
import { SDK_DEFAULTS_DATE } from './_snippets/sdkDefaults'
export const getFramerSteps = (ctx: OnboardingComponentsContext): StepDefinition[] => {
const { CodeBlock, Markdown, dedent, snippets } = ctx
const JSEventCapture = snippets?.JSEventCapture
return [
{
title: 'Copy the web snippet',
badge: 'required',
content: (
<>
<Markdown>First, copy your Insights web snippet:</Markdown>
<CodeBlock
blocks={[
{
language: 'html',
file: 'HTML',
code: dedent`
<script>
${snippetFunctions(DEFAULT_SNIPPET_METHODS)}
insights.init('<ph_project_token>', {
api_host: '<ph_client_api_host>',
defaults: '${SDK_DEFAULTS_DATE}'
})
</script>
`,
},
]}
/>
</>
),
},
{
title: 'Add to Framer',
badge: 'required',
content: (
<>
<Markdown>
Go to your Framer project settings by clicking the gear in the top right. If you haven't
already, sign up for at least the **Mini** site plan. This enables you to add custom code. Then:
</Markdown>
<Markdown>
{`1. Go to the **General** tab in site settings.
2. Scroll down to the **Custom Code** section.
3. Under **End of <head> tag**, paste your Insights snippet.
4. Press save, and then publish your site.`}
</Markdown>
</>
),
},
{
title: 'Send events',
content: <>{JSEventCapture && <JSEventCapture />}</>,
},
]
}
export const FramerInstallation = createInstallation(getFramerSteps)