Framework guides
One guide per framework: the exact file the tag goes in, the snippet in that framework’s idiom, a consent-gated variant, the CSP note, client-side routing and how to check it works.
Every guide uses the same tag underneath. The SDK records a visit on each full page load; when your install page is a client-side route, the guide shows where to call InstallAttribution.init({ service, project }) as that route opens. For hosted site builders, each guide ends with a tip: if your pages change without a full reload, add the page-visit snippet.
#No framework
Plain HTMLThe head of every page
Vanilla JavaScript (ES modules)
src/main.jsjQuery, Alpine.js and htmx pagesYour page template
Web components and Lit
index.htmlServer-rendered apps (Rails, Laravel, Django, Express)Your shared layout template
#React
React + Vite (single-page app)
index.htmlCreate React App (legacy)
public/index.htmlNext.js (App Router)
app/layout.tsxNext.js (Pages Router)
pages/_app.tsxRemix
app/root.tsxReact Router (framework mode)
app/root.tsxGatsby
gatsby-ssr.jsPreact
index.htmlDocusaurus
docusaurus.config.jsNextra
app/layout.jsxFumadocs
app/layout.tsx
#Vue
Vue + Vite (single-page app)
index.htmlNuxt
nuxt.config.tsVitePress
.vitepress/config.mtsVuePress
.vuepress/config.tsQuasar
index.html
#Svelte
#Others
Angular
src/index.htmlSolidJS + Vite (single-page app)
index.htmlSolidStart
src/entry-server.tsxQwik City
src/root.tsxAstro
src/layouts/Layout.astroStarlight (Astro)
astro.config.mjsEmber.js
index.htmlEleventy
_includes/layouts/base.njkHugo
layouts/_partials/head.htmlJekyll
_includes/head.htmlMaterial for MkDocs
overrides/main.htmlSphinx
conf.pymdBook
theme/head.hbsZola
templates/base.html