Prerequisites
Before you start:- Create a Taapit deeplink pointing to your website or landing page
- Enable conversion tracking on your link:
- Go to your link settings in the Taapit dashboard
- Enable Conversion Tracking
1
Go to Conversion settings
- In your Taapit dashboard, go to Settings → Conversion 2. In the dropdown, select Manual Client-side Integration
2
Add your allowed hostnames
- In the Allowed Hostnames section, add your website domains (e.g.,
example.com,www.example.com) 2. Click Save
3
Get your Publishable Key
- Copy your Publishable Key (starts with
taapit_pk_) 2. You’ll use this key in the next steps
If you don’t have a publishable key yet, click Generate Key to create
one.
Installation
Choose your preferred method:- NPM Package (React/Next.js)
- Script Tag (No Build Step)
1
Install the SDK
2
Add the Analytics component
Add the
Analytics component to your root layout to automatically capture the ta_tid:app/layout.tsx
Get your publishable key from the Taapit Dashboard.
Track a Lead
A lead is a potential customer who shows interest (sign-up, form submission, trial start).trackingId for leads: The trackingId is always required for lead
events. It is automatically detected from the ta_tid cookie set when the
user clicked a Taapit link.- NPM Package
- Script Tag
Track a Sale
A sale is a completed transaction (purchase, subscription, payment).trackingId for sales: If the customer was already tracked via a lead
event, the trackingId is optional. You only need the customerExternalId
to link the sale to the existing customer. If this is a new customer (no
prior lead), the user must have a valid ta_tid cookie (set by clicking a
Taapit link).- NPM Package
- Script Tag
components/checkout.tsx
Available Methods
Best Practices
1. Always track after confirmation
2. Handle missing tracking IDs gracefully
3. Use stable external IDs
Limitations
- Ad blockers may block tracking requests
- Browser restrictions can prevent cookies from being set
- Page close before tracking completes loses the event
Next Steps
Server-side Integration
More reliable tracking from your backend (recommended).
API Reference
Full API documentation.