Prerequisites
Before setting up the TikTok integration, ensure you have:
TikTok Setup Requirements
1. Get Your Pixel Code
Access TikTok Ads Manager
Navigate to Events
Go to Assets → Events → Web Events
Select Your Pixel
Select your existing Pixel or create a new one
Copy Pixel Code
Copy your Pixel Code (format: C9XXXXXXXXXXXXXXXXXX
)
2. Generate Access Token
Open Settings
In your Pixel settings, navigate to the Events API section
Generate Token
Click Generate Access Token
Copy Token Immediately
Copy the token immediately - it won’t be shown again
Store Securely
Store the token securely - treat it like a password
Access Tokens are sensitive credentials. Never share them publicly or commit
them to version control. If compromised, regenerate immediately.
Configuration Steps
Step 1: Access Integration Settings
Navigate to CDP
Go to your Masivo dashboard and select the CDP section
Open Integrations
Click on “Integrations” in the CDP menu
Add New Integration
Click “Add Integration” and select “TikTok” from the catalog
Required Fields
Enter your TikTok Pixel Code (starts with C9
and is 20+ characters)
Enter the Access Token you generated from TikTok Events Manager
Event Sync Options
Enable to sync all standard conversion events (ViewContent, AddToCart,
CompletePayment, etc.)
Enable conversion tracking for ad optimization and campaign measurement
Enable to sync purchase events - only fulfilled purchases will be sent
Enable to sync audience membership for custom audience targeting
Enable to sync customer tags for advanced targeting and segmentation
TikTok integration automatically transforms Masivo’s native purchase format:
{
"customer_id": "cust_123",
"type": "PURCHASE",
"order": {
"purchase_id": "order_789",
"value": 300,
"currency": "USD",
"products": [
{
"sku": "SKU-001",
"name": "Running Shoes",
"amount": 1,
"value": 129.99,
"brand": "Nike"
}
],
"payment_method": "CREDIT"
},
"fulfilled": true
}
Event Type Examples
Event Categories
Send common event names - automatically converted to TikTok format:{
"type": "purchase", // or "PURCHASE"
"customer_id": "cust_123",
"value": 100
}
Becomes CompletePayment
event in TikTok
Use exact TikTok event names for specific tracking:{
"type": "ClickButton",
"customer_id": "cust_123",
"description": "CTA clicked"
}
Sent as-is to TikTok
Any other event name becomes a custom event:{
"type": "free_trial_started",
"customer_id": "cust_123",
"plan": "Premium"
}
Parameters prefixed with custom_
Testing Your Integration
Step 1: Send Test Events
Access Test Events
In TikTok Events Manager, go to Overview → Test Events
Send Test Event
Send a test event from Masivo
Verify Receipt
Check that the event appears in Test Events tool within 1-2 minutes
Verify Parameters
Confirm all event parameters are correctly formatted
Step 2: Monitor Real Events
Enable Integration
Activate your TikTok integration in Masivo
Monitor Events
Watch TikTok Events Manager for incoming events
Check Attribution
Verify events are attributed to the correct Pixel
Validate Data
Ensure conversion values and product data are accurate
Monitoring and Troubleshooting
Health Monitoring
Event Delivery
Monitor event delivery success rate in TikTok Events Manager
Data Quality
Check for validation errors and missing required fields
Integration Status
Verify integration status remains “Active” in Masivo
Conversion Tracking
Confirm conversions are being tracked in your TikTok campaigns
Common Issues
Check Pixel Code
Verify Pixel Code is correct (starts with C9)
Verify Token
Ensure Access Token hasn’t expired
Check Settings
Confirm event type is enabled in Masivo integration settings
Review Logs
Check integration logs for error messages
Check Fulfilled Status
Verify purchases are marked as fulfilled
Verify Value
Ensure order.value is present and numeric
Check Products
Confirm order.products array contains valid items
Review Format
Ensure purchase_id is included for transaction tracking
401 Unauthorized
Regenerate Access Token in TikTok
400 Bad Request
Check Pixel Code format and validity
403 Forbidden
Verify Access Token has correct permissions
429 Rate Limit
Contact support - you may need higher limits
Low Conversion Attribution
Customer ID
Ensure customer_id is included in all events
Event Timing
Send events within 7 days of occurrence
Pixel Installation
Verify Pixel is installed on your website
Deduplication
Check that transaction_id is unique for each purchase
Best Practices
Optimization Tips
Always Include Customer ID
Send customer_id
with every event for proper user attribution
Send Value for Conversions
Include value
and currency
for value-based campaign optimization
Use Unique Transaction IDs
Ensure transaction_id
is unique for each purchase to prevent duplicates
Events older than 7 days will be rejected - sync regularly
Send complete product information in contents
array for better targeting
Check TikTok Events Manager weekly to ensure data quality
Alternative: TikTok for Business API
For advanced users who need long-term access tokens:
Register App
Create an app in the Developer Portal
Request Events API Access
Request access to Events API product
Generate Long-term Token
Generate long-term access token for your app
Use in Masivo
Use this token in Masivo integration settings
Long-term tokens from TikTok for Business don’t expire but require additional
setup and approval from TikTok.
Support and Resources
Need help? Contact Masivo support with your Pixel Code (but never your Access
Token) for troubleshooting assistance.