Published on

How to install the TikTok Tag on WordPress with PixelYourSite - WooCommerce Support

How to Install the TikTok Tag on WordPress with PixelYourSite - WooCommerce Support

If you have a WordPress website using WooCommerce and Easy Digital Downloads and you want to install the TikTok tag for tracking purposes, PixelYourSite Professional plugin can make the process easy for you. This plugin allows you to add the TikTok tag on every WordPress page and also enables the automatic firing of e-commerce-specific TikTok tag events for WooCommerce and Easy Digital Downloads. In this tutorial, we will guide you step-by-step on how to install the TikTok tag using PixelYourSite Professional.

Step 1: Install and Update PixelYourSite Professional

Before you begin, ensure that you have the PixelYourSite Professional plugin installed and updated on your WordPress website.

Step 2: Add the TikTok Tag ID

Once you have the plugin installed and updated, go to the Tick Tock Tag settings in the plugin's dashboard. Expand the settings and find the field where you need to add your TikTok tag ID.

To obtain your TikTok tag ID, follow these steps:

  1. Log in to your TikTok Ads account.
  2. Go to Assets and click on the Events tab.
  3. Create a pixel and give it a name.
  4. Select "Manually install the pixel code" and click Next.
  5. Choose the "Developer mode" and install the code with PixelYourSite.
  6. Enable advanced matching and click Confirm.
  7. Copy the ID from the TikTok Ads dashboard.

Now, go back to the PixelYourSite Professional settings and paste the TikTok tag ID in the designated field. Save the changes.

Step 3: Clear Caches and Test the Events

To test the TikTok tag events and ensure they are working correctly, clear all your website caches, including any cache plugins or external services like Cloudflare. This step is crucial to prevent older versions of pages without the TikTok tag from being served, resulting in the inability to see the events.

Next, follow these steps to test the TikTok events:

  1. Go to the TikTok Ads dashboard and click on "Test Events."
  2. Add your website URL and generate a QR code.
  3. Using your phone, open the camera app and scan the QR code to open your website in the browser.
  4. Start browsing your website, opening pages, and adding products to the cart.
  5. To see the events, remember that the TikTok tag has a default "Page View" event on every page. However, it might not show up during testing. You can view other events by navigating to specific pages, adding products to the cart, or completing a transaction.

To track custom events with TikTok, you can add them directly from the PixelYourSite Professional plugin. Go to the "Events" tab, click "Add New," and configure the event triggers and parameters. Ensure you select the TikTok tag ID and choose one of the standard events from the list provided.


In summary, installing the TikTok tag on your WordPress website using PixelYourSite Professional is a straightforward process. By following the steps outlined above, you can easily set up the TikTok tag for tracking events on WooCommerce and Easy Digital Downloads. Remember to clear all caches before testing the events and use the PixelYourSite Professional plugin to add custom TikTok events.


TikTok tag, install, PixelYourSite Professional, WordPress, WooCommerce, Easy Digital Downloads, event tracking, TikTok Ads, pixel code, testing, page view, view content, add to cart, transaction, event configuration, custom events.


Q: Can I install the TikTok tag on WordPress without using a plugin like PixelYourSite Professional?

A: Yes, it is possible to manually install the TikTok tag on WordPress without using a plugin. However, manually configuring TikTok events and tracking dynamic actions may be more challenging and time-consuming. Using a plugin like PixelYourSite Professional simplifies the process and eliminates the need for manual coding.

Q: How can I test the TikTok events on my website?

A: To test the TikTok events on your website, ensure that you clear all website caches before starting the testing process. Follow the steps outlined in the tutorial, including generating a QR code, scanning it with your phone's camera, and browsing your website to trigger different events. It is important to note that the TikTok tag may not display the "Page View" event during testing, but other events like "View Content," "Add to Cart," and "Transaction" should be visible.

Q: Can I track custom events with the TikTok tag using PixelYourSite Professional?

A: Yes, you can track custom events with the TikTok tag using PixelYourSite Professional. In the plugin's settings, you have the option to add additional events and configure their triggers, parameters, and associated TikTok tag ID. However, it is important to select one of the predefined standard TikTok events from the available list as TikTok currently does not support custom event names.