🎵 TikTok Click ID Forwarding

How to Pass ttclid Parameters Across Cross-Domain Links to Shopify

By Dimsquid Engineering•Published Aug 5, 2026•8 min read

When users tap a TikTok ad, TikTok attaches a Click ID query string (?ttclid=TT_CLICK_ID_123) to the landing page URL. If your store runs WordPress for content and Shopify for checkout, this parameter must be forwarded on outbound links to ensure TikTok Ads Manager attributes purchase revenue.

1. Why TikTok Pixel Requires ttclid Parameters

When a user clicks an ad inside the TikTok app, TikTok writes a first-party cookie named _ttp on your WordPress domain. When the user navigates over to checkout.myshopify.com, browser origin rules prevent Shopify from accessing the _ttp cookie.

By passing ttclid in the URL, the TikTok Pixel on Shopify rebuilds the session context and links the conversion to your ad account.

âš¡ Automated Solution

2. The 60-Second Solution: GA4 Linker

GA4 Linker (Personal+ Plan) auto-attaches ttclid, _fbc, _fbp, and _gl parameters to outbound checkout links automatically.

Get Personal Plan ($49/yr) →