{"id":1525,"date":"2024-01-10T16:21:57","date_gmt":"2024-01-10T16:21:57","guid":{"rendered":"https:\/\/theoptimizer.io\/help\/?post_type=ht_kb&#038;p=1525"},"modified":"2024-06-11T11:24:32","modified_gmt":"2024-06-11T11:24:32","slug":"how-to-connect-tiktok-to-tonic","status":"publish","type":"ht_kb","link":"https:\/\/theoptimizer.io\/help\/knowledge-base\/how-to-connect-tiktok-to-tonic\/","title":{"rendered":"How to connect TikTok to Tonic?"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to connect Tonic to TikTok?\" width=\"643\" height=\"362\" src=\"https:\/\/www.youtube.com\/embed\/Ct6aPtSqtXw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>TheOptimizer has direct integrations with all the major search feeds, including Tonic. Follow the steps below to connect TikTok to Tonic inside TheOptimizer. <\/p>\n\n\n\n<p>\ud83d\udca1NOTE: If you are using a tracker like ClickFlare to track the revenue from Tonic, and have already connected ClickFlare to TheOptimizer, then you do not need to also connect Tonic. TheOptimizer will pull revenue and conversion data from your tracker (ClickFlare).<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> On&nbsp;<strong>Account Wizard<\/strong>, select which TikTok ad accounts you need to connect to Tonic, then press &#8220;<strong>Next<\/strong>&#8220;.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"458\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-1024x458.png\" alt=\"\" class=\"wp-image-1526\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-1024x458.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-300x134.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-768x344.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-50x22.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-1536x688.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-2048x917.png 2048w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-60x27.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-ga-start-2-100x45.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 2:&nbsp;<\/strong>Now, you need to click on &#8220;Add new&#8221; and select Tonic from a drop-down list of trackers and search feeds. Here, you will need to fill in some information about your Tonic account. <\/p>\n\n\n\n<p>\ud83d\udca1<strong>NOTE:&nbsp;<\/strong>You can find your Tonic API information by logging into your Tonic account and going to&nbsp;<strong>Account &gt; Settings.<\/strong>&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"402\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer-1024x402.png\" alt=\"\" class=\"wp-image-1527\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer-1024x402.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer-300x118.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer-768x301.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer-50x20.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer-1536x603.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer-60x24.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer-100x39.png 100w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/Tonic-API-Key-The-Optimizer.png 1850w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 3:<\/strong> Fill in the Tonic information shown below, including the API Key and API Secret you got from the previous step, to complete your account connection: <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"1024\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-920x1024.png\" alt=\"\" class=\"wp-image-1528\" style=\"width:400px\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-920x1024.png 920w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-270x300.png 270w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-768x855.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-45x50.png 45w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-54x60.png 54w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-90x100.png 90w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1.png 975w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 4:<\/strong>&nbsp;After you have placed the&nbsp;<strong>API Key<\/strong>&nbsp;and&nbsp;<strong>API Secret&nbsp;<\/strong>from Tonic and&nbsp;<strong>Saved<\/strong>&nbsp;the information, you will need to specify which Tonic subids you are using to pass traffic source macros back to Tonic. Here is a possible configuration: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"552\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-1024x552.png\" alt=\"\" class=\"wp-image-1529\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-1024x552.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-300x162.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-768x414.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-50x27.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-1536x828.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-2048x1103.png 2048w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-60x32.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-100x54.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Step 5:<\/strong> As you noticed above, we are passing campaign tokens under subid1, adgroup tokens under subid2, and ad tokens under subid3. Once you click on <strong>Finish<\/strong>, you still have to update your TikTok campaign links to ensure this tracking code is present: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">subid1=__CAMPAIGN_ID__&amp;subid2=__AID__&amp;subid3=__CID__<\/pre>\n\n\n\n<p>\ud83d\udca1NOTE: Make sure all traffic source macros mentioned above are included in your configuration to ensure all data is being passed to TheOptimizer. For example, if you are not using the __CID__ macro, there will not be Tonic data for TikTok ads in TheOptimizer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When to use custom tracking? <\/h2>\n\n\n\n<p>If you do not have all the Tonic subids available, you can enable and use our custom tracking option.<\/p>\n\n\n\n<p>Using the <strong>Custom Tracking<\/strong> option, you are able to pass more than one traffic source macro on a single Tonic subid, using a special format. For example, you can pass all TikTok macros on subid1:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-1024x536.png\" alt=\"\" class=\"wp-image-1530\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-1024x536.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-300x157.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-768x402.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-50x26.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-1536x804.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-2048x1072.png 2048w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-60x31.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/tiktok-x-tonic-custom-tracking-100x52.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If you choose this option, the following tracking code needs to be appended to your existing and future campaign links: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">subid1=__CAMPAIGN_ID__|__AID__|__CID__<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Next step: Automate your TikTok campaigns <\/h2>\n\n\n\n<p>After the account setup is complete, you can move forward with campaign automation. Check out TikTok rule examples <a href=\"https:\/\/theoptimizer.io\/help\/article-categories\/5-how-to-set-up-automation-rules-for-tiktok-with-examples\/\">here<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow this step-by-step guide to connect Tonic for your TikTok campaigns.<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[46],"ht-kb-tag":[],"class_list":["post-1525","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-3-how-to-connect-tiktok-to-an-external-revenue-stream"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/comments?post=1525"}],"version-history":[{"count":4,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1525\/revisions"}],"predecessor-version":[{"id":2161,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1525\/revisions\/2161"}],"wp:attachment":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/media?parent=1525"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-category?post=1525"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=1525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}