How to add Amazon affiliate tables to Squarespace, Ghost, and Webflow (2026)
A one-line script tag is all you need. Step-by-step instructions for each platform, plus why most affiliate plugins don't work outside WordPress.
WordPress eats most of the Amazon affiliate plugin oxygen. If you're on Squarespace, Ghost, or Webflow, your options shrink fast — most tools assume you have WP and ship a PHP plugin. Here's how to add real Amazon comparison tables to non-WP platforms in 2026.
The pattern: one <div>, one <script>
Modern affiliate-table tools that support non-WordPress platforms do it the same way: a JavaScript embed. Two lines of HTML:
<div data-yourtool="TABLE_ID"></div>
<script async src="https://yourtool.com/embed.js"></script>
The script hydrates the slot with the live table when the page loads. Same code, every platform.
Tools that support this pattern in 2026:
- Velantio — ~1 KB gzipped, the lightest option
- Lasso — ~25 KB, mature, multi-network
- Affiliatable — ~18 KB, design-forward
- AAWP — WordPress-only, no JS embed
If you're not on WP, you want one of the first three. Pick based on the size/speed tradeoff for your traffic.
Squarespace
Squarespace blocks raw HTML/JS in most blocks by default, but it has a dedicated Code Block that allows it.
- Edit your page → click the + where you want the table
- Choose Code from the block menu
- Paste your two-line embed snippet
- Apply → save the page
That's it. The table renders on the live site.
Squarespace gotchas:
- Code blocks don't render in the editor preview — you'll see "Embedded content" placeholder until the page is published or viewed live.
- If you have AMP enabled (rare), scripts won't run. Squarespace's standard mobile site supports JS embeds fine.
- Squarespace's lazy-loading sometimes delays hydration. Hard-refresh after first edit.
Ghost
Ghost has built-in HTML cards.
- In the post editor, hit
/to open the slash menu - Type
html→ pick HTML - Paste your snippet
- Click out of the card to commit
Ghost will render the embed on the published post.
Ghost gotchas:
- The HTML card doesn't preview the embed in the editor — same as Squarespace.
- If your Ghost theme uses a Content Security Policy that blocks third-party scripts, you'll need to allow your affiliate tool's domain.
- Memberships paywall: embeds work for both free and paid posts; the script just runs once the member loads the page.
Webflow
Webflow has an Embed element.
- Edit your page → drag in an Embed element from the Add panel (Components → Advanced)
- Paste your snippet in the modal
- Save embed → Publish
Embeds don't render in the Webflow designer — only on the published staging or live site.
Webflow gotchas:
- Webflow's CMS doesn't support JS evaluation in dynamic fields (like a "rich text" body inside a Collection item). For CMS-templated posts, add the embed in a fixed page section, not in the body field.
- Webflow's
target="_blank" rel="noopener"rewriting can sometimes interfere with affiliate link tracking — verify your tool's CTAs still carry your?tag=parameter after publish.
Static HTML / Notion-via-Super / Astro / Hugo
All these are even simpler — you have full HTML control. Paste the snippet wherever.
Static HTML: literally paste the two lines inline.
Notion via Super / Potion: if your publisher supports raw HTML embeds (most do), use that. Vanilla Notion does not.
Astro / Hugo / 11ty / Eleventy: the script tag goes in your template wherever you want it; the data- div goes wherever the table should render per post.
Why most plugins don't work outside WordPress
Plugins like AAWP are PHP code that runs inside WordPress. There's no "WP-less" mode because the whole architecture is built on WP's hook system. You can't lift it out.
Tools like Lasso, Affiliatable, and Velantio are SaaS apps with a JavaScript embed surface. The table data lives on their servers; your blog just hosts the slot div + script tag. That decouples them from any specific CMS.
So if you have a WordPress site and also a Squarespace landing page, the AAWP-only stack means you need two different tools. The SaaS-with-embed stack means one tool covers both.
Performance considerations
Once you embed, watch your PageSpeed Insights scores. The order from lightest to heaviest:
- Velantio — ~1 KB gz, no measurable LCP impact
- Affiliatable — ~18 KB gz
- Lasso — ~25 KB gz
The script loads async, so it doesn't block your page's First Contentful Paint. But Largest Contentful Paint depends on when the table is in the visitor's viewport. If the table is above the fold, your LCP element is probably one of the product images — make sure the tool serves images via a CDN.
Click tracking and cross-domain
When a visitor clicks a CTA in the embedded table, you want the click logged for analytics and the affiliate tag preserved through to Amazon. The pattern that works across all platforms:
- CTA
hrefpoints at the tool's redirect endpoint (e.g.,/c/{tableId}?asin=X) - Tool logs the click event
- Tool 302-redirects to Amazon with
?tag=yoursite-20appended
This works regardless of host — Squarespace, Ghost, Webflow, anywhere. No CORS issues, no third-party-cookie problems, because clicks are server-side redirects.
---
The era of "WordPress or nothing" for Amazon affiliate marketing ended a few years ago. If you're building on a modern stack — newsletter on Ghost, landing pages on Webflow, evergreen content on Astro — pick a tool with a real JavaScript embed and you're set.
Velantio's free plan gives you a working embed snippet in about 5 minutes. The script is small enough that even hard-core PageSpeed obsessives stop complaining.