Dynamite

Personalize your Next.js marketing site

Dynamite loads on a Next.js App Router site from one Script element in app/layout.tsx. There is no package to add. Your server HTML is the default version, and approved versions are applied in the browser after it renders.

Install on Next.js with one line of JavaScript

<script defer src="https://www.usedynamite.com/dynamite.js" data-site="your-site"></script>

The Script element

Before you start

Steps

Good to know

What happens on each visit

  1. A visit arrivesYour original page renders first.
  2. Signals are readCampaign, pages viewed, past visits, and any data you connected.
  3. A version is pickedOnly among the versions you approved, usually within 300 ms.
  4. The page changes, or staysAfter 1.5 s, or on any error, the original is kept.

Convert 20% more of your existing traffic

Dynamite’s real-time AI serves every visitor the content and offers most relevant to them, typically outperforming a static website by 20%.

You keep control

Dynamite doesn't generate new designs on the fly. You configure the possible designs on our dashboard, along with who they are for.

The Dynamite editor: a Targets list grouped by page on the left, a live preview of a soda store's homepage with the headline outlined as the selected target, and a Variants panel on the right with the original, a returning-buyer version and a gift-shopper version.

Questions

How does this interact with hydration?

The script loads after hydration and changes regions once the original has rendered. A later React re-render can put the original back, so pick regions that do not re-render from client state.

Does it work after client-side navigation?

Next.js loads the script once and does not re-run it between pages. Dynamite observes route changes itself and requests a fresh decision for each route.

What content is prerendered?

Your original HTML, exactly as today. Versions are applied in the browser and are absent from the server response.

See Dynamite with Next.js.

Or email samraaj@ion.design