In This Article
Account Setup
Before connecting your site to LeadDyno, you'll want to sign up for an account here. Once you've signed up, you'll be ready to connect your site. You'll also want to take a look at our Getting Started guide.
How to Connect Your Site
Once you've signed up and logged into LeadDyno, the first step you'll want to take is connecting your site. Depending on the platform your site/store is built on, there are a few ways to connect LeadDyno.
Direct E-commerce Integrations
If you’re using one of the following e-commerce platforms, you’re in luck, you can leverage our simple integrations to track visitors, leads and purchases:
- Shopify - If your store is a Shopify store, good news - we have a direct integration for that. Simply follow these steps to get LeadDyno up and running with your tracking of visitors, leads and purchases.
- BigCommerce - If you're a Big Commerce customer, connecting with LeadDyno is straight forward. Follow this guide and you'll be well on your way.
- Wordpress + Woocommerce - LeadDyno offers a custom WordPress Plugin that allows you to install the LeadDyno tracking code very easily onto your WordPress-powered website/blog and WooCommerce powered online store.
- Ecwid - LeadDyno offers one-click integration with Ecwid based stores, making it incredibly easy to get an affiliate program going for your online shop.
- Recharge - If you have Shopify connected per above, Recharge will be another smooth direct integration.
Other E-commerce Integrations
For those using the following platforms, your journey into LeadDyno will still be straightforward. Simply follow the guide specific to your platform to get started:
- Chargebee - Track affiliate sales for your subscription business with Chargebee.
- Chargify - Track sales and manage your own Chargify marketing affiliate program with ease.
- Clickfunnels - We will guide you through configuring visitor and lead tracking for your Clickfunnels website.
- Cratejoy - Launch and grow your referral program for your Cratejoy subscription service.
- Infusionsoft - Track your leads, sales and manage your Infusionsoft by Keap affiliate program.
- Lightspeed - Automatically track visitors, leads and purchases on Lightspeed.
- Recurly - Whether you are Recurly Hosted or not, we have simple steps to get started with LeadDyno.
- Stripe - The integration between Stripe and LeadDyno allows for tracking of lead conversion, cancellation, and affiliate compensation for purchases made via Stripe.
- Wix - You're just a few steps away from getting your Wix store affiliate program connected.
Manual Connection
Not using one of the above e-commerce platforms? Fear not, we'll keep your setup as simple as possible too. You've got too options:
- Connecting LeadDyno to your website following the Visitor and Lead tracking below, and using a payment processor for tracking Purchases.
- Connecting LeadDyno to your website following the Visitor and Lead tracking below and using a payment processor not integrated with LeadDyno (i.e. Square). Note this requires REST API.
Installation
In order to be ready to connect LeadDyno to your site, access your public and private keys via the Account - Info section. From there, connecting LeadDyno to your site typically involves three simple steps:
- Installing Visitor Tracking;
- Configuring Lead Tracking;
- Adding Purchase Tracking.
We will guide you through each step with this guide. If you're ever stuck, please contact us. We are here to help you get set up quickly and pain-free.
Visitor Tracking
To get visitor tracking setup, add the following code to the <body> section of each page on your website:
Replace "YOUR_PUBLIC_KEY" with the public key from the Account - Info section. This will load the LeadDyno library and begin tracking where your visitors are coming from!
Note: This code should be on every page of your website, similar to Google Analytics.
Lead Tracking
Your next step in your LeadDyno setup is to capture the email address of your visitors since an email address is required in order to track affiliate referrals for your purchases. For our system to pick up the first and last name during lead submission, you need to ensure that their IDs are first_name and last_name.
There are three different ways to do this:
Option 1: AutoWatch
The easiest way to track leads is to use the autoWatch()
function, which will automatically watch all inputs on your site for a lead email. To enable this, simply add the following code to the LeadDyno tracking script:
Option 2: Watch
Alternatively, if you are familiar with jQuery, you can use selectors to tell LeadDyno to watch particular inputs for a lead email:
Option 3: Record Lead
If you want more control over when the lead email is captured, you can use the recordLead()
function in your own client site event listeners (e.g. on a form.submit () event handler): PayPal or Stripe )
Your LeadDyno Code
After adding the domain, your public key, and the lead tracking function to the LeadDyno code, here is how your code should look:
In case your LeadDyno code has a different structure, or if you're stuck on any of the steps above, please contact us at support@leaddyno.com so that we can lend a helping hand.
Purchase Tracking
Next up is purchase tracking, and it can be done in one of three ways:
- Using a purchase tracking integration (e.g. PayPal or Stripe);
- Using the LeadDyno REST API;
- Using the LeadDyno Javascript Library.
Option 1: Using Integrations
If you are using a billing system that we integrate with, purchase tracking is very simple: you can find more details in the Integrations section of our Help Center.
Option 2: The REST API
If you are not using one of the systems we integrate with, the next option is to use LeadDyno’s REST API.
You will issue POST
and DELETE
requests to the http://api.leaddyno.com/v1/purchases
URL to create and cancel purchases, respectively.
Additional parameters and documentation can be found in the Purchases API docs.
Option 3: Using Javascript
Your final option is to track purchases via the Javascript library. You can do this by adding the following javascript code to the ‘Thank You’ page after a user has purchased:
LeadDyno.recordPurchase("john@example.com", { purchase_amount: "12345" });
and, to record cancellations, invoke the following javascript:
LeadDyno.recordCancellation();
Note: Purchases created via the Javascript API will need to be approved via the Purchases Page before they are credited to affiliates, in order to prevent fraudulent purchases.
Note On Setting Up The Purchase Tracking: Please note that setting up the purchase tracking requires coding knowledge, as the documentation mentioned above needs to be modified to fit your use case. In the situation where the purchases don't get tracked through your REST API/Javascript implementation, we would recommend contacting a REST API/Javascript developer who can help with reviewing & editing the purchase tracking implementation.