> Load the Plandalf script once, then open a checkout from a button, show it inline on the page, or share a hosted link.

Source: https://plandalf.com/docs/get-started/add-to-your-site

Get started

# Add Plandalf to your site

A checkout reaches buyers in one of three ways: a button on your site that opens it, a checkout shown inline in your page, or a hosted link you share anywhere. The first two need one script on your site.

What's your site built with?

-   [WordPress](https://plandalf.com/docs/websites/wordpress)
-   [Webflow](https://plandalf.com/docs/websites/webflow)
-   [Framer](https://plandalf.com/docs/websites/framer)
-   [Carrd](https://plandalf.com/docs/websites/carrd)
-   [Squarespace](https://plandalf.com/docs/websites/squarespace)
-   [Wix](https://plandalf.com/docs/websites/wix)
-   [React](https://plandalf.com/docs/frameworks/react)
-   [Next.js](https://plandalf.com/docs/frameworks/nextjs)
-   [Vue](https://plandalf.com/docs/frameworks/vue)
-   [Astro](https://plandalf.com/docs/frameworks/astro)
-   [SvelteKit](https://plandalf.com/docs/frameworks/sveltekit)
-   [Plain HTML](https://plandalf.com/docs/frameworks/html)

## Load the script

Paste this before `</body>` on every page that sells something. Replace `YOUR-ORG` with your Plandalf subdomain, or copy the exact line from your checkout's **Share** screen.

```html
<script async src="https://YOUR-ORG.plandalf.dev/js/plandalf-sdk.js"></script>
```

The script loads without slowing your page. It finds Plandalf buttons and inline checkouts when the page loads, and any your site adds later.

## Open a checkout from a button

Add `data-plandalf-present` to any button or link, with your checkout's slug as the value. Clicking it opens the checkout over your page.

```html
<button data-plandalf-present="YOUR-CHECKOUT">Buy Now</button>
```

To open it from your own code instead, see [Open a checkout from code](https://plandalf.com/docs/developers/open-a-checkout).

## Show a checkout in the page

Add `data-plandalf-mount` to an empty element. The checkout renders inside it.

```html
<div data-plandalf-mount="YOUR-CHECKOUT" style="min-height: 480px"></div>
```

## Share a hosted link

On the **Share** screen, choose **Hosted link** and copy **Your checkout link**. Use it in emails, social posts, link-in-bio pages, or anywhere you can't add a script.

[![The Share screen with Hosted link selected and the checkout link ready to copy](https://plandalf.com/docs/shots/get-started/share-hosted.webp)](https://plandalf.com/docs/shots/get-started/share-hosted.webp)

A hosted link works anywhere you can paste a URL.

## Find your checkout's slug

The slug is the last part of your checkout link, and the Share screen puts it into every snippet for you.

## Guides for your platform

-   [**WordPress**Add Plandalf to a WordPress site with a footer plugin or your theme, then add checkout buttons with a Custom HTML block.](https://plandalf.com/docs/websites/wordpress)
-   [**Divi**Add a Plandalf checkout to a Divi site. Paste the script into Divi's Theme Options once, then give a Button module one attribute or use a Code module.](https://plandalf.com/docs/websites/divi)
-   [**MemberPress**Sell MemberPress memberships through a Plandalf checkout with the Plandalf for MemberPress plugin. Plandalf takes the payment; MemberPress keeps access.](https://plandalf.com/docs/websites/memberpress)
-   [**Webflow**Add Plandalf to a Webflow site in Site settings, then open a checkout from any button with a custom attribute.](https://plandalf.com/docs/websites/webflow)
-   [**Carrd**Sell from a Carrd site with a hosted checkout link on any button, or add the Plandalf script with an Embed element on Pro Standard.](https://plandalf.com/docs/websites/carrd)
-   [**Framer**Add Plandalf to a Framer site in Site Settings, then open a checkout from an Embed component.](https://plandalf.com/docs/websites/framer)
-   [**Squarespace**Add Plandalf to a Squarespace site with Code Injection, then add checkout buttons with a Code Block.](https://plandalf.com/docs/websites/squarespace)
-   [**Wix**Sell from a Wix site with a hosted checkout link on any button, or an inline checkout in an Embed HTML element.](https://plandalf.com/docs/websites/wix)
-   [**Ghost**Add Plandalf to a Ghost site with Code injection, then add checkout buttons to posts and pages with an HTML card.](https://plandalf.com/docs/websites/ghost)
-   [**Shopify**Add Plandalf to a Shopify theme to sell upsells, subscriptions and limited-time offers beside your Shopify cart.](https://plandalf.com/docs/websites/shopify)
-   [**GoHighLevel**Add a Plandalf checkout to a GoHighLevel funnel or website page, then send each buyer back into your HighLevel CRM.](https://plandalf.com/docs/websites/gohighlevel)
-   [**Brilliant Directories**Add a Plandalf checkout, buy button or countdown to a Brilliant Directories site, then put each buyer on a BD membership plan.](https://plandalf.com/docs/websites/brilliantdirectories)
-   [**Kajabi**Add a Plandalf checkout to a Kajabi page with a Custom Code block, beside your Kajabi offers.](https://plandalf.com/docs/websites/kajabi)
-   [**beehiiv**Send beehiiv readers to a hosted Plandalf checkout from posts and website pages, and add a live deadline timer countdown to your emails.](https://plandalf.com/docs/websites/beehiiv)

-   [**Plain HTML**Add Plandalf to any site you edit by hand: one script tag, then a data attribute on any button or element.](https://plandalf.com/docs/frameworks/html)
-   [**React (Vite)**Open Plandalf checkouts from a JSX attribute with the hosted script or from a React click handler with the React package.](https://plandalf.com/docs/frameworks/react)
-   [**Next.js**Add Plandalf to the App Router or Pages Router with next/script or the React provider.](https://plandalf.com/docs/frameworks/nextjs)
-   [**Vue**Open Plandalf checkouts from Vue templates with the hosted script or use composables in Vue 3.5 and later.](https://plandalf.com/docs/frameworks/vue)
-   [**Nuxt**Add Plandalf to Nuxt with a hosted script in nuxt.config.ts or with the Vue package in a Nuxt plugin.](https://plandalf.com/docs/frameworks/nuxt)
-   [**SvelteKit**Add Plandalf to SvelteKit with a hosted script or use Svelte stores and actions to open checkouts and display deadline timers.](https://plandalf.com/docs/frameworks/sveltekit)
-   [**Angular**Add a checkout to an Angular template with the hosted script, or use the Angular package to open one from a component.](https://plandalf.com/docs/frameworks/angular)
-   [**Astro**Add Plandalf to an Astro site in your base layout, then open checkouts from attributes in any page or component.](https://plandalf.com/docs/frameworks/astro)

Something wrong or missing? Email [hello@plandalf.com](mailto:hello@plandalf.com).
