Squarespace

LeadDyno offers a very simple integration with Squarespace, making it incredibly easy to get an affiliate program going for your online Squarespace shop.

In this article

Requirements

The Squarespace integration requires that you're subscribed to the Business or Commerce plan.

Configuring Your Squarespace Site

To integrate Squarespace and LeadDyno, you will need to add LeadDyno tracking code to your Squarespace site via the  Code Injection settings page in two places. 

From your Squarespace store visit Settings > Advanced.

Then click on Code Injection

You will now add the LeadDyno tracking code to every page of your website. To get the code visit your LeadDyno Dashboard > Tools > LeadDyno Javascript and click Copy Code.

Paste the LeadDyno tracking code in the section entitled  Footer:

The next step is to add the following code to the Order Confirmation Page:

<script type="text/javascript" src="https://static.leaddyno.com/js"></script>
<script>
    LeadDyno.key = "YOUR_PUBLIC_KEY";
    LeadDyno.recordPurchase("{customerEmailAddress}",
        {
            purchase_code: {orderId},
            purchase_amount: {orderSubtotal}
        }
    );
</script>
		

Where your public key (from the code above) is substituted for  YOUR_PUBLIC_KEY above and click Save. 

At this point, your Squarespace shop will be fully integrated with LeadDyno, which will track the source of all incoming leads, including affiliates and tracking campaigns.

Enabling AutoApprove (Optional)

Because purchase information is coming from the LeadDyno javascript library, purchases must be approved before affiliate commissions are generated. If you find this a hassle and want to simply automatically approve purchases, you can enable “AutoApprove” of purchases by clicking the “AutoApprove” button on the purchase screen in LeadDyno:

Limitations / Known Issues

We recommend disabling express checkout options (such as Google Pay, ShopPay, PayPal, AmazonPay) as the purchases made through express checkout will get tracked, but the affiliate referral most likely won't. This is due to the fact that the express checkout forms are hosted by iframe elements that can't be penetrated by Javascript, so the LeadDyno code can not interact with it and ensure that the lead is tracked when the purchase is made.

Still need help? Contact Us Contact Us