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.

How the integration works:

When the initial state is set to block the Analytics and Marketing cookie groups or the customer opts out, the script which is setting the TikTok Pixel will not be executed.

How to integrate TikTok Pixel with Consentmo app?



The TikTok Pixel can be integrated with Consentmo either automatically or manually.

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.

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

Updated on: 28/11/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!