Articles on: Integrations

TikTok Pixel Integration with the Consentmo GDPR app

The TikTok Pixel is a JavaScript code that tracks user actions on your website, such as adding to cart or placing an order. These actions are stored in your TikTok Ads account for building custom audiences, optimizing ads, and measuring campaign performance.

How It Works



When the Analytics and Marketing cookie groups are blocked, or the customer opts out, the TikTok Pixel script will not execute.

Automatic integration



Note: The automatic integration is available only for the Paid plans users (Standard, Plus and Enterprise).

Step 1: Setup the TikTok pixel ID



Go to the homepage of your TikTok Ads Manager account and on the "Tools" tab located in the top menu.
An additional drop-down menu will appear, locate and click on the "Events" button.
In the Events Manager, navigate to the section of the page titled "Datasets overview" and click on your current pixel.



In your current Pixel, navigate to the section of the page titled "ID" and copy your Pixel ID.



Navigate to Consentmo's settings and click on the Integrations tab > Services Tracking > TikTok Pixel integration page
Paste the ID in the field
Save the changes

Step 2: Enable the TikTok Pixel integration



Enable consentmo's integration by clicking on the button Turn on.
The final result should look like this:



Manual Integration



NOTE: The below integration is only applicable if the service is added via a script placed in the theme files of the store. If the integration for the service is done through any other channel or service, please check the Help center for the relevant integration as per your case: 6. Integrate Google, Meta Pixel, etc

Open Shopify Admin

Click on Online Store link in the left menubar.

Click on the Actions dropdown button and select Edit Code from there.

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

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

Download TikTok Pixel Integration script

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 after the opening <head> tag and before the original TikTok Pixel script as the integration script needs to be executed before the original TikTok one.

A reference on the process can also be checked here:





NOTE: Make sure to remove the added code before deleting the app. This way, no snippets of code will be left in your theme. For more information on what you should be aware of when deleting our app check this article of our FAQ page.

Need help?



In case you need any assistance, please make sure to reach out to our support team via live chat or at support@consentmo.com

Updated on: 07/01/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!