Beginner Reading time: Approximately 8 minutes

TikTok Pixel: A complete guide to setting up your TikTok Pixel and creating events

Pixel is an absolute requirement for successful TikTok advertising. In this article, we will comprehensively explain everything from the base code to event settings and operation confirmation so that even beginners can easily set it up.

When running TikTok ads, it's essential to know who is visiting your site and who is purchasing your products. By properly installing Pixel, your ad algorithm can learn and deliver ads to users who are closer to converting.

STEP 1: Issue a Pixel code

First, log in to TikTok Ad Manager and create your Pixel code.

STEP 2: Setting the base chord

Paste the generated "base code" into the <head> tags on all pages of your website.

<!-- TikTok Pixel Code Start --> <script> !function (w, d, t) { w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[]; ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","setCookie"]; // ... (以下、発行された固有のコードが続きます) }(window, document, 'ttq'); </ttq.page();> </script> <!-- TikTok Pixel Code End -->

Pro advice

If you're using Google Tag Manager (GTM), the most manageable and recommended method is to fire the base code on every page as a "Custom HTML" tag.

STEP 3: Event settings (purchase and registration)

The base code alone only tells you that a page was viewed. To track product purchases or membership registrations, you need to set up an "event."

Main Event Types

STEP 4: Check operation (TikTok Pixel Helper)

Once the installation is complete, be sure to test it to make sure it's working properly. A common way to do this is to use the Google Chrome extension "TikTok Pixel Helper."

⚠️ Just installing it isn't enough?

In fact, in the current web environment (especially iOS 14 and later), it is said that approximately 30% to 50% of data is missed when using just this standard Pixel setup.

Due to browser cookie restrictions and ad blocking, conversions are not reflected in Ad Manager, and ad optimization stops.

Next step: What is "Server-side API" that prevents missed measurements?

Next recommended article

Are you having trouble setting up your measurement environment?

Mirai's expert staff will provide full support in building the optimal measurement environment for your site.