> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://socialhead.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# TikTok Pixel - How to setup "ttclid" to your ad campaign for better tracking?

Articles on: [OnePixel](/en/category/onepixel-1lr293q/)

### What is TikTok Click ID (ttclid)?

  
  
Every time someone clicks on the TikTok ad, a Click ID (ttclid) is added to the URL. That is a unique identifier that is valid for 30 days. You can store the TikTok click ID (ttclid) and share it back to the TikTok events API that will help to attribute events to your campaigns. ttclid helps you to match users and attribute event to your TikTok ads accurately. It is strongly encouraged to set up ttclid to improve your ads performance.  
  

### How to set up ttclid?

  
  
Add ttclid =__CLICKID__ to the end of your url and insert it in the Ad Group → Ad Details → URL in TikTok Ads Manager  
  
![](https://storage.crisp.chat/users/helpdesk/website/1666d16e248c2f00/f23b79b0-b593-434d-9078-b0b1f0_1us13jp.png)  
  
Your current url: [http://demo.mywebsite.com?a=b](http://demo.mywebsite.com?a=b)  
  
After added the macro: [http://demo.mywebsite.com?a=b&ttclid=__CLICKID__](http://demo.mywebsite.com?a=b&ttclid=__CLICKID__)

Updated on: 29/06/2022