Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Properly Set Up the TikTok Ad Pixel in WordPress

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you need to set up a TikTok ad pixel on your WordPress site?

When you advertise your website on TikTok, you will need to add code to your site to track the effectiveness of your ad campaign. When your TikTok ads and sponsored posts drive traffic to your website, you can see what content drives the most conversions.

In this article, we will show you how to properly set up the TikTok ad pixel in WordPress.

How to Properly Set Up the TikTok Ad Pixel in WordPress

Why Use the TikTok Ad Pixel in WordPress?

According to our latest marketing research, TikTok is one of the most popular social networks in the world, with over 1 billion monthly active users. This is why many online store owners and small business owners are using TikTok advertising to reach their audience.

TikTok ad pixel helps you maximize the ROI (return on investment) from your TikTok ads because it lets you track the effectiveness of your campaigns.

You can easily add the TikTok ad pixel on your WordPress website or WooCommerce store, so you can easily monitor user activity and ad sales and optimize your campaigns.

With that being said, let’s take a look at how to properly set up the TikTok ad pixel in WordPress.

Creating the TikTok Pixel Code

To get started, you need to go to the TikTok for Business website and sign into your account. After that, you should navigate to the Assets » Events page.

Navigate to Assets » Events in the TikTok Ads Manager

On the next page, you need to let TikTok know whether you will be sharing events that happen on your app or website.

You will be tracking events that happen on your website, so you need to click the ‘Manage’ button under ‘Web Events’.

Click the Manage Button Under Web Events

Next, you will see a message stating that you need to install a TikTok pixel.

Simply click the ‘Create Pixel’ button.

Click the Create Pixel Button

Now you should give the pixel a name, such as the name of your website.

After that, you need to select ‘TikTok Pixel’ as your connection method and then click the ‘Next’ button.

Name the Pixel Then Select the TikTok Pixel Option

In the next step, you need to let TikTok know that you will install the pixel by copying the code to your website.

You should select the ‘Manually Install Pixel Code’ option and then click the ‘Next’ button.

Select the Manually Install Pixel Code Option

You will now be able to see the pixel code.

You should copy it to the clipboard by clicking the ‘Copy Pixel Code’ button.

Click the Copy Pixel Code Button

Now you can visit your website to set up the TikTok ad pixel in WordPress.

Adding the TikTok Pixel Code in WordPress

The easiest way to add the TikTok ad pixel code to your WordPress site is with WPCode, the most powerful code snippet plugin available for WordPress. It lets you easily add custom code to any area of your site, and best of all, it’s free.

First, you need to install and activate the free WPCode plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Once activated, you need to go to Code Snippets » Headers & Footer.

Simply paste the TikTok pixel code you copied earlier into the ‘Header’ field and then click the ‘Save Changes’ button.

Use the WPCode Plugin to Easily Ad the Pixel Code to Your Website

That’s it! The TikTok ad pixel has been added to your site.

Alternative: Adding the TikTok Pixel in WordPress with eCommerce Tracking

If you have an online store, you may want to upgrade to WPCode Pro to add the TikTok pixel with eCommerce tracking in WordPress.

WPCode - Best WordPress Code Snippets Plugin

WPCode Pro’s Conversion Pixels addon lets you easily add eCommerce tracking pixels for TikTok, Facebook, Google Ads, and Pinterest in just a few clicks.

It integrates with WooCommerce and Easy Digital Downloads so that you can track eCommerce events like product page view, add to cart, checkout page visit, and purchase.

This lets you see how your ads are performing so that you can improve your return on ad spend (ROAS) and increase conversions.

Simply go to Code Snippets » Conversion Pixels from your WordPress admin dashboard. Then, paste your ‘TikTok Pixel ID’ and the ‘Events API Access Token’ into the corresponding fields.

Paste the TikTok Pixel ID and Events API Access Token in WPCode

After that, you can scroll down the page to choose which events to track.

By default, all events tracking is enabled. But, if you want, you can toggle the switch to turn off event tracking for any of the options.

eCommerce events tracking WPCode

Once you click the ‘Save Changes’ button, you are ready to track eCommerce events for your TikTok campaigns.

Next, you will need to switch back to the TikTok website to create the events you wish to track.

Creating and Testing the Events You Wish to Track

When you return to the TikTok Ads Manager website, you will use the Event Builder to complete the setup. You should be looking at the ‘Create events to track actions’ page. There are two types of events you can track.

First, there are URL events. These will track each time someone visits a specific page on your site, such as a product page or order confirmation page.

Simply click the ‘+ Enter URL Keywords’ button and enter the event type and some keywords from the URL.

Create URL and Click Events in TikTok

Second, there are click events. These events track when someone clicks a website element like an ‘add to cart’ button or a form submission button.

When you click the ‘+ Add Web Elements’ button, you will be prompted to install the ‘Pixel Helper’ Chrome extension. This extension will help you add click events, and it also tests to make sure your TikTok ad pixel is working correctly.

For detailed instructions on how to add both types of events, see the official TikTok Business Help Center documentation on how to create events.

Expert Guides on Advertising in WordPress

Now that you know how to set up the TikTok ad pixel, you may like to see some other guides related to advertising in WordPress.

We hope this tutorial helped you learn how to properly set up the TikTok ad pixel in WordPress. You may also see our guide on how to track website visitors or our expert picks for the best Instagram plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

1 CommentLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.