Collapse Menu
Docs Home
Extensibility Options
Contact Support

FastSpring Affiliate Solution

Overview

This article provides information about FastSpring's Affiliate Solution. FastSpring works with a trusted partner, Impact, to provide affiliate marketing solutions for our clients.

FastSpring works with a trusted partner, Impact, to provide affiliate marketing solutions for our clients.

For more information about setting up an account with Impact, please contact FastSpring Support.

 

To Set Up Integration with Impact Automatically

FastSpring now offers an automated solution to help you set up integration with Impact. This process steps you through the implementation automatically, and you just need to copy and paste the details from your Impact account in a couple of places, when prompted.

To launch the Impact integration walk-through, log on to the Dashboard, and then click or copy and paste the following link:

https://app.fastspring.com/site/store/home.xml?pendo=ZZW0SLkPGlRGFLlVAZ2mc62tpYA

 

Manual Step-by-Step Instructions

If you prefer to step through the setup process manually, please use the following procedure:

  1. From the Integrations menu of the FastSpring App, select the Webhooks tab.
  2. Click .
  3. In the Name field, enter the name Impact Sales Tracking.
  4. Click Add.
  5. Inside the newly created Impact Sales Tracking webhook configuration, click Add Browser Script.


     
  6. A new browser script appears, and a dialog opens to let you configure the browser script.


     
  7. In the Name field of the new browser script, enter Impact Sales Tracking - <id>.
  8. Still in the Name field, use your keyboard to replace <id> with your Impact Sales Tracker ID. If you need help finding your Sales Tracker ID, click the link below to open an animated illustration in a new browser tab.

    Finding Your Impact Sales Tracker ID
     
  9. Under Events, select the checkbox next to browser.order.completed.
  10. Using your mouse, select all of the placeholder text in the Function field, and then press Delete or Backspace on your keyboard to delete it.
  11. Copy the following JavaScript function and paste it into the Function field:
     
    JavaScript function for Impact tracking
    function (event) {
        this.load('https:{{{Universal Tracking Tag Script URL}}}', function() {
            
            var trackingObject = {};
            
            trackingObject.orderId = event.data.reference;
            trackingObject.customerId = event.data.account;
            trackingObject.currencyCode = 'USD';
            trackingObject.items = [];
            
            if (event.data.coupons && event.data.coupons[0]) trackingObject.orderPromoCode = event.data.coupons[0];
            
            event.data.items.forEach(function(item){
                trackingObject.items.push({
                    subTotal: item.subtotalInPayoutCurrency,
                    category: "digital",
                    sku: item.product,
                    quantity: item.quantity
                });
            });
            
            ire('trackConversion', {{{Universal Tracking Action ID}}}, trackingObject);
        });
    }
    	
     
  12. Still in the Function field, select the {{{Universal Tracking Tag Script URL}}} and replace it with the "General Tracking Settings URL" from your Impact account. If you need help finding your General Tracking Settings URL, click the link below to open an animated illustration in a new browser tab.

    Finding your General Tracking Settings URL
     

     Tip

    When you have finished, the full line should appear similar to the following, but with your URL:
    this.load('https://d.impactradius-event.com/A125843-c069-4643-8daa-061b2e5249d31.js', function() {
     
  13. Scroll down to the bottom of the Function field. Then, select the {{{Universal Tracking Action ID}}} and replace it with your Sales Tracking ID; that is, the same value you used in the Name field above to replace <id>.

     Tip

    When you have finished, the full line should appear similar to the following but with your own Sales Tracker ID:
    ire('trackConversion', 7821, trackingObject);
     
  14. Click Add.

Try FastSpring

Get a free account and see why FastSpring is the ecommerce partner of choice for software providers around the world. Try our full-service ecommerce solution today to unlock revenue growth for your online company.