How to Install the TikTok Pixel on Shopify - Updated 2024

Tasnim Hasan
2 mins


Installing the TikTok pixel on your Shopify store is a quick and easy process that can help you optimize your advertising on the popular social media platform. By installing the pixel, you'll be able to track the actions people take on your website after viewing your TikTok ads, such as adding items to their cart or making a purchase.

Here's how to install the TikTok pixel on your Shopify store:

Go to your TikTok Ads Manager and create a new pixel. Give it a name and select "Shopify" as your platform.

Click "Create Pixel" and then "Install Pixel." You'll be given a unique pixel code that you'll need to add to your Shopify website.

Log in to your Shopify account and go to "Online Store" > "Themes." Click on the "Actions" button next to the theme you want to edit and select "Edit code."

In the "Layout" folder, open the "theme.liquid" file. This is the main template file for your website, and it controls the structure and layout of your pages.

Scroll to the bottom of the file and paste the TikTok pixel code just before the closing </body> tag.

Click "Save" to apply the changes to your website.

Test the pixel by visiting your website and checking if it is firing in the TikTok Pixel Helper.

That's it! Your TikTok pixel is now installed on your Shopify store, and you can start tracking the actions people take on your website after viewing your TikTok ads. This information can help you optimize your advertising for better results and help you understand which products are resonating with your audience.


Make sure to check the TikTok policy on the use of pixels. Keep updated on the latest policy updates and make sure you are in compliance with them. This guide is updated as of 2024 and should be accurate for the current year. If you have any trouble or any questions, don't hesitate to reach out to TikTok or Shopify support for assistance.

Curious as to how you can use TikTok Ads to boost your Shopify Store sales? Click here.

Let Your Marketing Grow On Autopilot!

Try for free
Talk to Sales
Subscribe today
Know latest Marketing & Advertising news in your space!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Search Pivot