{"id":1180,"date":"2023-11-14T15:48:36","date_gmt":"2023-11-14T15:48:36","guid":{"rendered":"https:\/\/theoptimizer.io\/help\/?post_type=ht_kb&#038;p=1180"},"modified":"2024-06-11T10:49:25","modified_gmt":"2024-06-11T10:49:25","slug":"how-to-connect-facebook-to-tonic","status":"publish","type":"ht_kb","link":"https:\/\/theoptimizer.io\/help\/knowledge-base\/how-to-connect-facebook-to-tonic\/","title":{"rendered":"How to connect Facebook 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 Facebook?\" width=\"643\" height=\"362\" src=\"https:\/\/www.youtube.com\/embed\/uT63tQBG9fQ?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>\ud83d\udca1<strong>NOTE<\/strong>: If you have connected Tonic to a tracker like ClickFlare, and using ClickFlare with TheOptimizer then you do not need to connect System1 as well. TheOptimizer will pull the data from your tracker (ClickFlare), including revenue and conversions as reported by Tonic.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> On Account Wizard, select the Facebook ad accounts you want to connect to Tonic, then click on <strong>Next<\/strong>.&nbsp;<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> In the second step of the Account Wizard, click on <strong>Add New<\/strong> to start connecting your Tonic account.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> On the pop-up integration screen, click on the Select Tracking Platform drop-down list and select Tonic. Here, you will need to fill in some information. <\/p>\n\n\n\n<p>\ud83d\udca1<strong>NOTE: <\/strong>You can find your Tonic API information by logging into your Tonic account and going to <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\/2023\/11\/Tonic-API-Key-The-Optimizer-1024x402.png\" alt=\"How to find Tonic API information to connect to TheOptimizer  \" class=\"wp-image-1182\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Tonic-API-Key-The-Optimizer-1024x402.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Tonic-API-Key-The-Optimizer-300x118.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Tonic-API-Key-The-Optimizer-768x301.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Tonic-API-Key-The-Optimizer-50x20.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Tonic-API-Key-The-Optimizer-1536x603.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Tonic-API-Key-The-Optimizer-60x24.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Tonic-API-Key-The-Optimizer-100x39.png 100w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/Tonic-API-Key-The-Optimizer.png 1850w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\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\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-920x1024.png\" alt=\"How to connect Tonic search feed provider to TheOptimizer for Facebook campaigns \" class=\"wp-image-1184\" style=\"width:500px\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-920x1024.png 920w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-270x300.png 270w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-768x855.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-45x50.png 45w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-54x60.png 54w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P1-90x100.png 90w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/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> After you have placed the <strong>API Key<\/strong> and <strong>API Secret <\/strong>from Tonic and <strong>Saved<\/strong> the information, you will need to specify which Tonic subids you are using to pass traffic source macros back to Tonic. One possible configuration is shown in the screenshot below:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2-1024x556.png\" alt=\"How to connect Tonic search feed provider to TheOptimizer for Facebook campaigns P2\" class=\"wp-image-1185\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2-1024x556.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2-300x163.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2-768x417.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2-50x27.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2-1536x834.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2-60x33.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2-100x54.png 100w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-P2.png 2010w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 5:<\/strong> Now, you need to make sure that this tracking code is present in your campaigns on Facebook:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">subid1={{campaign.id}}&amp;subid2={{adset.id}}&amp;subid3={{ad.id}}<\/pre>\n\n\n\n<p>\ud83d\udca1<strong>NOTE: <\/strong>Make sure all the traffic source macros are used in your configuration. In case one of the required traffic source macros is missing in your Tonic mapping configuration, or in your campaign tracking code, the data from Tonic for that macro will be missing in TheOptimizer. For example, if you are not using {{ad.id}} macro, there will not be Tonic data for Facebook 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 for some reason you do not have all the Tonic subids available (because you are already using some of them for other purposes), but you have only a couple of them, you can enable and use our custom tracking option.<\/p>\n\n\n\n<p>Using the Custom Tracking 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 Facebook macros on sub1:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"555\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking-1024x555.png\" alt=\"How to connect Tonic search feed provider to TheOptimizer for Facebook custom tracking \" class=\"wp-image-1186\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking-1024x555.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking-300x163.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking-768x416.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking-50x27.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking-1536x832.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking-60x33.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking-100x54.png 100w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-Tonic-x-Facebook-with-The-Optimizer-Custom-Tracking.png 1995w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>In this case the tracking code that you need to add in your campaigns needs to be exactly in the same format:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">subid1={{campaign.id}}|{{adset.id}}|{{ad.id}}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Next step: Start automating <\/h2>\n\n\n\n<p>Click <a href=\"https:\/\/theoptimizer.io\/help\/article-categories\/how-to-set-up-automation-rules-for-facebook-with-examples\/\"><span style=\"text-decoration: underline;\">here<\/span><\/a> to start exploring Facebook automation. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a step-by-step guide on how to connect TheOptimizer directly to Tonic for your Facebook campaigns. <\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[38],"ht-kb-tag":[],"class_list":["post-1180","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-3-how-to-connect-facebook-to-an-external-revenue-stream"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1180","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=1180"}],"version-history":[{"count":7,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1180\/revisions"}],"predecessor-version":[{"id":2147,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1180\/revisions\/2147"}],"wp:attachment":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/media?parent=1180"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-category?post=1180"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=1180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}