Take your app to the next level with Affise MMP (Mobile Measurement Partner)
Join Now ⚡
Supercharge Your CPL Campaigns with Affise Web SDK Supercharge Your CPL Campaigns with Affise Web SDK

Supercharge Your CPL Campaigns with Affise Web SDK

Revolutionize Your CPL Campaigns: How Affise Web SDK Enables Direct Tracking and Boosts Performance

Cost-per-lead (CPL) campaigns are a staple for many marketers, but traditional tracking methods via JS can introduce friction and data loss. As privacy regulations become tighter, more and more browsers depreciate 3rd party cookies. However, with the latest advancements in tracking technology from Affise, you can rest assured your campaigns run unaffected. This article will explore how the Affise Web SDK can transform your CPL strategy, with a strong emphasis on running campaigns without redirects.

The Challenge of Traditional CPL Tracking

In traditional CPL campaigns, a user clicks on an ad, is redirected through a tracking link, and finally lands on the offer page. While this method has been the industry standard, it presents several challenges:

  • Redirects Add Friction: Each redirect increases page load time, leading to a higher bounce rate and lost leads.
  • Data Loss: Users may drop off during the redirect process due to slow loading times or technical issues.
  • Tracking Discrepancies: As a result, redirects lead to discrepancies in tracking data, making it difficult to accurately measure campaign performance.
  • Cookie Limitations: Browser restrictions on third-party cookies are making traditional redirect-based tracking less reliable.
  • Advertiser platform limitations: Some platforms like Google Ads may disapprove ads that are running with the redirect links.

The Solution: Affise Web SDK for Direct Tracking

The Affise Web SDK offers a modern approach to CPL tracking that eliminates the need for redirects. By implementing the Affise Web SDK directly on your website, you can track user interactions and conversions seamlessly, without any redirects.

It works similar to JS integration, however it is much more reliable and easier to set up. All the ‘heavy lifting’ is done on the SDK side back end, while all you have to do is to configure events and parameters you want to track.

Key Benefits of Using Affise Web SDK for CPL Campaigns

  • Enhanced Accuracy: Direct tracking provides more accurate data, reducing the risk of discrepancies and ensuring you have a clear picture of your campaign performance.
  • Improved User Experience: Eliminating redirects results in faster page load times, leading to a smoother user experience and higher conversion rates.
  • Increased Conversion Rates: A seamless user journey with no redirects minimizes drop-offs and maximizes the number of leads captured.
  • Bypass Cookie Restrictions: The Affise Web SDK leverages first-party tracking, which is less affected by browser restrictions on third-party cookies.
  • Full Control and Customization: Direct script inclusion provides maximum flexibility and control over how tracking is implemented.

Real-world example

This video explains in details how Affise Web SDK works:

In this video, we take our landing page: https://spectacular-shortbread-118c3a.netlify.app/?offer_id=625795&aff_id=629&sub-parameter=some_value_here

And put Affise Web SDK for capturing clicks and conversions.

You can find the code for the page here:

Parameters explained:

offer_id (required) – ID of the offer in Affise;

aff_id (required) – ID of the affiliate in Affise;

sub-parameter – value to be passed to sub1 parameter of the tracking link. This can be traffic source, information about the lead or any other information you may find useful to be passed to the landing page.

Affise supports up to 30 custom sub IDs to be passed from the affiliate to advertiser.

sub-parameter is just an arbitrary name we defined in our code to be associated with ‘sub1’ in Affise. You can call it any name you want as long as you define it the code.

When you click the link, our SDK triggers the code to generate unique transaction ID based on the offer ID and affiliate ID. This doesn’t require redirection as our SDK parses the parameters from the URL. As a result, we don’t rely on cookies and don’t get affected by 3rd party cookies depreciation on some browsers. 

Conversion generation

Now, you can click ‘Trigger conversion’ and our system will fire the conversion based on your transaction ID capture in the previous step. You can define additional information like the event name, purchase amount and custom fields where you can pass information like product SKU or brand name.

Affise supports up to 15 custom fields to pass information about the purchase back to Affise for further analysis.

How to Implement Direct Tracking for CPL Campaigns with Affise Web SDK

Here’s a step-by-step guide to implementing direct tracking for your CPL campaigns using the Affise Web SDK:

  1. Place the SDK initialization script in the header of your store website:

2. In order to capture the visitor transaction ID, we need to put the code on the landing page:

visitor transaction ID

3. Next step is to put the below code on the success page (check out page) – this code will create a conversion based on the click ID captured in the previous step:

Affise SDK - check out page

4. Now, you should create an offer and affiliate in your Affise platform. Offer ID and affiliate ID are two obligatory parameters that our system uses to create a unique transaction ID and they should be presented in the tracking link.

For example, if your e-commerce store landing page look like this: domain.com → the tracking URL may look something like this: domain.com?offer_id=15&aff_id=3. Our SDK will parse the URL and extract the offer ID and affiliate ID. Then it will generate a unique transaction ID which later can be used on to attribute events like purchase and registration.

5. Data Analysis:

There is no better way to analyze your CPL campaigns, than the Performance Insights report. This report allows to view different event types like site visits, registrations, purchases and event CR from one event to another (from registration to purchase, for example, or from the visit to registration).

You can also enable the access to the report in the affiliate panel with only specific columns to be shared with the affiliates.

Performance Insights report supports multiple dropdowns so you can analyze the performance per affiliate, product category, brand or campaign.

You can read more in our Affise Web SDK documentation: https://github.com/affise/affise-web-sdk/tree/dev/AFFISE-29673-refactored

Best Practices for Running CPL Campaigns with Direct Tracking

  • Landing Page Optimization: Ensure your landing pages are optimized for conversions, with a clear call-to-action and a user-friendly design.
  • Clear Value Proposition: Communicate the value of your CPL offer clearly and concisely to encourage users to submit their information.
  • A/B Testing: Continuously test different landing page variations, offers, and traffic sources to identify what works best for your CPL campaigns.
  • Data-Driven Optimization: Use the accurate data provided by the Affise Web SDK to make informed decisions about your campaign strategy and optimize for maximum ROI.

By leveraging the power of the Affise Web SDK and implementing direct tracking, you can revolutionize your CPL campaigns, improve performance, and achieve your marketing goals more effectively.

Share this article
Dmitry Hodosok

Written by

Dmitry is a product manager with an interest in technology and affiliate marketing. He is passionate about improving products through a customer-centric, data-driven approach. In his free time, he enjoys traveling and reading.

Sign up to receive our newsletter

Stay on top of the competition. Let us keep you updated with news, insights, and more

email envelope