How-To Guide · Analytics & Tracking

How to Install TikTok Pixel (Step-by-Step Guide)

Learn how to install TikTok Pixel on any website in minutes. Manual setup, Shopify, and Google Tag Manager methods covered with verification steps.

TL;DR TikTok Pixel is a free code snippet you add to your website header to track conversions, build audiences, and optimize ad delivery. Create it in TikTok Events Manager, paste the base code into your site's head tag, set up Standard Web Events, then verify with Pixel Helper or Test Events.

4 min read By Updated 0 steps

Originally published .

> Quick answer: Create your pixel in TikTok Events Manager. Copy the base code. Paste it into your website's `` tag. Add Standard Web Events. Verify with Pixel Helper. Done.

---

What is TikTok Pixel?

TikTok Pixel turns your website into a measurement engine for every ad you run.

How it works: tracking user behavior on your website

TikTok Pixel is a free HTML code snippet placed in your website's header. Per TikTok's Business Help Center, it collects data on user behavior: page views, clicks, and conversions from visitors who arrive after seeing your TikTok ads. That data flows back to TikTok Ads Manager in real time.

Key benefits: audience building, ad optimization, and performance measurement

The pixel does three things well. It builds retargeting audiences from your actual site visitors. It feeds TikTok's algorithm the conversion signals it needs to find buyers, not just browsers. And it gives you clear measurement. Which campaigns drive real results and which ones don't.

---

Prerequisites

Two things before you start.

TikTok Ads Manager account

You need an active TikTok Ads Manager account. Create one at ads.tiktok.com. No account means no Events Manager, and Events Manager is where your pixel lives.

Website access (code editor or CMS admin panel)

Manual setup requires access to your website's HTML header. If you run Shopify, WooCommerce, or another popular CMS, you can skip direct code edits entirely and use a partner integration instead. More on that below.

---

How to Install TikTok Pixel: Manual Setup

This method works for any website where you can edit the HTML source.

Step 1: Create your pixel in Events Manager

Log into TikTok Ads Manager. Go to Tools > Events Manager. Click Connect Data Source, choose Web, then select TikTok Pixel. Name your pixel. The limit is 128 characters. Use your domain name for easy identification. Click Next.

Step 2: Copy and place the base code in your website header

TikTok generates a base code snippet. Copy the entire block. Paste it into the `` section of every page on your site, just before the closing `` tag. If you use a theme or CMS, look for a "header scripts" or "custom code" setting in your admin panel. That's the right spot.

Step 3: Enable first-party cookies and additional data

TikTok's documentation recommends enabling first-party cookies during setup. This improves measurement accuracy and gives the algorithm a broader, more reliable signal. Toggle it on before you save and move on.

Step 4: Set up Standard Web Events

Base code alone tracks page views. To capture the actions that actually matter. Purchases, add-to-cart events, sign-ups. You need Standard Web Events. In Events Manager, add events like ViewContent, AddToCart, and Purchase. Map each event to the correct page URL or button trigger on your site.

Step 5: Verify installation with Pixel Helper or Test Events

Install the TikTok Pixel Helper Chrome extension. Load your website. The extension confirms whether the pixel fires correctly on each page. You can also run the Test Events tool inside Events Manager or check the Diagnostics tab for any errors flagged automatically.

---

How to Install TikTok Pixel via Partner Integrations

No code access? No problem.

Shopify: no-code installation

Per TikTok's documentation, Shopify users install the pixel through the TikTok app in the Shopify App Store. Connect your TikTok For Business account, select your pixel, and the integration places the code automatically. No manual edits required.

Google Tag Manager: container-based setup

In Events Manager, select your pixel and open Partner Platform. Choose Google Tag Manager. Connect your GTM account, pick your container and workspace, and TikTok deploys the pixel tag through GTM. No changes to your website code at all.

Other platforms (WooCommerce, etc.)

WooCommerce, Magento, BigCommerce, and several other platforms have native partner integrations with TikTok. Check the Partner Platform section inside Events Manager for a current list. The setup flow is similar across all of them.

---

Next Steps: Build Conversion-Focused Creatives

Pixel installed. Now make sure the ads feeding it are actually worth measuring.

Why creative quality matters for pixel success

The pixel can only optimize what you give it. Weak creatives generate weak signals. The algorithm learns to find people who scroll past, not people who buy. Strong ad copy and sharp visuals mean better conversion data, which means the algorithm improves faster for you.

Using AI tools to generate and optimize ad copy for your tracked campaigns

That is where Coinis AI Copywriting and Brand Profile come in. Brand Profile analyzes your brand: voice, tone, offer, and audience. AI Copywriting uses that context to generate headlines, body copy, and CTAs built around conversion. Every asset your pixel measures is on-brand and built to perform. The feedback loop gets stronger with every campaign you run.

---

Or let Coinis do it.

From a product URL to a live Meta campaign. AI-generated creatives. On-brand copy. Direct publish to Facebook and Instagram. Real performance reporting. All in one platform.

Start free. Upgrade when you're ready.

Start free →

15 AI tokens a month. No credit card.

Frequently Asked Questions

Do I need to add TikTok Pixel to every page of my website?

Yes. Place the base code in your site-wide header so it fires on every page. That gives TikTok the broadest possible view of user behavior and the strongest signal for ad optimization.

How long does it take for TikTok Pixel to start tracking data?

Data typically appears in Events Manager within a few minutes of a user triggering an event. Give it 24 hours to confirm consistent tracking before drawing conclusions.

What is the difference between the base code and Standard Web Events?

The base code fires on every page and records basic activity like page views. Standard Web Events are additional tracking triggers you configure for specific actions, like purchases or add-to-cart clicks. You need both for conversion optimization.

Can I install TikTok Pixel without touching my website code?

Yes. If you use Shopify, Google Tag Manager, WooCommerce, or another supported platform, TikTok's partner integrations handle the code automatically. Find the full list under Partner Platform in Events Manager.

Stop hustling

You just read the manual way. Coinis does it all.

Every step above takes hours of manual work. Coinis automates it. Free to start. No credit card. Pay only when you need more volume.

Steps 1–2

Goal + Audience

AI analyzes your brand from a URL. Targets the right buyers automatically.

Steps 3–4

Channels + Budget

One-click launch to Meta. Smart budget allocation out of the box.

Step 5

Ad Creatives

Paste a link. Get dozens of professional ads in minutes.

Steps 6–7

Launch + Track

Live dashboard. Real ROAS. AI suggests what to optimize next.

15 credits day one
No credit card
Free forever tier
Pay only for volume
Start free

You just learned the hard way. Here's the easy way.

Coinis generates ad creatives, launches campaigns, and tracks results. One platform. One click. No ad expertise required.

Try Coinis free