Skip to main content
October 22, 2026
In this article we will discuss:

Overview

If you’re using Tapfiliate for your affiliate marketing program, you might have noticed that by default, it attributes conversions based on the last-click model. This means that if a user clicks an affiliate link at any point, subsequent conversions are credited to that affiliate. While this approach works well for many businesses, you might prefer to ensure that only affiliates who were responsible for the initial acquisition of a new user are credited for conversions.
Here’s how you can set up Tapfiliate to achieve this:

Detect New vs. Existing Users

During a user’s visit, determine whether they are a new or returning user. This can be achieved by checking their login status or session data.
  • New Users: Users who are not logged in or do not have an active session are considered new users.
  • Existing Users: Users who are logged in or have an active session are considered existing users.
This distinction is crucial for ensuring that only new users are attributed to affiliates.

Capture Attribution Source at Signup

When a new user signs up, check for the presence of Tapfiliate’s tracking cookie (tap_vid). This cookie holds a visitor ID, not the affiliate’s ID or referral code: the affiliate is recorded with the visitor’s click in Tapfiliate.
  • Cookie Present: If the tap_vid cookie is found, store the attribution source as “affiliate.”
  • Cookie Not Present: If the tap_vid cookie is not found, tag the source as “direct” or another channel.
This step ensures that the source of the user’s acquisition is recorded accurately.

Track Conversions Based on Original Attribution

For subsequent conversions, reference the attribution source stored during signup:
  • Affiliate Source: If the original attribution source was “affiliate,” trigger the conversion tracking script:
  • Non-Affiliate Source: If the original attribution source was not “affiliate,” do not trigger the conversion tracking script.
This approach ensures that only affiliates who were responsible for the initial acquisition of a new user are credited for conversions.

Separate new and recurring conversions in your data

Every conversion in Tapfiliate stores its tracking source – how the conversion was tracked. You can use it to see which conversions are recurring payments from an existing customer and which are new.
  • Recurring conversions have a tracking source that starts with recurring: recurring-js, recurring-api or recurring-auto.
  • Other conversions have a tracking source such as cookie-js, coupon-js, cookie-api, coupon-api or click-id-api.
You can find the tracking source in three places: The tracking source is not available as a column in the Conversions table or in Reporting.

📌 Important Considerations

  • Cookie Duration: Tapfiliate uses first-party cookies to track conversions. Your program’s Cookie time is the number of days after the last click during which a conversion is still credited to the affiliate. It is 45 days by default and can be adjusted up to 365 days. It applies inside Tapfiliate, not as the lifetime of the cookie in the browser (see Cookie time). Ensure that your Cookie time aligns with your attribution model.
  • Cross-Domain Tracking: The steps above read the tap_vid cookie, which the tracking script sets on the domain where the visitor lands, and a page on another domain can’t read it. Keep the click, the sign-up and the page that calls tap('conversion') on the same domain, or on subdomains of one domain set up as described in How to Track Across Domains and Manage Multiple Affiliate Programs.
  • Ad Blockers and Privacy Settings: Be aware that ad blockers and strict browser privacy settings can interfere with cookie-based tracking, potentially affecting attribution accuracy.

✅ Conclusion

By implementing the steps outlined above, you can ensure that Tapfiliate’s last-click attribution model credits affiliates only for conversions resulting from new user acquisitions. This approach aligns with your business requirements while leveraging Tapfiliate’s robust tracking capabilities.

You can reach out to us directly at support@tapfiliate.com in case you require any other help regarding the implementation of this setup.