Pre-Installation: Account Setup
Installing LeadDyno for your site typically involves three steps:
- Installing Visitor Tracking
- Configuring Lead Tracking
- Adding Purchase Tracking
This guide will help you through each step.
To get visitor tracking going, add the following code to each page on your site:
Where "YOUR_PUBLIC_KEY" is replaced with the public key from your user page above. 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 site, similar to Google Analytics.
The next step is to capture the email address of your visitors. There are a few different ways to do this:
The easiest way to track leads is to call
autoWatch(), which will automatically watch all inputs on your site for a lead email. To enable this, simply add the following code:
If you are familiar with jQuery, you can use selectors to tell LeadDyno to watch particular inputs for a lead email:
jQuery, you can use selectors to tell LeadDyno to watch particular inputs for a lead email:
If you want more control over when the lead email is captured, you can call the
recordLead() function in your own client site event listeners (e.g. on a form.submit () event handler): PayPal or Stripe )
Purchase tracking can be done in one of three ways:
- Using a purchase tracking integration (e.g. PayPal or Stripe )
- Using the LeadDyno REST API
If you are using a billing system that we integrate with, purchase tracking is very simple: a link to documentation for supported integrations is in the sidebar of every documentation page.
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
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.