Add Tiktok Pixel for Tiktok ads (+Woocommerce)


TikTok is one of the most trending applications in today's world of internet buzz as people from different age groups and interests prefer to spend time switching short videos every now and then. Be it the moment of passing time or exploring some cool stuff, TikTok is definitely leading the talk among the Gen-X, Y, Z. Mostly dominated by the young folks, this platform is a perfect time-killer for people of all ages to explore the potential of user-generated content.

TikTok can become a powerful tool for the brands to promote their products smartly through short-span videos by emphasizing the use of smart and user-oriented content. It has the capability to influence the youth by targeting their interests.

This Tiktok Pixel plugin (For TikTok ads) allows you to install your Tiktok pixel properly (between \<head\> \</head\>) on your website to track conversion from your audiences.

  • Enable Tiktok Pixel
  • Add your Tiktok Pixel ID
  • Click "Save changes"
  • Done !

PRO version

Pro version allows you to add this pixel properly on Woocommerce pages (Products, add to cart, checkout, …)

Also, you have access to a “dev” mode allowing to copy-paste the entire code, including specific events and a META BOX to add strategically Tiktok Event scripts on specific pages.

Once done, you can use TikTok Pixel Helper (Chrome extension) to check if your landing page is installed correctly and if the conversion event is triggered. If the pixel is installed correctly, it will show the Pixel name and the number of the created conversions under it.

Please refer to TikTok guidelines for more details about TikTok ads.


TikTok app enjoyed over 1.1 billion installs as at March 2019. Users downloaded it more than 660 million times in 2018 alone, with a further 188 million downloads during Q1 2019. More than 500 million people globally use TikTok each month.


TikTok is probably the next Snapchat or Instagram. Indeed, research indicates that around two-thirds of TikTok users/followers are under 30 years old. We'd normally expect to find the under-30 demographic on Instagram or Snapchat.

TikTok presents an enormous opportunity to advertisers. Not only has TikTok surpassed Twitter and Snapchat in popularity but it's also less saturated with ads than its older counterparts. The visual app—which allows users to edit and share 15-second videos with built-in filters, effects, and music—has truly shaken up the marketing world with its unprecedented virality.

In early 2019, the app launched a beta version of its ads offering. Since then, big names like Grubhub, Nike, Fenty Beauty, and Apple Music have used TikTok ads to promote products in unique, visually compelling campaigns. With advanced targeting and unique ad creation features, the TikTok Ads platform is unlike many of its predecessors. When used effectively, it can help you tap into one of the most lucrative pools of users.


There are three main ways that brands can market on TikTok:

  • They can create their own channel and upload relevant videos through their channel
  • They can work with influencers, to spread content to a broader audience
  • They can pay to advertise on Tiktok.

No need to say that TikTok Videos are an enormous opportunity for advertisers to market their products and services to the young generation. As the platform hosts millions of young people worldwide, it opens the door for the marketers to creatively reach out to the new world of influencers.


The TikTok is gradually rolling out new updates to support a wide range of TikTok advertising formats on its platform to offer a great advantage to marketers as well as audiences who tend to come to the platform to socio-entertain themselves.

For the moment, there is currently only one ad unit: the standard in-feed video ad. Given TikTok is a feed of short video clips, this format makes the most sense, as the platform introduces its user base to ads in-feed.

With these in-feed video ads, there are three action models:

  • Cost Per View : The cost per view model will require advertisers to pay when users view their ad. It is limited to 6 seconds time frame.
  • Cost Per Impression (CPM): This model will require advertisers to pay when their ads appear on the Tik-Tok feed.
  • Cost Per Click : This is the more opted approach for advertisers as they will be only charged once the user clicks on their ad.

For targeting, TikTok ads offers age, gender, and state-level geo-targeting, and the company has also promised interest, behavioral, more granular demo targeting over time. This ad appears instantly when a user opens the app, bringing your message front and center. You can then drive users to an internal or external destination.

You can also create custom audiences, such as CRM lists, and you can white list or blacklist the audiences.


Currently, TikTok's commercial platform is only available in beta mode for select companies. However, the self-serve ads will be accessible to all shortly. When this happens, companies will have six options to choose from:

  • Hashtag Challenge
  • Brand Takeover
  • In-feed native video
  • Top View
  • Branded Lenses / Effect
  • Custom Influencer

More details:

Enjoy !


  • Add Tiktok Pixel Settings Page
  • Add Tiktok Pixel Settings Page


Installing manually

  1. Unzip all files to the /wp-content/plugins/tiktok-advertising-pixel directory
  2. Log into WordPress admin and activate the ‘Tiktok Pixel’ plugin through the ‘Plugins’ menu
  3. Go to “Settings > Tiktok Pixel” in the left-hand menu to start work on it.


September 14, 2023
It seems that the free version is not working as expected. yes, I can set up the Pixel ID.But I could not find a way to set my Access Token or the html code from tiktok.So for me the free version is not useful at all. I think it´s easier to just edit the .htaccess directly
March 12, 2022 1 reply
Hi! I’m updated to v1.2.2 and tested my site using the “TikTok pixel helper” and the pixel was not loading correctly. HTML code is present but with a different value. I’ve checked /admin/controllers/TrackingController.php, line 19: It says echo $this->tiktok( "Option::get('ttap__id')" ) . "\n" ; instead of echo $this->tiktok( Option::get('ttap__id') ) . "\n" ; I’ve changed and now it works, but I wanted to report the issue.
December 6, 2021 1 reply
Please pass this plugin right on by because it does not work. Poorly documented and even worse support. Support will tell you “we’re not TikTok”….well no shit. Very sketchy to say the least. And as soon as you ask for a refund on their product that doesn’t work, they stop communicating.
November 18, 2021 1 reply
This plugin is basically useless as it only configures the basic TikTok pixel code even if you upgrade to the PRO version that states that it will install the TikTok pixel correctly for Woocommerce. You won’t benefit from dynamic parameters sent back to TikTok in order to calculate ROAS and track ad performance properly. When confronted with this issue and asking for a refund they refuse to refund you and only point you to the plugin description stating that “the plugin is intended to install the TikTok pixel correctly” and you should report bugs in order to get refunded. STAY AWAY FROM THIS PLUGIN!
November 17, 2021 1 reply
Unfortunately, the basic features can’t be tried without buying the PRO version. So it doesn’t make much sense.
August 17, 2021 1 reply
We’ve used this plugin to ensure our TikTok plugin was installed on our website correctly. Super easy to use and well worth the investment
Read all 11 reviews

Contributors & Developers

“Add Tiktok Pixel for Tiktok ads (+Woocommerce)” is open source software. The following people have contributed to this plugin.




  • Initial release.


  • Fixed some styling issues


  • 📦 NEW: Step 2 for TikTok Video Feed
  • 🐛 FIX: Multiple undefined veriable notices inside PHP log.
  • 👌 IMPROVE: Updated freemius to latest version 2.3.2


  • 🐛 FIX: Update TikTok Script code to newer version
  • 👌 IMPROVE: Updated freemius to latest version 2.4.0


  • 👌 IMPROVE: Updated freemius to latest version 2.4.1


  • 🔥 NEW: Meta Tags for SEO promotion


  • 🐛 FIX: Update TikTok Script code to newer version
  • 🔥 NEW: Deveopler Mode for adding custom code (Pro version only)
  • 🔥 NEW: 21 languages added
  • 👌 IMPROVE: Updated freemius to latest version 2.4.2


  • 🔥 NEW: Floating Button for TikTok Promotion


  • 🐛 FIX: Added nonce for post request, fixed stable tag, escaped echo


  • 🐛 FIX: Styling, Text and some issues.


  • 👌 IMPROVE: New refactored code with many improvements
  • 🐛 FIX: Several bugs and issues


  • 🐛 FIX: Setting links and few others bug
  • 👌 IMPROVE: Top level settings page
  • 👌 IMPROVE: New Tiktok Booster add-on integration


  • 🐛 FIX: Security issue


  • 🐛 FIX: Tracking ID Bug (if Woocommerce is active).


  • 👌 IMPROVE: Tiktok Booster notifiction


  • 👌 FIXED: Cart and checkout issue


  • 👌 IMPROVE: Updated Freemius to v2.5.3


  • 🐛 FIX: Security fix