Skip to main content
All CollectionsIntegrationsFAQ
Troubleshooting your Javascript integration
Troubleshooting your Javascript integration

Here are some helpful tips to make sure your custom javascript integration is up and running

Nikhil Kandpal avatar
Written by Nikhil Kandpal
Updated over 2 months ago

Question: What are the benefits of using Tapfiliate's JavaScript integration?

Track affiliate conversions across your website working with first party cookies.

A custom integration which has capability to support features like commission based on order amount, coupon code tracking.

Question: Is the JavaScript integration compatible with all platforms?

This integration works best for websites built from scratch or those with custom development capabilities. Pre-built integrations are available for platforms like Shopify, WooCommerce, etc.

Question: What steps are involved in setting up the JavaScript integration?

  1. Include Tapfiliate Script: Add the Tapfiliate JavaScript code snippet to the <head> section of your website's main layout file.

  2. Initialize Tapfiliate: Use the tap('create', 'YOUR_ACCOUNT_ID') function to initialize Tapfiliate with your unique Account ID.

  3. Track Clicks : Use the tap('detect') function to capture clicks containing affiliate tracking parameters.

  4. Track Conversions: Use the tap('conversion', 'conversion_id', amount) function to record a conversion with an ID, amount, and optional currency.

Question: Where can I find the Tapfiliate JavaScript code snippet?

The documentation provides the code snippet you need to include on your website.

Question: What are the different Tapfiliate JavaScript functions available?

  • create: Initializes Tapfiliate with your Account ID.

  • detect: (Optional) Detects clicks with affiliate tracking parameters.

  • conversion: Tracks a conversion with an ID, amount, and optional currency.

  • conversionMulti: Tracks conversions with multiple commissions.

  • customer: Tracks a new customer (similar to conversion).

  • trial: Tracks a new trial customer (similar to conversion).

  • lead: Tracks a new lead (similar to conversion).

  • click: (For specific use cases) Tracks a click with affiliate tracking parameters.

Question: How can I track conversions with a unique identifier (e.g., order ID)?

The conversion function allows you to specify a external_id alongside the amount. This helps you match conversions with data in your own system.

Question: Can I track recurring commissions or handle refunds automatically?

Tapfiliate automatically handles recurring commissions and refunds based on your program settings.

Question: My conversions aren't tracking. What could be the issue?

  • Double-check your Account ID and code implementation.

  • Ensure the Tapfiliate script is loaded correctly.

  • Consider using your browser's developer tools to inspect network requests and identify any errors.

If you have any other queries, feel free to reach out to us at support@tapfiliate.com

Did this answer your question?