{"slug":"sop-110-install-tiktok-pixel-on-your-site","title":"Install TikTok pixel on your site","tags":["source:clickminded","type:sop","server:clickminded-sop","install","tiktok","pixel","site"],"agent_summary":"SOP 110: Install TikTok pixel on your site Add the TikTok pixel to your site in order to create remarketing audiences and set up conversions for your campaigns that better optimize your ads. __Last Up","trigger_phrases":["install tiktok pixel on your site","how to install tiktok pixel on your site"],"runnable":false,"markdown":"\r\nSOP 110: Install TikTok pixel on your site\r\n\r\nAdd the TikTok pixel to your site in order to create remarketing audiences and set up conversions for your campaigns that better optimize your ads.\r\n\r\n__Last Updated / Reviewed:__ 06/21/2024\r\n\r\n__Execution Time:__ 10-20 minutes\r\n\r\n__🚀 Goal:__ To add the TikTok tracking pixel to your site.\r\n\r\n__🤞 Ideal Outcome:__ The TikTok pixel is properly installed without any technical issues.\r\n\r\n__🤔 Why this is important:__ The TikTok Pixel allows you to track visitors who come from your TikTok ad campaigns. You can also track website visitor actions, like 'Pageviews' or 'Purchases' and create audience segments to retarget them.\r\n\r\n__🧐 Where this is done__ In Google Tag Manager and TikTok Ads Manager.\r\n\r\n__🗓️ When this is done:__ Before you run any TikTok advertising campaign on your website. You only need to do this once unless you’re running TikTok ads on multiple websites.\r\n\r\n__👨 Who does this:__ The person responsible for website management, analytics, or paid advertising.\r\n\r\n__⚠️Prerequisites or requirements: __\r\n\r\nYou’ll need access to an active __TikTok for Business__ account. Also, you’ll need access to Google Tag Manager (GTM) that was set up on your website.\r\n\r\nIf you don’t have a TikTok For Business account, sign up [here](https://ads.tiktok.com/i18n/signup).\r\n\r\nIf you haven’t set up Google Tag Manager, refer to the following SOPs:\r\n\r\n• SOP 004 ([web version](https://members.clickminded.com/sop/004/)) to Set up Google Tag Manager on WordPress\r\n\r\n• SOP 065 ([web version](https://members.clickminded.com/sop/065/)) to Set up Google Tag Manager on Shopify\r\n\r\n• SOP 066 ([web version](https://members.clickminded.com/sop/066/)) to Set up Google Tag Manager on Squarespace\r\n\r\n[__Click here to get the most up-to-date version of this SOP__](https://members.clickminded.com/sop/110)\r\n\r\n## Environment Setup\r\n\r\nBefore you start:\r\n\r\n### 01▸ Open a new browser window with your [TikTok](https://www.tiktok.com) and [Google Tag Manager](https://tagmanager.google.com) account signed in.\r\n\r\n### 02▸ Download the [TikTok Pixel helper](https://chrome.google.com/webstore/detail/tiktok-pixel-helper/aelgobmabdmlfmiblddjfnjodalhidnn)\r\n\r\n## Install TikTok Pixel via Google Tag Manager\r\n\r\n### 01▸ [Sign in to TikTok for Business.](https://ads.tiktok.com/i18n/login)\r\n\r\n### 02▸ Once signed in. Head to Events manager by clicking \"Tools\" followed by \"Events\".\r\n\r\n____\r\n\r\n### 03▸ Click \"Manage\" under Web Event.\r\n\r\n\r\n### 04▸ Click on the \"Create pixel\" button. A pop up will appear:\r\n\r\n\r\nCreating your Pixel:\r\n\r\n### 05▸ Select \"Partner setup\".\r\n\r\n\r\n### 06▸ Select \"Google Tag Manager\" as your TikTok partner and follow through the setup guide:\r\n\r\nYou’ll be asked to login to your Google account. Make sure all the Google Tag Manager permissions are checked. This allows Google Tag Manager and the TikTok Pixel to communicate with each other.\r\n\r\n__*Note*__*: Double-check that you’re logging into the correct Google account (the one that has access to your Google Tag Manager container).*\r\n\r\n**\r\n\r\n### 07▸ Your Google Tag Manager details will be automatically populated. Make sure you are selecting the correct Account and Container, if so click \"Next\".\r\n\r\n\r\n### 08▸ Next, name your pixel.\r\n\r\n### 09▸ Choose the correct container:\r\n\r\n### 10▸ Select \"Set up with Event builder\".\r\n\r\n### 11▸ Next, click \"Publish\" and continue setup.\r\n\r\n### 12▸ By now, you should be able to see a new tag  in your GTM account:\r\n\r\n### 13▸ Next, switch on all configurations.\r\n\r\n\r\n## Create a Page View event\r\n\r\nFollowing the above steps,\r\n\r\n### 01▸ Click \"Launch Event Builder\" under step 5 \"Set up events\". You will be directed to a new tab.\r\n\r\n### 02▸ Add your website URL and select an event type.\r\n\r\n__*Note:*__* Click on the arrow on step 1 to reveal if the TikTok Pixel has been properly installed on your website. If not, you will have to install the base code in the header section of your website. Click on the below button \"Install Base Code\" to reveal the pixel code.  *\r\n\r\n**\r\n\r\n### 03▸ Select a tracking method and remember to click \"Save\".\r\n\r\n__*Note 1:*__* When setting up *__*URL keywords*__*, avoid entering keywords that might be duplicates of each other. For instance, using \"cart\" and \"cart/123\" as separate keywords could cause duplicate events due to overlapping trigger rules. You can also create more events by clicking on + Enter URL Keywords or + Add Web Elements.*__Note 2:__*When setting up *__*Web Elements*__*, enter your website’s URL in the preview on the left side of the screen to sync your website with the event setup, which mimics how your site will appear in the TikTok app. Once connected, use \"selector\" mode to add web elements or \"navigation\" mode to move around your site. After syncing your website in the preview and on your mobile device, click \"+ Add Web Elements\" to begin. Selectable web elements will be highlighted in blue. Click on an element to record it as CSS selector code under \"Select clicked element\".*\r\n\r\n### 04▸ Additional set ups\r\n\r\n__*(1) Set up value and currency parameters with Event Builder*__\r\n\r\nAfter selecting your event type and setup method, configure the value and currency parameters required for ROAS reporting and Value Optimization. Click the \"value & currency\" dropdown and choose \"Choose value & currency on page\" to add a value parameter corresponding to the event on your page. Event Builder will then dynamically fill values onto other pages. Finally, select your currency from the dropdown menu under the currency section.  __*Note:*__* This setup is best for one currency. If you have a more complex website with multiple currencies, we recommend you use a more advanced setup tool for parameters such as Custom Code or Events API.*   __*(2) Set up content parameters with Event Builder*__ After selecting your event type and setup method, configure the content parameters (content ID and content type) necessary for Video Shopping Ads and Catalog Management. Click the \"Content ID and Content Type\" dropdown to add a content parameter. You can select the content ID from your web page if it is visible, or choose to extract the content ID from the URL if it appears there. Then, select the content type. \r\n\r\n## Verifying the TikTok and Event Pixels are installed correctly\r\n\r\n__*Important*__*: It takes about 15-30 minutes for both Google Tag Manager and TikTok’s event pixel to start sending signals.*\r\n\r\n### 01▸ Head over to your website after 30 mins and refresh a couple of times for the event pixel to kick in.\r\n\r\n### 02▸ Click the \"TikTok Pixel\" helper in your Google Chrome toolbar, you should see both the TikTok and Event pixels are now tracked.\r\n\r\n\r\n### 03▸ Now head back to TikTok's [ Event Manager](https://ads.tiktok.com/i18n/events_manager/pixel) and you’ll see the page view metrics are now tracked.\r\n\r\n\r\n__*You’ve done it!*__* *Now that you’ve started tracking page views across your website, you can set up tracking for other metrics such as add to cart and purchase events.","html":"<p>SOP 110: Install TikTok pixel on your site</p>\n<p>Add the TikTok pixel to your site in order to create remarketing audiences and set up conversions for your campaigns that better optimize your ads.</p>\n<p><strong>Last Updated / Reviewed:</strong> 06/21/2024</p>\n<p><strong>Execution Time:</strong> 10-20 minutes</p>\n<p><strong>🚀 Goal:</strong> To add the TikTok tracking pixel to your site.</p>\n<p><strong>🤞 Ideal Outcome:</strong> The TikTok pixel is properly installed without any technical issues.</p>\n<p><strong>🤔 Why this is important:</strong> The TikTok Pixel allows you to track visitors who come from your TikTok ad campaigns. You can also track website visitor actions, like 'Pageviews' or 'Purchases' and create audience segments to retarget them.</p>\n<p><strong>🧐 Where this is done</strong> In Google Tag Manager and TikTok Ads Manager.</p>\n<p><strong>🗓️ When this is done:</strong> Before you run any TikTok advertising campaign on your website. You only need to do this once unless you’re running TikTok ads on multiple websites.</p>\n<p><strong>👨 Who does this:</strong> The person responsible for website management, analytics, or paid advertising.</p>\n<p>__⚠️Prerequisites or requirements: __</p>\n<p>You’ll need access to an active <strong>TikTok for Business</strong> account. Also, you’ll need access to Google Tag Manager (GTM) that was set up on your website.</p>\n<p>If you don’t have a TikTok For Business account, sign up <a href=\"https://ads.tiktok.com/i18n/signup\">here</a>.</p>\n<p>If you haven’t set up Google Tag Manager, refer to the following SOPs:</p>\n<p>• SOP 004 (<a href=\"https://members.clickminded.com/sop/004/\">web version</a>) to Set up Google Tag Manager on WordPress</p>\n<p>• SOP 065 (<a href=\"https://members.clickminded.com/sop/065/\">web version</a>) to Set up Google Tag Manager on Shopify</p>\n<p>• SOP 066 (<a href=\"https://members.clickminded.com/sop/066/\">web version</a>) to Set up Google Tag Manager on Squarespace</p>\n<p><a href=\"https://members.clickminded.com/sop/110\"><strong>Click here to get the most up-to-date version of this SOP</strong></a></p>\n<h2>Environment Setup</h2>\n<p>Before you start:</p>\n<h3>01▸ Open a new browser window with your <a href=\"https://www.tiktok.com\">TikTok</a> and <a href=\"https://tagmanager.google.com\">Google Tag Manager</a> account signed in.</h3>\n<h3>02▸ Download the <a href=\"https://chrome.google.com/webstore/detail/tiktok-pixel-helper/aelgobmabdmlfmiblddjfnjodalhidnn\">TikTok Pixel helper</a></h3>\n<h2>Install TikTok Pixel via Google Tag Manager</h2>\n<h3>01▸ <a href=\"https://ads.tiktok.com/i18n/login\">Sign in to TikTok for Business.</a></h3>\n<h3>02▸ Once signed in. Head to Events manager by clicking \"Tools\" followed by \"Events\".</h3>\n<hr>\n<h3>03▸ Click \"Manage\" under Web Event.</h3>\n<h3>04▸ Click on the \"Create pixel\" button. A pop up will appear:</h3>\n<p>Creating your Pixel:</p>\n<h3>05▸ Select \"Partner setup\".</h3>\n<h3>06▸ Select \"Google Tag Manager\" as your TikTok partner and follow through the setup guide:</h3>\n<p>You’ll be asked to login to your Google account. Make sure all the Google Tag Manager permissions are checked. This allows Google Tag Manager and the TikTok Pixel to communicate with each other.</p>\n<p><strong><em>Note</em></strong><em>: Double-check that you’re logging into the correct Google account (the one that has access to your Google Tag Manager container).</em></p>\n<p>**</p>\n<h3>07▸ Your Google Tag Manager details will be automatically populated. Make sure you are selecting the correct Account and Container, if so click \"Next\".</h3>\n<h3>08▸ Next, name your pixel.</h3>\n<h3>09▸ Choose the correct container:</h3>\n<h3>10▸ Select \"Set up with Event builder\".</h3>\n<h3>11▸ Next, click \"Publish\" and continue setup.</h3>\n<h3>12▸ By now, you should be able to see a new tag  in your GTM account:</h3>\n<h3>13▸ Next, switch on all configurations.</h3>\n<h2>Create a Page View event</h2>\n<p>Following the above steps,</p>\n<h3>01▸ Click \"Launch Event Builder\" under step 5 \"Set up events\". You will be directed to a new tab.</h3>\n<h3>02▸ Add your website URL and select an event type.</h3>\n<p><strong><em>Note:</em></strong>* Click on the arrow on step 1 to reveal if the TikTok Pixel has been properly installed on your website. If not, you will have to install the base code in the header section of your website. Click on the below button \"Install Base Code\" to reveal the pixel code.  *</p>\n<p>**</p>\n<h3>03▸ Select a tracking method and remember to click \"Save\".</h3>\n<p><strong><em>Note 1:</em></strong>* When setting up <em>__</em>URL keywords<em>__</em>, avoid entering keywords that might be duplicates of each other. For instance, using \"cart\" and \"cart/123\" as separate keywords could cause duplicate events due to overlapping trigger rules. You can also create more events by clicking on + Enter URL Keywords or + Add Web Elements.<em><strong>Note 2:</strong></em>When setting up <em>__</em>Web Elements<em>__</em>, enter your website’s URL in the preview on the left side of the screen to sync your website with the event setup, which mimics how your site will appear in the TikTok app. Once connected, use \"selector\" mode to add web elements or \"navigation\" mode to move around your site. After syncing your website in the preview and on your mobile device, click \"+ Add Web Elements\" to begin. Selectable web elements will be highlighted in blue. Click on an element to record it as CSS selector code under \"Select clicked element\".*</p>\n<h3>04▸ Additional set ups</h3>\n<p><strong><em>(1) Set up value and currency parameters with Event Builder</em></strong></p>\n<p>After selecting your event type and setup method, configure the value and currency parameters required for ROAS reporting and Value Optimization. Click the \"value &#x26; currency\" dropdown and choose \"Choose value &#x26; currency on page\" to add a value parameter corresponding to the event on your page. Event Builder will then dynamically fill values onto other pages. Finally, select your currency from the dropdown menu under the currency section.  <strong><em>Note:</em></strong>* This setup is best for one currency. If you have a more complex website with multiple currencies, we recommend you use a more advanced setup tool for parameters such as Custom Code or Events API.*   <strong><em>(2) Set up content parameters with Event Builder</em></strong> After selecting your event type and setup method, configure the content parameters (content ID and content type) necessary for Video Shopping Ads and Catalog Management. Click the \"Content ID and Content Type\" dropdown to add a content parameter. You can select the content ID from your web page if it is visible, or choose to extract the content ID from the URL if it appears there. Then, select the content type.</p>\n<h2>Verifying the TikTok and Event Pixels are installed correctly</h2>\n<p><strong><em>Important</em></strong><em>: It takes about 15-30 minutes for both Google Tag Manager and TikTok’s event pixel to start sending signals.</em></p>\n<h3>01▸ Head over to your website after 30 mins and refresh a couple of times for the event pixel to kick in.</h3>\n<h3>02▸ Click the \"TikTok Pixel\" helper in your Google Chrome toolbar, you should see both the TikTok and Event pixels are now tracked.</h3>\n<h3>03▸ Now head back to TikTok's <a href=\"https://ads.tiktok.com/i18n/events_manager/pixel\"> Event Manager</a> and you’ll see the page view metrics are now tracked.</h3>\n<p><strong><em>You’ve done it!</em></strong>* *Now that you’ve started tracking page views across your website, you can set up tracking for other metrics such as add to cart and purchase events.</p>\n"}