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.
- Select Assets > Events > Web Events.
- Click the Create Pixel button.
- Select "TikTok Pixel" as the connection method and choose manual installation.
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
- CompletePayment:Fired on the purchase completion page.
- CompleteRegistration:Fired when membership registration is completed or on the thank you page.
- AddToCart:Fired when the add to cart button is clicked.
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."
- Install "TikTok Pixel Helper" from the Chrome Web Store.
- Visit your company's website and check if the icon lights up.
- Execute the set event (such as a purchase) and check for any errors.
⚠️ 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?