TikTok Ads + Detectly
Track TikTok ad performance on your Shopify store with ttclid capture, campaign-level attribution, and real ROAS from order data.
What you get
- Automatic ttclid capture from TikTok ad clicks
- Campaign and ad group attribution on Shopify orders
- Spend tracking for true ROAS calculation
- First-touch and last-touch attribution models
- Cross-session tracking for delayed conversions
- UTM parameter capture for detailed campaign breakdowns
How to set it up
- 1 Install Detectly from the Shopify App Store
- 2 Add UTM parameters to your TikTok ad URLs
- 3 Detectly automatically captures ttclid from TikTok clicks
- 4 Import ad spend via CSV for ROAS calculations
- 5 View attributed orders in your Detectly dashboard
Why TikTok Ad Attribution Is Challenging
TikTok is one of the fastest-growing ad platforms for ecommerce, but measuring its real impact on Shopify sales is notoriously difficult. TikTok’s attribution window defaults to 7-day click and 1-day view, and its reporting includes modeled conversions that inflate the numbers.
The customer journey from TikTok is also different from search platforms. Shoppers often discover a product on TikTok, think about it, and come back later through a different channel to buy. TikTok counts this as a TikTok conversion. Your Shopify analytics might attribute it to direct traffic. Neither tells the full story.
Detectly captures the TikTok click ID (ttclid) and UTM parameters at the moment of the click, persists them across sessions, and attributes the eventual Shopify order to the original TikTok campaign. You get a clear, deterministic view of what TikTok is actually driving.
How TikTok Tracking Works in Detectly
ttclid Capture
When a user clicks your TikTok ad, TikTok appends a ttclid parameter to the landing page URL. Detectly’s storefront pixel captures this identifier automatically alongside any UTM parameters you have set up.
The ttclid links the visitor session to the specific TikTok ad click. If that visitor returns days later and places an order, Detectly attributes the purchase back to the original TikTok campaign. This is particularly important for TikTok because the platform drives a lot of discovery-stage traffic where the purchase happens later.
UTM-Based Attribution
For the most detailed tracking, add UTM parameters to your TikTok ad URLs. TikTok supports dynamic URL parameters that auto-populate campaign, ad group, and ad names:
utm_source=tiktokutm_medium=paid_socialutm_campaign=__CAMPAIGN_NAME__utm_content=__AID_NAME__
With these in place, every Shopify order attributed to TikTok in Detectly shows the exact campaign, ad group, and ad creative that drove the click. Use the UTM Builder to generate your TikTok tracking URLs.
Spend Import
Export your TikTok campaign spend and import it into Detectly via CSV. Once spend data is loaded, the dashboard calculates true ROAS from actual Shopify order revenue divided by your TikTok ad costs. No modeling, no estimates — just real math based on real data.
What Makes TikTok Attribution Different
TikTok traffic behaves differently from Google or Meta traffic. Here is what Detectly helps you understand:
-
Discovery vs intent: TikTok excels at introducing products to new audiences. Detectly’s first-touch attribution shows you the true value of TikTok as a discovery channel, even when the final purchase comes through a different path.
-
Delayed conversions: TikTok shoppers often have longer consideration periods. Detectly’s cross-session tracking captures these delayed purchases that would otherwise be attributed to direct traffic or another channel.
-
Creative performance: By tagging each TikTok ad creative with unique UTM content parameters, you can see which creative concepts drive the most revenue, not just engagement.
What You See in the Dashboard
With TikTok data flowing into Detectly:
- Campaign ROAS: True return on ad spend for each TikTok campaign, based on Shopify orders
- Ad group performance: Which targeting combinations and audience segments convert
- Creative attribution: Which ad creatives lead to actual purchases
- Time-to-purchase: How long it takes TikTok visitors to convert, so you can set appropriate attribution windows
- Channel comparison: Side-by-side performance of TikTok vs Meta, Google, and other channels
Every order attributed to TikTok is visible in the orders table with the full UTM trail and ttclid attached.
Common Questions
Does Detectly replace the TikTok pixel? No. The TikTok pixel handles retargeting and event optimization within TikTok’s ad platform. Detectly provides independent, order-level attribution data inside your Shopify store. Both serve different purposes and work together.
What if a customer clicks a TikTok ad and then a Google ad before purchasing? Detectly records both touchpoints. With first-touch attribution, the order credits TikTok for the discovery. With last-touch, it credits Google for closing the sale. You can view both models in the dashboard to understand the full journey.
How accurate is TikTok attribution in Detectly? Detectly uses deterministic, click-based attribution. If a customer clicked your TikTok ad and later purchased, the connection is direct and verifiable through the ttclid or UTM parameters. There is no statistical modeling involved.
Can I track TikTok Shop separately from TikTok Ads? Detectly tracks traffic that arrives on your Shopify store. TikTok Shop orders that are fulfilled through TikTok’s own checkout are separate. Orders placed on your Shopify store from TikTok ad clicks are fully tracked.
Get Started
Tag your TikTok campaigns with UTM parameters, install Detectly, and start seeing which TikTok ads actually drive Shopify revenue.
Install Detectly free or view pricing to compare plans.
Related integrations
Email & SMS
Track revenue from Klaviyo, Omnisend, Mailchimp, and any email or SMS platform with UTM-based attribution on every Shopify order.
Google Ads
Track Google Ads performance on your Shopify store with gclid capture, keyword-level attribution, and true ROAS calculated from real order data.
Google Analytics
Understand how Detectly and Google Analytics GA4 work together to give you session-level insights plus order-level attribution on your Shopify store.
Try Detectly free today
Install in one click from the Shopify App Store. No code, no tracking pixels — see your true ROAS within 24 hours.