Wix Platform Integration | Zoho Thrive

Wix Platform Integration

Wix is another platform integration that comes with Zoho Thrive built in. Follow the steps below to integrate your Wix site with Thrive:
 
Create a new app
  1. Go to Wix Developers site and log in using your Wix credentials.
  1. On the My Apps page, click Start Building if you’re creating an app for the first time. Otherwise, click Create New App.
  1. Under Set Up Your App, complete Read the App Guidelines and Read Terms of Use.
  1. Click Add Webhooks -> + Add Webhook under Set Up Your App.
NotesThe webhook helps notify whenever an order is created on your site.
  1. Select Wix Stores as the API Category and choose Webhook Event as Order Approved.
  2. In the Callback URL field, enter https://localhost:8000/
Notes
This URL here is just a temporary entry; once the connection is complete, you will modify it.
  1. Under Permissions, choose Manage eCommerce - all permissions
           Webhook configuration in Wix
 
Click Subscribe and return to Dashboard. Click Set Up OAuth under Set Up Your App.
 
Setting up OAuth in Wix

By setting up OAuth, you can allow addition of webhooks and use of APIs, which are a must for the integration.
  1. In the OAuth page, go to Advanced OAuth section and enter a below Redirect URL based on the Data Center where you run Zoho Thrive.
  
 
Data Center
 
 
Thrive Domain (for reference)
 
Redirect URL
             
US
 
 

EU
 
 
SA
 
 
       
IN
 
 
 
      
AU
 
 

 
CA
 
 
 
  1. In the App URL field, enter your respective domain - refer to the above table.
Notes
Avoid leaving spaces before and after filling the URL.
  1. Make note of the App Key and App Secret Key displayed and click Save.
            OAuth section in in Wix
  1. Return to Dashboard and click Add Permissions under Set Up Your App. By adding permissions, you will grant Thrive access to your site’s data that are required to run the programs.
  1. Allow all the below permissions by choosing the respective permission category and permission scope after clicking  + Add Permissions.
Notes
You need to save each permission after configuring it.
 
For the sake of transparency, we have added an explanation alongside each permission.
 
 
 
Permission Category 
 
Permission Scopes
 
 
Need
 
 
 
Wix Developers
 
 
Manage Embedded Scripts, Read Site Owner Email
 
 
These scopes allow us to push the tracking scripts for the program and read the site owner's email address.
 
 
Wix Stores
 
 
Read Orders; Manage Orders
 
These scopes are used to view and manage the orders that are placed on your site. They help manage all purchase related tasks and their management.
 
 
Wix Payments
 
Manage Transactions
 
This scope is used to manage the purchase transactions that take place on your site. It helps verify the legitimacy of the purchase.
 
 
 
  Contacts & Members
 
 
Read Members and Contacts - all read permissions

This scope is used to view all your member and contact details. It helps manage and verify the customers participating in the loyalty program and the ones referred by another customer of the same site.  
 
 
 
Coupons
 
 
Manage Coupons
 
This scope is used to manage all the coupons on your site. It allows configuration and creation of coupons for your programs.
 
 
  
Complete integration with Thrive
1. Open Zoho Thrive in a new tab.
2. Go to the top-right corner and click the Settings icon.
3. Then navigate to Integrations -> Store Integrations -> Wix.
4. In the pop-up, enter the noted App Key, App Secret Key, and the Public key.
5. Click Connect.

Zoho Thrive - Wix Integration
 
The action will open a page with a list of sites available on your Wix account.  
 
6. In the displayed page, Select the site that you want to integrate with Thrive. If you’re signed in to your Wix account, the above action will trigger a permissions acceptance page that looks like the one below. If not, the Wix sign up page will appear in a new window where you need to complete signing in to get to this page.


Acknowldegement page between Wix and Zoho Thrive
7. Click Agree & AddThis will create a brand for your Wix site within Thrive, and you’ll be directed to the Scripts page in Thrive’s UI.

8. Copy the Purchase Webhook URL displayed.

Purchase Webhook URL Sample in Zoho Thrive
9. Head back to your Wix Developers site.
10. Go to Webhooks and Edit the previously-added webhook (shown in the picture.)
11. Paste the copied URL in the Callback URL field.
12. Click Save.
 
            Webhooks Page - Wix
 
Add Thrive Scripts to Your Wix Site
  1. Open your Wix site in a new tab.
  2. Click on Select Site for the site where you want to add the scripts.
  3. Go to Settings > Custom Code.
  4. Click Add Code in the Head section of the Custom Code tab.
  5. Head back to the Thrive admin UI.
  6. Go to the top-right corner and click the Settings icon. Then navigate to Integrations ->  Store Integrations -> Wix -> View Details.
  7. Paste the Tracking Script into the code area of the Wix Custom Code tab.
  8. Provide a name for the script, such as 'Thrive Script.'
  9. Under Add Code to Pages > All Pages, select Load Code Once.
  10. Select Essential under Code Type.
  11. In the Wix Site Editor, go to Add Elements -> Embed Code -> Velo Dev Mode.
  12. Under Main Pages, open masterPage.js and paste the code below.
    Info
    import wixUsers from 'wix-users';
    import wixWindow from 'wix-window';
        $w.onReady(function () {
             wixUsers.onLogin((user) => {
                    wixWindow.postMessage("thriveLoginEvent");
             });
       });
  13. Save your changes and publish the site.

 You are now all set to build loyalty program using Thrive for your Wix site. 
 
For any questions, please contact support@zohothrive.com.