In this article
Tracking Affiliate Link Clicks on your website
Every publisher has their own format of presenting affiliate links on their website. Therefore, enabling an Affiliate Link Click tracking event in Permutive will require a little bit of development time from you, in order to extract and map all of the relevant data points.
While we are unable to write a custom Affiliate Link Click tracker for you, we are more than happy to guide you through the process and help you verify your deployment.
Understanding your set up
Firstly, you need to make sure you know the exact format of all the affiliate links you want to collect. This includes having an exhaustive list of the following from all the domains where you want to collect Affiliate Link Click Event information:
- Affiliate link formats
- Affiliate link partners
Once you have that, you will be able to create a schema of an Affiliate Link Click event in Permutive. The following data points are a minimal requirement:
- Affiliate partner
- Destination URL
If possible to extract from the page, you may also want to send in parameters such as:
- Product name
- Product categories
- Product price
- Product currency
- Campaign
It is highly recommended that affiliate links are presented in a uniform format on your web page, for example in a container that always has the same name. This will ensure that Affiliate Link Clicks can always be found by your script, and no other links will be tracked as affiliate links.
An example of this could look like:
<a href="<destination_url>"
data-type="affiliateLink"
data-product-name="<product_name>"
data-product-categories="<product_categories>"
data-product-price-value="<product_price>"
data-product-price-currency="<product_currency>"
data-campaign="<affiliate_campaign>"
data-affiliate="<affiliate_name>">
Text
</a>
Creating a schema in Permutive
The event will be set up in your project by your Solutions Architect. If you do not have an assigned Solutions Architect, please reach out to support@permutive.com.
You might find it useful to read through our Custom Events and Properties documentation.
An example tracking call can look something like this:
window.permutive.track('AffiliateLinkClick', {
'product': {
'name': '<STRING>',
'categories': ['<LIST>', '<OF>', '<STRINGS>'],
'price': {
'value': '<FLOAT>',
'currency': '<STRING>'
}
},
'campaign': '<STRING>',
'href': '<STRING>',
'affiliate': '<STRING>'
})
Tracking the AffiliateLinkClick event
Please refer to our SDK documentation to understand how to track events in Permutive.
If you have any questions, please contact customer support by emailing support@permutive.com or chat to the Customer Operations Team via the LiveChat icon in the bottom right corner of your screen.
Comments
0 comments
Please sign in to leave a comment.