Cratejoy Integration Guide

Introduction

This guide explains how to integrate your Cratejoy E-Commerce site with LeadDyno. The integration between Cratejoy and LeadDyno allows automated tracking of visitors, leads, and purchases, along with affiliate commission generation and cancellation based on the order status within Cratejoy.

Adding LeadDyno Tracking To Your Cratejoy Theme

Note: If you change your Cratejoy theme, you will need to repeat the steps in this section for the new theme.

Step 1

Go to the Cratejoy Control Panel and make sure you are logged into your account.

Step 2

After you are logged in, click the Design link on the left navigation menu, and select Designer for your currently published theme.

/img/cratejoy/cratejoy1.png

If you are presented with a warning box about editing your live theme, click the Edit Live Store link, but be sure you are only making changes that are described in this document. If you are making other theme changes, it is recommended that you copy your theme and make the changes there, and then publish the changed theme.

Step 3

Once in the designer, click the SEO Settings button: /img/cratejoy/cratejoy2.png

and then click the Site Settings button: /img/cratejoy/cratejoy3.png

Step 4

Scroll down to the bottom of the panel on the right to the Footer Code section and copy/paste the following code into the box:

<script type="text/javascript" src="https://static.leaddyno.com/js"></script>
<script>
  LeadDyno.key = "**YOUR_PUBLIC_KEY**";
  LeadDyno.recordVisit();
  LeadDyno.autoWatch();
</script>

where YOUR_PUBLIC_KEY is replaced with your LeadDyno Public Key, available here:

https://app.leaddyno.com/settings/account

/img/cratejoy/cratejoy4.png

After pasting in the code, click the green Save button at the top-right of the page.

You can now leave the designer view and go back to the main Cratejoy Control Panel.

Create Cratejoy API Credentials

Step 1

While back on the Cratejoy Control Panel, select the Settings option in the left navigation menu, and click API.

/img/cratejoy/cratejoy5.png

Step 2

From the API Credentials page, select the green Generate a new key button:

/img/cratejoy/cratejoy6.png

This will pop open a box with your new Client ID and Client Secret Key:

/img/cratejoy/cratejoy7.png

These are the values that need to be added to LeadDyno. Either copy/paste them to a text document, or leave this browser tab open and open a new tab to the LeadDyno Dashboard.

LeadDyno Integrations Settings

/img/cratejoy/cratejoy8.png

  • Paste the Client ID value from the previous section into the Client ID field.
  • Paste the Client Secret Key value from the previous step into the Client Secret Key field.
  • Click Save

/img/cratejoy/cratejoy8a.png

  • If the values were copied successfully, you should see the green Active checkmark indicating the connection was successful.

/img/cratejoy/cratejoy9.png

Conclusion

The Cratejoy integration is now connected, and as new Cratejoy orders are received, they will appear instantly within LeadDyno!

If you have any problems creating the Cratejoy integration, we can help! Contact support@leaddyno.com or use our in-app Live Chat to connect with a support representative.