Launching Referral Program for Squarespace is very simple with InviteReferrals. If you are not signed up with InviteReferrals already, you’ll need to do so. Sign up for free now !!. There are 2 code integrations that need to be done.
A. Javascript widget code to show referral campaign popup
B. Tracking Pixel integration : To track referral sales
A. Integrate Small Javascript Code to show InviteReferrals Referral Widget
Follow these steps to add InviteReferrals integration code to your store:
1. Login to Squarespace and go to “Settings -> Advanced”.
2. Click “Code Injection”.
3. Copy InviteReferrals integration code
Get your InviteReferrals integration code from the documentation section -> Javascript code. First login to the site and then copy the code so that the secret keys are already prefilled.
4. Paste InviteReferrals integration code in footer and save it.
B. Integrate Tracking Pixel to track Referral Conversions
Follow these steps to add tracking pixel at checkout page:
1. Go to “Settings -> Advanced -> Code Injection”.
2. Add the InviteReferrals tracking pixel under “Order Confirmation Page”.
Get your InviteReferrals tracking pixel from the documentation section -> Referral Tracking Pixel. First login to the invitereferrals site and then copy the static tracking pixel so that the secret keys are already prefilled.
Also replace the following two variables in the tracking code you have copied:
a) Replace {Unique tracking number like orderID or customerID} with {orderId}
b) Replace {email address of customer} with {customerEmailAddress}
Sample tracking pixel code :
<img style="position:absolute; visibility:hidden" src="http://www.ref-r.com/campaign/t1/settings?bid_e=D22655DE90FB47CC49FB12312312312123&bid=101&t=420&orderID={orderId}&email={customerEmailAddress}" />
Thats it! Your Referral Program for Squarespace is ready. You can customize anything from the admin panel. No code changes are needed on your Squarespace store.