Tracking guide

How to install and test the TikTok Pixel

Create a web data source, connect it once, define meaningful events, and test the full journey before using the data for campaign decisions.

Updated November 2, 2026Business Ads Guide

Prepare the event plan before adding code

You need access to the relevant TikTok Ads Manager account and permission to change the website or its tag manager. Record the domain, site platform, pixel owner, and person responsible for maintenance. Check whether an existing platform integration already installs a pixel; adding another copy can duplicate events.

Choose the actions you intend to measure: a product view, add to cart, completed order, or successful lead submission. Write down what counts as success. A submit-button click alone does not prove a form was received, and an affiliate-link click does not prove a sale.

1. Create a web data source

In TikTok Ads Manager, open Tools → Events Manager → Connect Data Source → Web. Enter your website URL and choose Partner Integration or Manual Setup. Name the pixel so another account user can identify the website. Labels can vary as TikTok updates the interface; follow the live setup wizard if yours differs.

2. Connect the website once

For a supported commerce platform or tag manager, select it in Partner Integration and follow that platform's setup flow. For a custom website, choose Manual Setup and install the base code supplied by your own account. Do not reuse another advertiser's pixel ID or paste unverified code from a tutorial.

Keep one installation route per pixel. If migrating from a hard-coded installation to a tag manager, remove the previous route after testing. The Events API is a separate server connection; implementing both requires a deduplication plan, rather than sending the same order twice as two independent conversions.

4. Configure events and parameters

Open your data source in Events Manager and complete the event setup. Event Builder can map URL or button rules; custom code can map actions that require application logic. Match the event to the actual business action. For a purchase, check the order value, currency, and product identifiers against the confirmed order.

A thank-you-page rule needs protection against refreshes and repeat visits. For a form, fire the success event after the application confirms acceptance, rather than when a visitor merely presses Submit. Keep an event specification alongside the implementation so later site changes do not silently break it.

5. Verify the complete journey

  1. Use Pixel Helper to look for missing code and configuration errors.
  2. Open the pixel's Test Events tab and follow its test-session instructions. Perform each intended action and inspect the event details.
  3. Compare event names, values and currencies with the test transaction or lead. Confirm a single successful action creates a single logical conversion.
  4. Repeat the journey with consent declined, then accepted, and after withdrawal. Check the browser network and storage, not only the banner appearance.
  5. Review Events Manager Diagnostics after release. Test Events visibility proves that a test event arrived; it does not establish real campaign attribution, revenue, or profitability.

If events are missing, check the selected pixel, page coverage, consent state, tag triggers and browser blockers. If events repeat, inspect duplicate installations and overlapping rules before changing campaign settings.

Use measurement in context

Record the installation date, test result, event owner and any unresolved issues. Recheck after checkout, domain, consent or tag-manager changes. For commercial analysis, use the ROI measurement guide and reconcile ad reporting with actual orders and refunds.

Sources and references

Primary documentation checked November 2, 2026. These links open the documentation directly.

Open Partner Offer