How to Set up Affiliate Links on Squarespace?

You want to set up affiliate links on your Squarespace website - there are several methods to add them, from simple text links to URL mapping for link cloaking, each with different pros and cons. Squarespace supports affiliate links through text links in the editor, button blocks, image links, code blocks for custom HTML, and URL mapping for cloaked/branded links. Squarespace's native link builder does not support adding rel='sponsored' or rel='nofollow' attributes directly - you need to use code injection or markdown blocks for that. All affiliate links should open in a new tab and include proper FTC disclosure.
Adding affiliate links to a Squarespace site is straightforward for basic text links, but gets more involved when you need proper link attributes, cloaking, or tracking. This guide covers every method for adding affiliate links, how to handle disclosure requirements, link management, and common issues to avoid.
How to Set up Affiliate Links on Squarespace?

Squarespace doesn't have a dedicated affiliate link tool, but you can add affiliate links through several built-in features. The right method depends on whether you need simple text links, branded/cloaked URLs, or proper rel attributes for SEO compliance.

Method 1: Text Links in the Editor (Simplest)

The most basic way to add an affiliate link on Squarespace:

  1. Open the page or blog post you want to edit
  2. Highlight the text you want to link
  3. Click the link icon in the toolbar
  4. Paste your affiliate URL
  5. Click the gear icon and check "Open in New Window"
  6. Save

This works for most situations, but Squarespace's text editor doesn't let you add rel="sponsored" or rel="nofollow" attributes to the link. For basic affiliate linking where you're not concerned about SEO attributes, this is the fastest approach.

Method 2: URL Mapping for Cloaked Links

URL mapping lets you create clean, branded affiliate URLs like yoursite.com/go/product-name that redirect to your affiliate link. This is the best method for managing multiple affiliate links:

  1. Go to Settings > Advanced > URL Mappings
  2. Add a mapping: /go/product-name -> https://your-affiliate-link.com?ref=yourID
  3. Use yoursite.com/go/product-name throughout your site

The big advantage: if your affiliate link ever changes, you update it in one place instead of hunting through every page. It also looks cleaner to visitors than a long tracking URL.

Method 3: Code Block for Custom HTML Links

If you need to add rel="sponsored", rel="nofollow", or other custom attributes, use a code block:

  1. Add a "Code" block to your page
  2. Write your link HTML directly: <a href="https://your-affiliate-link.com" rel="sponsored nofollow" target="_blank">Product Name</a>
  3. Save

This gives you full control over link attributes. Google recommends using rel="sponsored" for affiliate links, so this method is the most SEO-compliant option on Squarespace.

Method 4: Button Blocks

Button blocks create prominent call-to-action buttons. Add one through the block inserter, paste your affiliate URL, and set it to open in a new tab. Buttons work well for product recommendations and "buy now" calls to action.

Like text links, Squarespace's button blocks don't support custom rel attributes natively. If you need rel="sponsored" on a button, you'll need to add it via code injection in the page header.

Method 5: Image Links

You can link any image on your Squarespace site to an affiliate URL. Click the image, go to the link settings, and paste your affiliate URL. This works well for product images, banners, and visual promotions.

How to Set up Affiliate Links on Squarespace - a Squarespace user contemplating on how to set up affiliate links on Squarespace

Adding rel="sponsored" Site-Wide with Code Injection

If you use a lot of affiliate links and want to add rel="nofollow sponsored" to all of them automatically, you can use a JavaScript snippet in your site's code injection (Settings > Advanced > Code Injection > Footer):

This script targets all external links matching your affiliate URL patterns and adds the proper rel attributes. It's a "set it and forget it" solution that ensures every affiliate link on your site is properly tagged for SEO.

FTC Disclosure Requirements

If you use affiliate links on your site, you're legally required to disclose the relationship. Here's what you need:

  • Per-page disclosure: Add a brief statement near your affiliate links: "This post contains affiliate links. I may earn a commission if you make a purchase through these links, at no additional cost to you."
  • Dedicated disclosure page: Create a page (linked from your footer) with your full affiliate disclosure policy
  • Placement: The disclosure must be visible before the affiliate links - not buried at the bottom of the page

Different affiliate programs have additional requirements. Amazon Associates, for example, requires a specific disclosure statement on every page with Amazon links.

Managing Multiple Affiliate Links

Once you have more than a handful of affiliate links, keeping track of them gets messy. Here are practical approaches:

Use URL Mapping as a Central Hub

Keep all your affiliate URLs in Squarespace's URL Mappings. Create a consistent naming convention like /go/brand-product. When a link changes, update the mapping once.

Track with a Spreadsheet

Maintain a spreadsheet with: the affiliate program name, your cloaked URL, the actual affiliate link, the commission rate, the cookie duration, and when the link was last verified. Check quarterly.

Add UTM Parameters for Tracking

Append UTM parameters to your affiliate links so you can see which pages drive the most clicks in Google Analytics. This helps you understand which content converts best and where to focus your efforts.

Common Mistakes to Avoid

  • Forgetting to open links in a new tab: Always set affiliate links to open in a new window so visitors don't navigate away from your site
  • Using raw affiliate URLs: Long tracking URLs look spammy. Use URL mapping or a link shortener
  • Not checking links regularly: Affiliate links can break when programs change tracking systems. Audit your links monthly using Squarespace's link checker or a third-party tool
  • Overloading pages with links: Too many affiliate links hurt user experience and can trigger search engine penalties. Keep link density reasonable
  • Missing disclosure: Not disclosing affiliate relationships violates FTC guidelines and most affiliate program terms
  • Using affiliate links in emails: Many programs (including Amazon Associates) prohibit affiliate links in emails. Check your program's terms

Optimizing Affiliate Link Performance

Place Links Where They Make Sense

Affiliate links perform best when they're embedded in relevant, helpful content - product reviews, tutorials, and comparison posts. Links dropped into unrelated content get ignored. Use natural, keyword-rich anchor text instead of "click here."

Use Squarespace's SEO Tools

Optimize the pages containing your affiliate links for search traffic. The more organic visitors you get to your review and tutorial content, the more clicks your affiliate links receive.

Track What's Working

Use analytics to identify which pages generate the most affiliate clicks and conversions. Double down on content that converts and improve or remove what doesn't.

Bottom Line

Setting up affiliate links on Squarespace is simple for basic text links but requires code blocks or code injection for proper SEO attributes. URL mapping is the best approach for managing multiple links - it keeps your URLs clean and lets you update links in one place. Always include FTC disclosure, open links in new tabs, and audit your links regularly to catch broken ones.

For more on monetizing your Squarespace site, check the Squarespace Affiliate section.

Frequently Asked Questions

How do I add affiliate links to my Squarespace site?

The simplest way is to highlight text in the editor, click the link icon, and paste your affiliate URL. For cloaked/branded links, use URL Mapping (Settings > Advanced > URL Mappings). For links with rel="sponsored" or rel="nofollow" attributes, use a Code block with custom HTML.

Can I add rel='nofollow' to affiliate links on Squarespace?

Not through the standard text editor - Squarespace doesn't support custom rel attributes on regular links. You need to use a Code block with manual HTML, or add a JavaScript snippet through code injection that automatically adds rel="nofollow sponsored" to your affiliate URLs.

What is URL mapping on Squarespace and how does it help with affiliate links?

URL mapping lets you create clean redirect URLs like yoursite.com/go/product-name that point to your affiliate link. It's found in Settings > Advanced > URL Mappings. The advantage is you can update the destination in one place if your affiliate link changes, instead of editing every page.

Do I need to disclose affiliate links on my Squarespace site?

Yes. The FTC requires disclosure of affiliate relationships. Add a statement near your affiliate links on each page and create a dedicated disclosure page linked from your footer. Some programs like Amazon Associates have additional specific disclosure requirements.

Can I use affiliate links in Squarespace emails?

Check your affiliate program's terms first. Many programs - including Amazon Associates - prohibit affiliate links in emails. If your program allows it, you can add affiliate links to Squarespace Email Campaigns, but proceed with caution and review the rules.

How do I track affiliate link performance on Squarespace?

Use your affiliate program's dashboard for click and conversion data. For additional tracking, add UTM parameters to your affiliate links and monitor them in Google Analytics. Squarespace's built-in analytics show page traffic but don't track outbound link clicks natively.
Keep Reading

* Read the rest of the post and open up an offer
Top