Integrations With AffiliatefoxLast updated: 2023-11-06 By AFOX Team logo

AffiliateFox provides over 23+ integration options, enabling seamless connections to enhance your experience. With our extensive array of integrations, you gain access to a versatile toolkit to maximize capabilities and achieve goals. Among these integrations is Zapier, and you can find a detailed guide available here for easy reference.

Integration With JavaScript

If your website support javascript then you can refer javascript integration guide to integrate our visit, leads, and conversion method with custom parameter in your source code to trigger.

Visits

This method is used to trigger visit requests from your website to AffiliateFox portal to store it. You can copy and paste below source code to the store to request a visit with details parameters like affiliate reference. On AffiliateFox portal you can see the count of a visit saved by each affiliate.

<script src="https://api.AffiliateFox.com/v4.js" async></script>
<script>

(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var options = {'integration': "javascript"};
var source = { "account_id" : "<PASTE YOUR ACCOUNT SCRIPT ID HERE>" };
afox("initiate", source, options);
afox("hit", source, options);
</script>
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);
Lead

This method is used to trigger lead requests from your website to AffiliateFox portal to store it. You can copy and paste below source code to the store to request leads with details parameters like affiliate reference. On AffiliateFox portal you can see the count of leads saved by each affiliate.

<script src="https://api.AffiliateFox.com/v4.js" async></script>
<script>

(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var account_id = "<PASTE YOUR ACCOUNT SCRIPT ID HERE>";
var options = {'integration': "javascript"};
var source = { "account_id" : "<PASTE YOUR ACCOUNT SCRIPT ID HERE>" };
afox("initiate", source, options);
options = {'unique_lead_id': 'YOUR CLIENT ID', 'integration': "javascript"};
afox("lead", source, options);
</script>
source
You need to pass company script id here like { "account_id" : "YOUR ACCOUNT ID" }
You will get account script key in company settings section.
options
You need to pass your system unique lead id here. This is mostly used on your system for various purpose. This is used on our system for cross referring purpose. You need to pass this value like {'unique_lead_id': 'YOUR CLIENT ID ', 'integration':'javascript'}
YOUR CLIENT ID
You need to pass this value like '12345'
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when signup request done and on success signup request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in lead method like  
afox("lead", source, options, callback);
Conversion

Whenever a conversion takes place, you will need to signal our platform that this happened. To do so, you can use our conversion page code. This code is usually placed on your thank you page, right after the order has been completed, or the lead data has been collected. There are several levels of integration possible with this code. By far the easiest is by using the following snippet:.

<script src="https://api.AffiliateFox.com/v4.js" async></script>
<script>

(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var options = {'integration': "javascript"};
var source = { "account_id" : "<PASTE YOUR ACCOUNT SCRIPT ID HERE>"};
afox("initiate", source, options);
options = {
'unique_conversion_id': 'YOUR UNIQUE CONVERSION ID',
'purchase_value': 'YOUR PURCHASE VALUE',
'unique_lead_id': "YOUR CLIENT ID",
'integration': "javascript"
};
afox("conversion", source, options);
</script>
Source
You need to pass account script key here i.e account like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With Stripe

If your website support Stripe, then you can refer to the javascript integration guide to integrate our visit, leads, and conversion method with custom parameter in your source code to trigger.

Visit
to trigger visit requests from your website to AffiliateFox portal to store it. You can copy and paste below source code to the store to request a visit with details parameters like affiliate reference. On AffiliateFox portal you can see the count of a visit saved by each affiliate.

<script src="https://api.AffiliateFox.com/v4.js" async></script>
<script>

(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var options = {'integration': "stripe"};
var source = { "account_id" : "<PASTE YOUR ACCOUNT SCRIPT ID HERE>" };
afox("initiate", source, options);

afox("hit", source, options);
</script>
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);
Lead

This method is used to trigger lead requests from your website to AffiliateFox portal to store it. You can copy and paste below source code to the store to request leads with details parameters like affiliate reference. On AffiliateFox portal you can see the count of leads saved by each affiliate.

<script src="https://api.AffiliateFox.com/v4.js" async></script>
<script>

(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var options = { 'integration': "stripe"};
var source = { "account_id" : "<PASTE YOUR ACCOUNT SCRIPT ID HERE>" };
afox("initiate", source, options);
options = {
'unique_lead_id': 'STRIPE CUSTOMER ID',
'integration': 'stripe'
};
afox("lead", source, options);
</script>
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
You need to pass your system unique lead id here. This is mostly used on your system for various purpose. This is used on our system for cross referring purpose. You need to pass this value like {'unique_lead_id': 'STRIPE CUSTOMER ID', 'integration': 'stripe'}
STRIPE CUSTOMER ID
You need to pass this value like '12345'
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when signup request done and on success signup request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in lead method like  
afox("lead", source, options, callback);
Conversion

This method is used to trigger conversion requests from your website to AffiliateFox portal to store it. You can copy and paste below source code to the store to request conversions with details parameters like affiliate reference. On AffiliateFox portal you can see the count of leads saved by each affiliate

<script src="https://api.AffiliateFox.com/v4.js" async></script>
<script>

(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var options = { 'integration': "stripe"};
var source = { "account_id" : "<PASTE YOUR ACCOUNT SCRIPT ID HERE>"};
afox("initiate", source, options);

options = {
'stripe_charge_id': 'STRIPE CHARGE ID',
'order_amount' : 'ORDER AMOUNT',
'unique_lead_id' : 'STRIPE CUSTOMER ID',
'integration': 'stripe'
};
afox("conversion", source, options);
</script>
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'stripe_charge_id': 'STRIPE CHARGE ID ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'STRIPE CUSTOMER ID', 'stripe_charge_id' : 'STRIPE CHARGE ID', 'integration': 'stripe' }
STRIPE CHARGE ID
You need to pass your conversion purchase amount in $ like '500'
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
STRIPE CUSTOMER ID
You need to pass this value like '12345'
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Rest API Integrations

Visit

check the URL for the presence of the ?ref= query parameter. If it is present, get the value and create a visit:

 curl -X POST -H 'Content-Type: application/json' -H 'Authorization: YOUR API KEY HERE' https://www.secure.affiliatefox.com/api/affiliatefoxrestapi -d ' 
{
    "referrer" : "Your HTTP Referrer",
    "user-agent" : "Visitor user agent",
    "referral-code" : "Your referral code",
    "status" : "visit",
    "ip" : "0.0.0.0"
}'
YOUR API KEY HERE
(Required)
This should be your company script id which is created when registered on our website
You will get account script key in company settings section.
referrer
(Required)
The HTTP referrer
user-agent
(Required)
The full user agent of the visitor.
referral-code
(Required)
This is referral code present in url ?ref=
status
(Required)
visit
ip
(Optional)
The ip address of the visitor. Will be used for fraud detection.
Lead

Next use the visit-id to create a lead through the API.

 curl -X POST -H 'Content-Type: application/json' -H 'Authorization: YOUR API KEY HERE' https://www.secure.affiliatefox.com/api/affiliatefoxrestapi -d '
{
     "referrer" : "Your HTTP Referrer",
     "user-agent" : "Visitor user agent",
     "status" : "lead",
     "visit-id":"Your affiliate_key/Visit-id available in cookies",
     "lead-id" : "Your LEAD ID",
     "ip" : "0.0.0.0"
}'
						
YOUR API KEY HERE
(Required)
This should be your company script id which is created when registered on our website
You will get account script key in company settings section.
referrer
(Required)
The HTTP referrer
user-agent
(Required)
The full user agent of the visitor.
status
(Required)
lead
visit-id
(Required)
Your affiliate_key/Visit-id available in cookies
unique-lead-id
(Required)
Your UNIQUE LEAD ID
ip
(Optional)
The ip address of the visitor. Will be used for fraud detection.
Conversion

Whenever a conversion takes place, you will need to signal our platform that this happened. Use visit-id to create a Conversion through the API.

curl -X POST -H 'Content-Type: application/json' -H 'Authorization: YOUR API KEY HERE' https://www.secure.affiliatefox.com/api/affiliatefoxrestapi -d '
{
     "referrer" : "Your HTTP Referrer",
     "user-agent" : "Visitor user agent",
     "status" : "conversion",
     "visit-id":"Your affiliate_key/Visit-id available in cookies",
     "ip" : "0.0.0.0"
}'
				
						
YOUR API KEY HERE
(Required)
This should be your company script id which is created when registered on our website
You will get account script key in company settings section.
referrer
(Required)
The HTTP referrer
user-agent
(Required)
The full user agent of the visitor.
status
(Required)
conversion
visit-id
(Required)
Your affiliate_key/Visit-id available in cookies
ip
(Optional)
The ip address of the visitor. Will be used for fraud detection.
Cross-referencing and duplication

We strongly advise you to send along a unique conversion id when tracking a conversion. This id can be anything that is meaningful to you, like an order id, user id, lead email address etc.. If you send a conversion id along in our tracking code, you will then be able to see this id alongside the conversion data on our platform. This will allow you to cross-reference data on our platform with your own administration. Next to that, we perform automatic duplication for you based on the id. Use visit-id to create a Conversion through the API.

curl -X POST -H 'Content-Type: application/json' -H 'Authorization: YOUR API KEY HERE' https://www.secure.affiliatefox.com/api/affiliatefoxrestapi -d '
{
     "referrer" : "Your HTTP Referrer",
     "user-agent" : "Visitor user agent",
     "status" : "conversion",
     "visit-id":"Your affiliate_key/Visit-id available in cookies",
     "unique-lead-id" : "Your LEAD ID",
     "unique-conversion-id" : "Your CONVERSION ID",
     "amount" : "Your Order amount",
     "ip" : "0.0.0.0"
}'
				
YOUR API KEY HERE
(Required)
This should be your company script id which is created when registered on our website
You will get account script key in company settings section.
referrer
(Required)
The HTTP referrer
user-agent
(Required)
The full user agent of the visitor.
status
(Required)
conversion
visit-id
(Required)
Your affiliate_key/Visit-id available in cookies
unique-lead-id
(Required)
Your UNIQUE LEAD ID
unique-conversion-id
(Optional)
Your UNIQUE CONVERSION ID. if your commission structure plan is Cross-referencing and duplication then pass this parameter in request
amount
(Optional)
Your Order amount. if your commission structure plan is percentage based then pass this parameter in request
ip
(Optional)
The ip address of the visitor. Will be used for fraud detection.
Percentage-based commissions

If you would like to use percentage based commissions, i.e. to have the commission be a percentage of e.g. the order amount, you will need to send along this amount in the conversion code like so. Use visit-id to create a Conversion through the API.

curl -X POST -H 'Content-Type: application/json' -H 'Authorization: YOUR API KEY HERE' https://www.secure.affiliatefox.com/api/affiliatefoxrestapi -d '
{
     "referrer" : "Your HTTP Referrer",
     "user-agent" : "Visitor user agent",
     "status" : "conversion",
     "visit-id":"Your affiliate_key/Visit-id available in cookies",
     "unique-lead-id" : "Your LEAD ID",
     "unique-conversion-id" : "Your CONVERSION ID",
     "amount" : "Your Order amount",
     "ip" : "0.0.0.0"
}'
				
						
YOUR API KEY HERE
(Required)
This should be your company script id which is created when registered on our website
You will get account script key in company settings section.
referrer
(Required)
The HTTP referrer
user-agent
(Required)
The full user agent of the visitor.
status
(Required)
conversion
visit-id
(Required)
Your affiliate_key/Visit-id available in cookies
unique-conversion-id
(Optional)
Your UNIQUE CONVERSION ID. if your commission structure plan is Cross-referencing and duplication then pass this parameter in request
unique-lead-id
(Optional)
Your UNIQUE LEAD ID. if your commission structure plan is Cross-referencing and duplication then pass this parameter in request
amount
(Required)
Your Order amount
ip
(Optional)
The ip address of the visitor. Will be used for fraud detection.
Advanced Conversion

use visit-id to create a Conversion through the API.

curl -X POST -H 'Content-Type: application/json' -H 'Authorization: YOUR API KEY HERE' https://www.secure.affiliatefox.com/api/affiliatefoxrestapi -d '
{
     "referrer" : "Your HTTP Referrer",
     "user-agent" : "Visitor user agent",
     "status" : "conversion",
     "visit-id":"Your affiliate_key/Visit-id available in cookies",
     "unique-lead-id" : "Your LEAD ID",
     "unique-conversion-id" : "Your CONVERSION ID",
     "amount" : "Your Order amount",
     "ip" : "0.0.0.0"
}
						
YOUR API KEY HERE
(Required)
This should be your company script id which is created when registered on our website
You will get account script key in company settings section.
referrer
(Required)
The HTTP referrer
user-agent
(Required)
The full user agent of the visitor.
status
(Required)
conversion
visit-id
(Required)
Your affiliate_key/Visit-id available in cookies
unique-conversion-id
(Required)
Your UNIQUE CONVERSION ID
unique-lead-id
(Required)
Your UNIQUE LEAD ID
amount
(Required)
Your Order amount
ip
(Optional)
The ip address of the visitor. Will be used for fraud detection.

Integration With Shopify

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

To integrate AffiliateFox in your shopify please follow the below steps:

1. In your shop's admin environment, please go to: App and Sales Channels > Open Sales Channels > click on Actions > Edit Code

2. Select the theme.liquid file in the layouts folder. Add the following code, just before the head tag.

<script src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var source = { "account_id" : "YOUR ACCOUNT SCRIPT KEY" }
var options = {'integration': "shopify"};
afox("initiate", source, options);
afox("hit",source,options);
</script>
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);
Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

3. To maintain track of your conversions open your shops admin environment, go to: Settings > Checkout > Scroll down to the Order status page scripts block, and paste in the following code:

<script src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var source = { "account_id" :"YOUR ACCOUNT SCRIPT KEY"};
var options = { 'integration': "shopify"};
afox("initiate", source, options );
options = {'shopify_order_id': Shopify.checkout.order_id, 'purchase_value' : Shopify.checkout.total_price, 'unique_lead_id' : Shopify.checkout.customer_id,'integration': 'shopify'};
afox("conversion", source, options);
</script>
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'shopify_order_id': 'SHOPIFY ORDER ID ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'SHOPIFY CUSTOMER ID', 'integration': 'stripe' }
SHOPIFY ORDER ID
You need to pass your conversion purchase order id
PURCHASE VALUE
You need to pass your conversion purchase amount in $ like '10'
SHOPIFY CUSTOMER ID
You need to pass your shopify customer id
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With Pabbly

Integrating with Pabbly

This page contains a full reference how you can integrate pabbly with your account, you may required developer to integrate into your site

Affiliatefox prepared pabbly guide for you

  • AffiliateFox provides the multiple workflows
1.AffiliateFox to Gmail (if you have an webhooks follow the below procedure.)

Steps to create workflow for sending an email when order is get purchased.

1. First Go to Pabbly dashboard Click here

2. Login to your pabbly username and password.

3. Click on Create Workflow

4. Give the appropriate name to your workflow like send email etc etc.

5. You will see an list of aaplication to trigger an event.

6. So search Affiliatefox in the search box and select.



7. Select an event which you want to perform after successfull order purcahse.

8. Then copy the webhook url and paste this url into webhook section of your site ,whenever he webhook url is get hitted pabbly will recieve and response data.

9. Once data is collected the you need to set an action .

10. In action you can choose 1000+ actions , for now we will going with Gmail to send email.

11. Select Gmail connect your gmail account verify it and setup.

Yaah, that's it now you are good to go with another actions as well.


Integration With

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with c. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward shopify

To integrate AffiliateFox in your Weebly please follow the below steps:

1. login to your weebly store.

2. Click on WebSite >> edit site

3.On left side click home page and then click on embed code >> embed code and put the below code into the box. do same thing for all pages.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }
     var options = {'integration': "weebly"};
     afox("initiate", source, options);
     afox("hit",source,options);
</script>
			
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

4. To maintain track of your conversions open your shops admin environment, go to: Settings > Checkout > Scroll down to the Order status page scripts block, and paste in the following code:

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "weebly"};
     var metadata = {};
     afox("initiate", source, options );
     metadata = {'first Name' :  '{name}', 'Email Address' : '{email}'};
     options = {'weebly_order_id': '{orderid}', 'purchase_value' : '{total}','integration': 'weebly', 'meta_data' : metadata};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'weebly_order_id': 'WEEBLY ORDER ID ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'WEEBLY CUSTOMER ID', 'integration': 'stripe' }
WEEBLY ORDER ID
You need to pass your conversion purchase order id
PURCHASE VALUE
You need to pass your conversion purchase amount in $ like '10'
WEEBLY CUSTOMER ID
You need to pass your weebly customer id
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with Shopify. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward teachable integration

To integrate AffiliateFox in your teachable please follow the below steps:

1. On your School dashboard, go to Site > Code Snippets.

2. Place the following JavaScript code in the 'Head Code Snippets' window.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }
     var options = {'integration': "teachable"};
     afox("initiate", source, options);
     afox("hit",source,options);
</script>
			
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

3. To maintain track of your conversions, go to the left-hand option 'Courses' and select the courses which conversions you want to track (if all, repeat the next steps for each course).

4.Go to Pages > scroll down until you find the 'Thank you page' block. Click Edit.

5.On the first block, called 'Purchase Confirmation', hover over and the pop up button 'Insert new block' will appear. Click on it to open the options menu.

6.Click on the option Add Liquid/HTML Block.

Paste the following code in the box:

(Note: If you can't find purchase confirmation block then click on setting icon at end in Add Custom head Code you can paste the below code)

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var parameter = foxGetParam(); 
     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "teachable"};
     afox("initiate", source, options );
     options = {'teachable_sale_id': parameter.sale_id, 'purchase_value' : parameter.final_price, 'unique_lead_id' : parameter.user_id,'integration': 'teachable'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'teachable_sale_id': 'TEACHABLE SALE ID ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'TEACHABLE CUSTOMER ID', 'integration': 'stripe' }
TEACHABLE SALE ID
You need to pass your conversion purchase id
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
TEACHABLE CUSTOMER ID
You need to pass your teachable customer id
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With EKM  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with Shopify. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward shopify

To integrate Affiliatefox in EKM follow the below steps

1.Go to admin options of your EKM shop.

2.click on 'Design'.

3.Press the 'Edit' button of your current theme and press 'Inject Custom Code'

4.In the 'HTML Head Code' paste the following tracking code.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }
     var options = {'integration': "ekm"};
     afox("initiate", source, options);
     afox("hit",source,options);
</script>
			
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

To maintain track of your conversions follow the below steps 5.Go to admin options of your EKM shop, click on 'Settings'.

6.Click on the left-hand option 'Checkout'.

7.In the window 'Checkout Steps', click to edit the 'Order Complete'.

8.Click on 'Edit' in 'Order Complete Messages'.

9.Click on 'Edit Success Message' - if you have more than one payment option, please repeat the following steps for each of them.

10.Once in the editor, click on the top-left button 'Source'. Paste the following conversion code:

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "ekm"};
     afox("initiate", source, options );
     options = {'ekm_order_id': [ekm:order_number], 'purchase_value' : [ekm:subtotal_number_only], 'unique_lead_id' : [ekm:customer_email],'integration': 'ekm'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'ekm_order_id': 'EKM ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'EKM CUSTOMER ID ', 'integration': 'stripe' }
EKM ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
EKM CUSTOMER ID
You need to pass your EKM customer id/email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With Squrespace  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with Shopify. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward Squarespace

To track your Squarespace site visits with Affiliatefox do follow the below step

1.In your Squarespace editor, go to Settings -> Advanced -> Code Injection

Add the following code to the Header code box.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }
     var options = {'integration': "squarespace"};
     afox("initiate", source, options);
     afox("hit",source,options);
</script>
			
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

2.On the same page find the "Order Confirmation Page" box and paste in the following code:

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "squarespace"};
     afox("initiate", source, options );
     options = {'squarespace_order_id': {orderId}, 'purchase_value' : {orderGrandTotal}, 'unique_lead_id' : {customerEmailAddress},'integration': 'squarespace'};
     afox("conversion", source, options);
</script>
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'squarespace_order_id': 'SQURESPACE ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'EKM CUSTOMER ID ', 'integration': 'stripe' }
SQURESPACE ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
SQURESPACE CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your SQURESPACE customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With Shoplazza  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with Shopify. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward Shoplazza

To track your Shoplazza site visits and conversions with Affiliatefox do follow the below step

1.Go to your Shoplazza admin store https://www.shoplazza.com >> login to your shop.

2.On very left panel click on Apps.

3.Search for Custom Code where you will see an Add New button. (if you are not able to search click here Custom Code)

4.For maintaining the track of your visit create page called as footer and paste the below code.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }
     var options = {'integration': "shoplazza"};
     afox("initiate", source, options);
     afox("hit",source,options);
</script>
			
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

5.And to maintain the track of conversions create page called as Thank You >> select type of page is Special Page >> select Thank You Page:

And paste the below code


<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "shoplazza"};
     afox("initiate", source, options );
     options = {'shoplazza_order_id': ORDER.order_key, 'purchase_value' : ORDER.paid_total, 'unique_lead_id' : ORDER.customer.user_id,'integration': 'shoplazza'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'shoplazza_order_id': 'SHOPLAZZA ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'SHOPLAZZA CUSTOMER ID ', 'integration': 'shoplazza' }
SHOPLAZZA ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
SHOPLAZZA CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your SHOPLAZZA customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With PayWhirl  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with PayWhirl. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward PayWhirl

To track your PayWhirl site visits and conversions with Affiliatefox do follow the below step

1.Go to your PayWhirl dashboard PayWhirl >> login to your shop.

2.On very left panel click on Apps & Integrations.

3.Search for Custom Tracking Scripts and install that script application

4.In the every page box copy and paste the below code to mainain the track of your visits.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }
     var options = {'integration': "paywhirl"};
     afox("initiate", source, options);
     afox("hit",source,options);
</script>
			
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

5.And to maintain the conversion , on conversin section you can simply copy and paste the below code.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "paywhirl"};
     afox("initiate", source, options );
     options = {'paywhirl_order_id': {{ invoice.id }}, 'purchase_value' : {{ invoice.subtotal }}, 'unique_lead_id' : {{ customer.id }},'integration': 'paywhirl'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'paywhirl_order_id': 'PAYWHIRL ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'PAYWHIRL CUSTOMER ID ', 'integration': 'paywhirl' }
PAYWHIRL ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
PAYWHIRL CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your PAYWHIRL customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With Pinnacle  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with PayWhirl. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward Pinnacle

To track your Pinnacle site visits and conversions with Affiliatefox do follow the below step

1.Go to your Pinnacle dashboard https://{your shop name}.mypinnaclecart.com/login.php >> login to your shop.

2.On very left panel click on Front-End section you will see an list go to >> Snippets.

4.Click on Add New Snippet >> select location as All and paste the below code to matain the track of your visits.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
					<script>
					     (function(parent,afx,arguments){
					          parent.AffiliateFoxObject=afx;
					          if(parent[afx] == null) {
					               parent[afx]= function() {
					                    if(parent[afx].queue == null) {
					                         parent[afx].queue = [];
					                    }
					                    parent[afx].queue.push(arguments);
					               }
					          }
					     })(window,'afox');
					
					     var source = { "account_id" : "Your account script key" }
					     var options = {'integration': "pinnaclecart"};
					     afox("initiate", source, options);
					     afox("hit",source,options);
					</script>
								
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

5.And by scrolling down the location section you will be see an Thank you page option select this option and paste the below code into the textarea.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
					<script>
					     (function(parent,afx,arguments){
					          parent.AffiliateFoxObject=afx;
					          if(parent[afx] == null) {
					               parent[afx]= function() {
					                    if(parent[afx].queue == null) {
					                         parent[afx].queue = [];
					                    }
					                    parent[afx].queue.push(arguments);
					               }
					          }
					     })(window,'afox');
					
					     var source = { "account_id" : "Your account script key"};
					     var options = { 'integration': "pinnaclecart"};
					     afox("initiate", source, options );
					     options = {'pinnacle_order_id': {orderId}, 'purchase_value' : {orderTotal},'integration': 'pinnaclecart'};
					     afox("conversion", source, options);
					</script>
									
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'pinnacle_order_id': 'PINNACLE ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'PINNACLE CUSTOMER ID ', 'integration': 'pinnacle' }
PINNACLE ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
PINNACLE CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your PAYWHIRL customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With Neto  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with Neto. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward Neto

To track your Neto site visits and conversions with Affiliatefox do follow the below step

1.Go to your Neto store dashboard Click Here >> login to your shop.

2.On very left panel click on Settings & Tools >> All Settings & Tool >> Analytics & 3rd Party Scripts

4.Click on custom scripts >> Add New .

5.In the script section you ca paste the following code to maintain the track of your visits.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }
     var options = {'integration': "neto"};
     afox("initiate", source, options);
     afox("hit",source,options);
</script>
			
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

6.And paste the below code in Purchase Confirmation(Thank You Page) to maintain the track of conversions.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "neto"};
     afox("initiate", source, options );
     options = {'neto_order_id': '[@order_id@]', 'purchase_value' : '[@grand_total@]','integration': 'neto'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'neto_order_id': 'NETO ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'NETO CUSTOMER ID ', 'integration': 'pinnacle' }
NETO ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
NETO CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your PAYWHIRL customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With Mal's e-commerce  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with Neto. You may require a developer to help you integrate.

Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

Steps toward Mal's e-commerce

To track your Mal's e-commerce site visits and conversions with Affiliatefox do follow the below step

1.Go to your Mal's e-commerce shopping cart account Click Here >> login to your shopping cart.

2.On very left panel click on Customize >> General Settings.

3.And at the bottom of page you will see an section called as EXIT MESSAGES copy the below code in the section to maintain the track of your conversions.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
					<script>
					(function(parent,afx,arguments){
					parent.AffiliateFoxObject=afx;
					if(parent[afx] == null) {
					parent[afx]= function() {
					if(parent[afx].queue == null) {
					parent[afx].queue = [];
					}
					parent[afx].queue.push(arguments);
					}
					}
					})(window,'afox');
					
					var source = { "account_id" : "Your account script key"};
					var options = { 'integration': "malsecommerce"};
					afox("initiate", source, options );
					options = {'malsecommerce_order_id': '{id}', 'purchase_value' : '{am}', 'integration': 'malsecommerce'};
					afox("conversion", source, options);
					</script>
									
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'malsecommerce_order_id': 'MAL'S E-COMMERCE ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'MAL'S E-COMMERCE CUSTOMER ID ', 'integration': 'malsecommerce' }
NETO ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
NETO CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your PAYWHIRL customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With CartManager  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with CartManager. You may require a developer to help you integrate.

Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

Steps CartManager

To track your CartManager site visits and conversions with Affiliatefox do follow the below step

1.Go to your CartManager shopping cart account Click Here >> login to your shopping cart.

2.On very left panel click on Advanced Settings

3.By scrolling down you will see an Help Custom 'Thank You' Message On Receipt then paste the below code

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
(function(parent,afx,arguments){
parent.AffiliateFoxObject=afx;
if(parent[afx] == null) {
parent[afx]= function() {
if(parent[afx].queue == null) {
parent[afx].queue = [];
}
parent[afx].queue.push(arguments);
}
}
})(window,'afox');

var source = { "account_id" : "Your account script key"};
var options = { 'integration': "cartmanager"};
afox("initiate", source, options );
options = {'cartmanager_order_id': '{id}', 'purchase_value' : '{am}', 'integration': 'cartmanager'};
afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'cartmanager_order_id': 'CartManager ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'CARTMANAGER CUSTOMER ID ', 'integration': 'cartmanager' }
CARTMANAGER ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
CARTMANAGER CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your CARTMANAGER customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With e-junkie  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with e-junkie. You may require a developer to help you integrate.

Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

Steps towards e-junkie

To track your e-junkie site visits and conversions with Affiliatefox do follow the below step

1.Go to your e-junkie dashboard Click Here

2.On very left panel go to >> Manage Seller Account >> Edit Preferences >> Common Thank-you Page Customization

and paste the below code

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var parameter = foxGetParam(); 
     var source = { "account_id" : "Your account script key" }; 
     var options = {}; 
     afox("initiate", source);
     options = {'e_junkie_order_id': parameter.c_id, 'purchase_value' : EJTHNK_item_array[0].item_price,'unique_lead_id': parameter.client_id, 'integration': 'ejunkie'}; 
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'ejunkie_order_id': 'EJUNKIE ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'EJUNKIE CUSTOMER ID ', 'integration': 'ejunkie' }
EJUNKIE ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
EJUNKIE CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your EJUNKIE customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With DPD  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with DPD. You may require a developer to help you integrate.

Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

Steps towards DPD

To track your DPD site visits and conversions with Affiliatefox do follow the below step

1.Go to your DPD dashboard Click Here

2.On very left panel go to >> Settings >> Integrations >> 3rd Party Conversion Tracking Code

And paste the below code in HTML/JavaScript section

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox'); 
     var source = { "account_id" : "Your account script key" }; 
     var options = {}; 
     var metadata = {};
     afox("initiate", source);
     metadata = {'first Name' :  '{{customer.first_name}}', 'Last Name' : '{{customer.last_name}}', 'Email Address' : '{{customer.email}} '};
     options = {'dpd_order_id': '{{order.id}}', 'purchase_value' : '{{order.total_price}}', 'integration': 'dpd'}; 
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'dpd_order_id': 'DPD ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'DPD CUSTOMER ID ', 'integration': 'dpd' }
DPD ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
DPD CUSTOMER ID/BILLING EMAIL ADDRESS
You need to pass your EJUNKIE customer id/ billing email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With AmeriCommerce  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with Americommerce. You may require a developer to help you integrate.

Visits

This method is used to store visits to our website. You need to copy and paste the below javascript source code on your website on the main Page(Welcome page). Using this method if proper parameter set then cookies will save for future references like lead and customer storing.

Steps toward Americommerce

To integrate Affiliatefox in Americommerce follow the below steps

1.First login to your Americommerce store select storefron option from the list

2.click on 'Themes' >> Active on Current Store >> Edit >> Header >> Top center click on edit .

3.On very first section click on HTML symbol and paste the below code.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }
     var options = {'integration': "americommerce"};
     afox("initiate", source, options);
     afox("hit",source,options);
</script>
			
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
options
This field is use set integration type in visit request.
callback(optional)
This field is optional.
If you want to use callback on visit response then declare callback like below
var callback = function(message, status){
  "Enter code which you want execute on callback"
};
And pass extra parameter in hit call like afox("hit", source, options, callback);


Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

To maintain track of your conversions follow the below steps

4.Go to Settings >> Orders >> General in Place Order Script place the below conversion code.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "americommerce"};
     afox("initiate", source, options );
     options = {'americommerce_order_id': addthis.params.orderID,'integration': 'americommerce'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'americommerce_order_id': 'AMERICOMMERCE ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'AMERICOMMERCE CUSTOMER ID ', 'integration': 'americommerce' }
AMERICOMMERCE ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
EKM CUSTOMER ID
You need to pass your AMERICOMMERCE customer id/email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With RomanCart  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with RomanCart. You may require a developer to help you integrate.

Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

To maintain track of your conversions follow the below steps

1.First login to your RomanCart account Click Here

2.click on 'Marketing' >> External Sales Tracking >> Sales Tracking Scripts .

3.And paste the below code inside Tracking Script section.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "romancart"};
     afox("initiate", source, options );
     options = {'romancart_order_id': '<orderid>','purchase_value': '<totalpricenocurr>','integration': 'romancart'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'romancart_order_id': 'ROMANCART ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'ROMANCART CUSTOMER ID ', 'integration': 'romancart' }
ROMANCART ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
ROMANCART CUSTOMER ID
You need to pass your ROMANCART0 customer id/email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With SecurenetShop  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with SecurenetShop. You may require a developer to help you integrate.

Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

To maintain track of your conversions follow the below steps

1.First login to your SecurenetShop account Click Here

2.On your dashboard click on 'Settings' >> Custom Code >> Add New .

3.And paste the below code inside Code section.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "securenetshop"};
     afox("initiate", source, options );
     options = {'securenetshop_order_id': '[ORDER_NUM]','purchase_value': '[GRAND_TOTAL]','integration': 'securenetshop'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'securenetshop_order_id': 'SECURENETSHOP ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'SECURENETSHOP CUSTOMER ID ', 'integration': 'securenetshop' }
SECURENETSHOP ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
SECURENETSHOP CUSTOMER ID
You need to pass your SECURENETSHOP customer id/email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With ShopSite  

This guide describes how to install AffiliateFox in custom-made web sites that have a direct integration with SecurenetShop. You may require a developer to help you integrate.

Conversion

This method is used to store customer with commission to our website. You need to copy and paste the below javascript source code on your website where a successful purchase product thank you message is available.

To maintain track of your conversions follow the below steps

1.First login to your ShopSite store.

2.On your dashboard click on Commerce > Order System > Thank You .

3.And paste the below code inside Code section.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key"};
     var options = { 'integration': "shopsite"};
     afox("initiate", source, options );
     options = {'shopsite_order_id':  ss_ordernum,'purchase_value': ss_subtotal,'integration': 'shopsite'};
     afox("conversion", source, options);
</script>
				
source
You need to pass account script key here like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
Options
Your need to pass below data in option like { 'shopsite_order_id': 'SHOPSITE ORDER NUMBER ', 'purchase_value' : 'ORDER AMOUNT ', 'unique_lead_id' : 'SHOPSITE CUSTOMER ID ', 'integration': 'shopsite' }
SHOPSITE ORDER NUMBER
You need to pass your conversion purchase order number
ORDER AMOUNT
You need to pass your conversion purchase amount in $ like '10'
SHOPSITE CUSTOMER ID
You need to pass your SHOPSITE customer id/email
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);

Integration With Squrespace  

This page contains a full reference of the affiliate javascript library. This documentation is meant to be used when implementing affiliateFox's advanced features.

Leads

This method is used to store leads to our website. You need to copy and paste the below javascript source code on your website on the where your lead successful registered thank you message is available.

Steps to integrate code in

1.First login to your ThinkiFic portal Click Here

2.Go to Settings >> Code & analytics scroll down to Signup tracking code and paste the below code to manage your signup's.

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" };
     var options = {};
     afox("initiate",source);
     options = {'unique_lead_id': '{{id}}','integration': "thinkific"};
     afox("lead",source,options);
</script>
				
source
You need to pass company script id here like { "account_id" : "YOUR ACCOUNT ID" }
Your account id : "Your account script key"
options
You need to pass your system unique lead id here. This is mostly used on your system for various purpose. This is used on our system for cross referring purpose. You need to pass this value like {'unique_lead_id': 'YOUR CLIENT ID ', 'integration':'thinkific'}
YOUR CLIENT ID
You need to pass this value like '12345'
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when signup request done and on success signup request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in lead method like  
afox("lead", source, options, callback);

Conversion

Whenever a conversion takes place, you will need to signal our platform that this happened. To do so, you can use our conversion page code. This code is usually placed on your thank you page, right after the order has been completed, or the lead data has been collected. There are several levels of integration possible with this code. By far the easiest is by using the following snippet:.

3.To manage your all purchases find section on very top as Order tracking code

And paste the below code in this section

<script type="text/javascript" src="https://api.AffiliateFox.com/v4.js" async></script>
<script>
     (function(parent,afx,arguments){
          parent.AffiliateFoxObject=afx;
          if(parent[afx] == null) {
               parent[afx]= function() {
                    if(parent[afx].queue == null) {
                         parent[afx].queue = [];
                    }
                    parent[afx].queue.push(arguments);
               }
          }
     })(window,'afox');

     var source = { "account_id" : "Your account script key" }; 
     var options = {}; 
     afox("initiate", source);
     options = {'thinkific_order_id': '{{order_number}}','purchase_value': '{{total_price}}', "integration": "thinkific"};
     afox("conversion", source, options);
</script>
				
Source
You need to pass account script key here i.e account like { "account_id" : "Your Account Script Key" }
You will get account script key in company settings section.
callback(Optional)
Callback field is optional.
This field is use when callback needed. e.g. if when conversion request done and on success conversion request if page is redirect then need to use callback like below
declare callback like
var callback = function(message, status){
  "Paste code which is executed on success response"
};
Then pass extra parameter in conversion method like  
afox("conversion", source, options, callback);