FastSpring provides a comprehensive e-commerce solution for companies that sell downloadable products and subscription-based services.

The integration is pretty easy and happens through the FastSpring SpringBoard (administration panel). You will be able to track per product commissions, product name, order ID, recurrence and customer details.

1.

Integrating your website and FastSpring buttons

The first step is to integrate all your buttons. The integration code has to be added to each page with buttons you want to integrate:

<!-- Post Affiliate Pro integration snippet -->
<script id="pap_x2s6df8d" src="//URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript">
</script>
<script type="text/javascript">
PostAffTracker.writeCookieToLink('affCookieLinkId', 'referrer');
function getVisitorIdLinkParameter() {
  return '&referrer=' getVisitorId();
}
function getVisitorId() {
  return PostAffTracker._getAccountId()   PostAffTracker._cmanager.getVisitorIdOrSaleCookieValue();
}
</script>
<!-- /Post Affiliate Pro integration snippet -->

When you are done, modify every button code - add new property to the button link:

id="affCookieLinkId"

and add this code to the onClick function:

getVisitorIdLinkParameter()

This final button will look like this:

<a onclick="_gaq.push(['_link', 'http://sites.fastspring.com/YOURSITE/product/testproduct1?action=adds'**+getVisitorIdLinkParameter()**]); return false;" 

href="http://sites.fastspring.com/YOURSITE/product/testproduct1?action=adds" id="affCookieLinkId">Purchase this product</a>

2.

Configuring Fast Spring

In your FastSpring springboard (admin area) add a new Custom Notification: Notifications > Custom notifications > Add

When you click "Add", in the Setup section, choose the following options:

Format: HTTP Remote Server Call

Type: Order Item Notification

Applicable site: choose the desired site or leave 'Applies to All'

Applicable products: choose the desired product or leave 'Applies to All Products'

Live Server URL: http://URL_TO_PostAffiliatePro/plugins/FastSpring/fastspring.php

Content type: Name/Value Parameters

Click NEXT.


Set any name in "Name" field. Switch to the <i>HTTP Parameters</i> tab and set the following fields&nbsp;there&nbsp;(name - value):


CustomerEmail - #{order.customer.email}

OrderID - #{order.id}

OrderItemDiscount -&nbsp;#{orderItem.discount.value}

OrderItemProductName - #{orderItem.productName}

OrderItemTotal - #{orderItem.priceTotal.value}

OrderItemCurrency -&nbsp;{orderItem.priceTotal.currency}

OrderReferrer - #{order.referrer}

SubscriptionReference - #{orderItem.subscription.reference}

isRebill - &nbsp;#{order.isRebill}

</p>
3.

Activate the plugin

The final step is to activate FastSpring plugin in your Post Affiliate Pro in Plugins section.
That's it. All transactions will now be tracked.


Do not forget to integrate the click tracking code to your website as well.