> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracklysms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Squarespace

# Squarespace Integration Guide

Squarespace native forms cannot POST to external URLs directly. Use Zapier, an iframe embed, or universal methods instead.

## Method 1: Zapier (for native Squarespace forms)

### Step 1: Create your form in Squarespace

1. Add a **Form Block** to your page
2. Add fields: Phone Number (required), First Name, Last Name
3. Add a consent checkbox or disclaimer text with TCPA language

### Step 2: Connect via Zapier

1. Create a new Zap in [Zapier](https://zapier.com)
2. **Trigger**: Squarespace → New Form Submission
3. **Action**: Webhooks by Zapier → POST
4. Configure the action:
   * **URL**: `https://api.tracklysms.com/api/v2/optins/webhook`
   * **Payload Type**: JSON
   * **Headers**: `X-Api-Key: trk_your_api_key_here`
   * **Data**:
     * `phone_number`: map to your phone field
     * `list_id`: your Trackly sending list ID
     * `consent_text`: your TCPA consent language
     * `first_name`: map to first name field
     * `last_name`: map to last name field
5. Test and enable the Zap

## Method 2: Iframe Embed (No Zapier needed)

1. Add a **Code Block** to your page (requires Business plan or higher)
2. Paste:
   ```html theme={null}
   <iframe src="https://api.tracklysms.com/optin/page/YOUR_PUBLIC_TOKEN" width="100%" height="520" frameborder="0" style="border:none;max-width:480px;margin:0 auto;display:block;"></iframe>
   ```
3. Replace `YOUR_PUBLIC_TOKEN` with your opt-in configuration's public token
4. Toggle **Display Source** off

## Method 3: Script Tag

1. Go to **Settings → Advanced → Code Injection**
2. Paste your script tag in the **Footer** field:
   ```html theme={null}
   <script src="https://api.tracklysms.com/optin/script.js?token=YOUR_PUBLIC_TOKEN" async></script>
   ```
3. This adds the opt-in widget to all pages on your site

## Method 4: Universal Methods (No integration needed)

Since Squarespace forms are limited, consider these alternatives that bypass your website entirely:

* **Keyword opt-in**: Promote "Text JOIN to (555) 555-5555" on your site
* **QR code**: Download from the QR Code card in your opt-in config editor and add as an image
* **Subscribe link**: Share `https://api.tracklysms.com/s/<your-slug>` via a button link
