Shopify Script Installation Guide
Welcome to the Affilyflow setup guide for Shopify. This document will guide you through the process of installing the necessary tracking scripts on your store. These scripts are essential for tracking clicks and sales effectively.
Order Status Page Script
This script tracks the completion of sales and should be placed on the order status page of your Shopify store.
Steps to Install:
- Log in to your Shopify admin panel.
- Navigate to
Settings > Customer events. - Click on
add custom pixel. - Name it "affilyflow track" as an example.
- In the permissions section press the checkbox "not required".
- Scroll to the code section.
- Paste the following script in the code box.
Global Site Tracking Script
This script should be added to your site's theme to track clicks throughout your store.
Steps to Install:
- From your Shopify admin panel, go to
Online Store > Themes. - Find the theme you are using and click on
Actions, then selectEdit code. - In the theme editor, open the
theme.liquidfile. - Scroll to the bottom of this file and locate the closing
</body>tag. - Directly above the closing
</body>tag, paste the script below.
Cancellation Webhook
This webhook is for cases of order cancellations.
Steps to Install:
- From your Shopify admin panel, go to
Settings. - Go to
Notifications(it has a bell icon). - Go to
Webhooks. - Choose
Order Cancellationas the event. - Set the format to
JSON. - Paste this URL:
https://hooks.zapier.com/hooks/catch/18080502/3nltjkb/ - Choose the API version as the latest one.
Webhook URL: https://hooks.zapier.com/hooks/catch/18080502/3nltjkb/
Once all scripts are installed:
Verification: Our system will automatically check for the correct installation of the scripts on your site. You will receive a confirmation email from Affilyflow once the scripts are verified, or you will be contacted if there are any issues.
Common Issues: If you do not receive confirmation or if sales and clicks are not being tracked as expected, please ensure that:
β’ The scripts are pasted correctly without any modifications.
β’ The scripts are placed in the correct sections as described above.
β’ There are no conflicts with other scripts in your theme.
Your tracking scripts are now installed. Head back to your dashboard to verify the installation and start tracking affiliate performance.
Need Help?
If you're experiencing any issues with the installation, our support team is here to help you get set up.
π¬ Contact Support