You can set up web events using custom code Pixel and Events API. If you need an alternative solution that doesn't require heavy technical resources, you can use our Event Builder tool for event setup after you create and add the TikTok Pixel base code to your website.
Ensure that all of your webpages have the TikTok Pixel base code installed.
Make sure you have edit permissions for the pixel.
If Content Security Policy is enabled on your website, see developer documentation for additional setup recommendations
Once you've added the TikTok Pixel to your site:
In Select Setup Method, choose Event Builder.
Enter your business URL and click Launch Event Builder. The event builder will launch on your website in a new tab.
Click Add event
Select whether you want to add events via button clicks or URL keywords.
Button Clicks: Measure when a specific button or element is clicked. The event builder highlights clickable buttons and elements, such as add to cart button, search field, etc. Click the button or element you would like to measure or optimize
URL Visits: Measure when a URL with specified keyword is visited. For instance, when a user reaches a page with "/product" in the URL, you can set up the event as "ViewContent" to measure and optimize all visits to URLs with "/product" keyword. This method helps track actions on pages with consistent URL keywords, like product detail pages, order confirmation page, or thank you page after a purchase
In Event Builder, choose Add event, and click on Button Click, then Next.
Click on the desired highlighted element on the webpage and click Next.
Select the event type from the dropdown menu that best describes this user action, eg. AddToCart.
Add parameters such as 'Value', 'Currency', 'Content ID', and 'Content Type' and click Confirm to save your changes.
Elements for 'Value' will be highlighted on your webpage, and you must set the 'Currency' in the dropdown.
Elements for 'Content ID' on your webpage, and you must set the 'Content Type' in the dropdown
'Content ID' needs to match 'SKU ID' in your catalog if you are using Video Shopping Ads
Click Add Event to setup additional events on your webpage.
Once you are done, click Finish Setup. Your changes may take up to 30 minutes to be effective.
In Event Builder, choose Add event, and click on URL Visits, then Next
Select the event type from the dropdown menu, eg. 'CompletePayment'
Specify the URL keyword for the page you wish to measure, such as 'thankyou'.
Add parameters such as 'Value', 'Currency', 'Content ID', 'Content Type' and click Confirm.
The tool will highlight elements for 'Value' on your webpage, and you can set the 'Currency' in the dropdown
The tool will highlight elements for 'Content ID' on your webpage, and you can set the 'Content Type' in the dropdown
Click Add Event to setup additional events on your webpage.
Once you are done, click Finish Setup. Your changes may take up to 30 minutes to be effective.
Note: To use advanced ad solutions such as ROAS reporting and value optimization, ensure you add 'Value' and 'Currency' parameters to your events. To use Video Shopping Ads and Catalog Management solutions, ensure you add 'Content ID' and 'Content Type' parameters to your events.
After you've set up events and parameters, you're all set! You can view and manage your events in TikTok Events Manager.
Learn more about web diagnostics or Pixel Helper for troubleshooting support if you encounter issues.