Articles on: Integrations

TikTok Pixel Integration with the Consentmo GDPR app

The TikTok Pixel is a piece of Javascript code you install on your website. With this code on your website, TikTok automatically captures user actions on your website and can track events such as adding to cart or placing an order. These events are stored in your TikTok Ads account, where they can be referenced to build custom audiences, optimize ad delivery, and inform attribution to measure campaign performance.

If you’re currently using the service above, the integration script from our app needs to be implemented in accordance with the visitor’s consent given via the Cookie bar.

To implement the TikTok Pixel tracking integration for the Consentmo GDPR app, follow these steps:

Enabling of the TikTok Pixel's integration script

Open Shopify Admin.
Click on Online Store link in the left menubar.
Click on the Actions dropdown button and select Edit Code from there.
A new page will open with a list of files on the left side of the screen. Open the theme.liquid file.
Locate the opening <head> add the following line of code:

{% render 'ttp-integration-script' %}

Note: The line of code should be placed right after the opening <head> tag as the integration script needs to be executed before the TikTok Pixel.

Create a new liquid file in the Snippets section of the theme files, called ttp-integration-script

After that copy the content of the integration script provided below and paste it in the newly created Snippet file:

Download TikTok Pixel Integration script

The final result should look like this:

In need of any assistance with the setup, do not hesitate to drop us a line at or via our Live chat.

Updated on: 13/07/2024

Was this article helpful?

Share your feedback


Thank you!