Skip to main content

Tito Stripe Integration

Written by David Rolenc
Updated yesterday

This integration allows you to track affiliate driven registrations and sales from your Tito storefront using Trackdesk. By connecting your Stripe account and implementing two small code snippets, you ensure accurate conversion attribution.

⚠️ Important:

  • Stripe Modes: The integration is compatible with Stripe Live mode, Test mode, and Sandbox mode.


1. Before You Start

Before beginning the integration, ensure you have the following ready:


2. Step-by-Step Instructions

Step 1: Install and Configure the Trackdesk Stripe App

The Stripe app bridges the data between your payments and Trackdesk.

  1. Go to the Stripe Marketplace and install the Trackdesk app.

  2. Open the app settings within your Stripe dashboard.

  3. Enter your Tenant ID and Personal Token in the required fields.

  4. Click Save changes.

Step 2: Set Up Click Tracking

You must add a script to your website to track when users arrive via an affiliate link.

  1. Copy the code snippet below.

  2. Paste it into the <head> tag of every page on your website (including landing pages).

  3. Replace YOUR_TENANT_ID with your actual Tenant ID

    <!-- Trackdesk tracker begin -->
    <script async src="//cdn.trackdesk.com/tracking.js"></script> <script>
    (function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");

    trackdesk('YOUR_TENANT_ID', 'click');
    </script>
    <!-- Trackdesk tracker end -->

Step 3: Establish Connection to Stripe

This snippet connects Tito registration events to Trackdesk tracking, using the customer's email as the identifier.

  1. Identify the pages where your Tito popup window or storefront is embedded.

  2. Paste the following snippet at the end of the <body> tag on those pages.

  3. Replace YOUR_TENANT_ID and YOUR_REVENUE_ORIGIN_ID with your actual details.

    <!-- Trackdesk tracker begin -->
    <script async src="//cdn.trackdesk.com/tracking.js"></script>
    <script>
    (function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");
    window.tito = window.tito || function() { (tito.q = tito.q || []).push(arguments);};
    tito('on:registration:finished', function(data){
    trackdesk("YOUR_TENANT_ID", "externalCid", {
    externalCid: data.email,
    revenueOriginId: "YOUR_REVENUE_ORIGIN_ID",
    });
    })
    </script>
    <!-- Trackdesk tracker end -->



3. Testing the integration

Verify the Integration

  1. Generate a Test Click: Use an affiliate tracking link to visit your site.

  2. Complete a Registration: Perform a test purchase/registration in Tito.

  3. Check Stripe Sync: Wait 15 minutes for the automatic sync, or speed up the process by clicking the Check Now button in the Trackdesk Stripe app settings.

  4. Confirm in Trackdesk: Ensure the click and conversion appear in your Trackdesk dashboard reports.

Did this answer your question?