{"id":185,"date":"2023-04-26T14:47:37","date_gmt":"2023-04-26T14:47:37","guid":{"rendered":"https:\/\/theoptimizer.io\/help\/?post_type=ht_kb&#038;p=185"},"modified":"2024-10-10T00:43:42","modified_gmt":"2024-10-10T00:43:42","slug":"tonic-integration-guide","status":"publish","type":"ht_kb","link":"https:\/\/theoptimizer.io\/help\/knowledge-base\/tonic-integration-guide\/","title":{"rendered":"Tonic Integration Guide"},"content":{"rendered":"\r\n<p><sub><img loading=\"lazy\" decoding=\"async\" width=\"25\" height=\"25\" class=\"wp-image-300\" style=\"width: 25px;\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/profile_pic_optimizer-1635862924.png\" alt=\"\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/profile_pic_optimizer-1635862924.png 128w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/profile_pic_optimizer-1635862924-50x50.png 50w\" sizes=\"auto, (max-width: 25px) 100vw, 25px\" \/><\/sub> Written by\u00a0Support.\u00a0Updated over a week ago<\/p>\r\n\r\n\r\n\r\n<p>After you have finished connecting one or more of the supported traffic source accounts in the first step of the Account Wizard process, you can continue connecting your Tonic Publisher account in order to have both traffic source and Tonic revenue data aggregated in one place.<\/p>\r\n\r\n\r\n\r\n<p>Follow the steps below to connect your Tonic Publisher account to TheOptimizer Native.<\/p>\r\n\r\n\r\n\r\n<p><br \/><strong>Step 1:<\/strong> When on the Account Wizard page, select a traffic source account and then click <strong>Next<\/strong>.<br \/><strong>Step 2:<\/strong> In the second step of the Account Wizard, click on Add New to start connecting your Tonic account.<br \/><strong>Step 3:<\/strong> On the pop-up integration screen, click on the Select Tracking Platform drop-down list and select Tonic.<br \/><strong>Step 4:<\/strong> Fill in the required information as noted in the screenshot below then click <strong>Save<\/strong> and <strong>Next<\/strong> to move to the next step.<\/p>\r\n\r\n\r\n\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-421 aligncenter\" style=\"width: 427px;\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/74.png\" alt=\"\" width=\"481\" height=\"475\" \/><\/p>\r\n\r\n\r\n\r\n<p>Required input information details:<br \/><br \/>&#8211; <strong>Nickname:<\/strong> Add a friendly, easy to recognize name for your Tonic Publisher account.<br \/>&#8211; <strong>API Key: <\/strong>API Key value as provided in your Tonic Publisher account (detailed below).<br \/>&#8211; <strong>API Secret: <\/strong>API Key value as provided in your Tonic Publisher account (detailed below).<\/p>\r\n\r\n\r\n\r\n<p><strong>Step 5:<\/strong> specify which Tonic subids you are using to pass traffic source macros back to Tonic.<br \/>One possible configuration is shown in the screenshot below:<\/p>\r\n\r\n\r\n\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-423\" style=\"width: 750px;\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.29.28-PM.png\" alt=\"\" width=\"1024\" height=\"568\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.29.28-PM.png 2158w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.29.28-PM-300x167.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.29.28-PM-1024x568.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.29.28-PM-768x426.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.29.28-PM-50x28.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.29.28-PM-1536x853.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.29.28-PM-2048x1137.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\r\n\r\n\r\n\r\n<p><strong>Step 6<\/strong>: Campaign tracking code:<br \/>According to the configuration in the previous step, TheOptimizer assumes that you are also using the same setup on the traffic source campaigns&#8217; tracking code (in this case Taboola but it applies to all traffic sources).<br \/><br \/>The tracking code you need to make sure it is present in your campaigns in this case is:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">subid1={campaign_id}&amp;subid2={site}&amp;subid3={campaign_item_id}<\/pre>\r\n\r\n\r\n\r\n<p><br \/><strong><em>IMPORTANT!<\/em> &#8211; <\/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 {site} macro, there will not be Tonic data for Taboola sites in TheOptimizer<\/p>\r\n\r\n\r\n\r\n<h1 id=\"h_ada230b89a\" class=\"wp-block-heading\"><strong>Custom Tracking &#8211; When to use it?<\/strong><\/h1>\r\n\r\n\r\n\r\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.<br \/><br \/>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.<br \/>For example, in the case of Taboola, you can pass all Taboola macros on sub1, as shown in the screenshot below:<\/p>\r\n\r\n\r\n\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2306\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.48.35-PM-1536x845-1-1-1024x563.webp\" alt=\"\" width=\"1024\" height=\"563\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.48.35-PM-1536x845-1-1-1024x563.webp 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.48.35-PM-1536x845-1-1-300x165.webp 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.48.35-PM-1536x845-1-1-768x423.webp 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.48.35-PM-1536x845-1-1-50x28.webp 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.48.35-PM-1536x845-1-1-60x33.webp 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.48.35-PM-1536x845-1-1-100x55.webp 100w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-2.48.35-PM-1536x845-1-1.webp 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\r\n\r\n\r\n\r\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>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">subid1={campaign_id}|{site}|{campaign_item_id}<\/pre>\r\n\r\n\r\n\r\n<p>Here are some examples of top-used traffic source custom tracking concatenated templates:<\/p>\r\n\r\n\r\n\r\n<p><br \/>Concatenated <strong>Taboola <\/strong>Tracking String: <strong>{campaign_id}|{site}|{campaign_item_id}<\/strong><br \/>Concatenated <strong>RevContent <\/strong>Tracking String: <strong>{boost_id}|{content_id}|{adv_targets}|{widget_id}<\/strong><br \/>Concatenated <strong>Outbrain* <\/strong>Tracking String:<strong> {{campaign_id}}|{{publisher_id}}|{{section_id}}|{{ad_id}}<\/strong><\/p>\r\n\r\n\r\n\r\n<h2 id=\"h_279ff4c5a8\" class=\"wp-block-heading\"><strong>Outbrain special case<\/strong><\/h2>\r\n\r\n\r\n\r\n<p>Because Outbrain macro values (ID values) have an average length of 35 characters. So Putting all required tokens on a single concatenated string like in the example above, may result in trimmed values on Tonic&#8217;s side. This is due to the Tonic limit of max 100 characters that can be passed on a single subid.<\/p>\r\n\r\n\r\n\r\n<p>So to overcome this limitation, for Outbrain we recommend using a combination of Custom Tracking and normal tracking.<br \/>For example, one possible configuration can be as in the screenshot below, where campaign id and publisher id are being concatenated and passed under sub3 while section id is being passed on sub2 and ad id on sub1:<\/p>\r\n\r\n\r\n\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2305\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-3.01.54-PM-1536x914-1-1024x609.webp\" alt=\"\" width=\"1024\" height=\"609\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-3.01.54-PM-1536x914-1-1024x609.webp 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-3.01.54-PM-1536x914-1-300x179.webp 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-3.01.54-PM-1536x914-1-768x457.webp 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-3.01.54-PM-1536x914-1-50x30.webp 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-3.01.54-PM-1536x914-1-60x36.webp 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-3.01.54-PM-1536x914-1-100x60.webp 100w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/Screenshot-2022-07-09-at-3.01.54-PM-1536x914-1.webp 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\r\n\r\n\r\n\r\n<p>In this case the tracking code that needs to be added to Outbrain campaigns is:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">subid1={{ad_id}}&amp;subid2={{section_id}}&amp;subid3={{campaign_id}}|{{publisher_id}}<\/pre>\r\n\r\n\r\n\r\n<h2 id=\"h_87dd10b5ad\" class=\"wp-block-heading\"><strong>Where do I find Tonic API Information?<\/strong><\/h2>\r\n\r\n\r\n\r\n<p>Please follow the steps below to find Tonic API information.<\/p>\r\n\r\n\r\n\r\n<p><strong>Login <\/strong>to your Tonic Publisher account then go to <strong>Account &gt; Settings<\/strong><\/p>\r\n\r\n\r\n\r\n<p><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"304\" class=\"wp-image-426\" style=\"width: 750px;\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/75.png\" alt=\"\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/75.png 1151w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/75-300x122.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/75-1024x415.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/75-768x312.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/04\/75-50x20.png 50w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/p>\r\n\r\n\r\n\r\n<p>Copy the values visible on the API Access section of your account settings, then paste it on the API Username to API Key and API Password to API Secret field in TheOptimizer integration screen.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Written by\u00a0Support.\u00a0Updated over a week ago After you have finished connecting one or more of the supported traffic source accounts in the first step of the Account Wizard process, you can continue connecting your Tonic Publisher account in order to have both traffic source and Tonic revenue data aggregated in&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[13],"ht-kb-tag":[],"class_list":["post-185","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-tracking-platform-setup"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/185","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=185"}],"version-history":[{"count":5,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/185\/revisions"}],"predecessor-version":[{"id":2307,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/185\/revisions\/2307"}],"wp:attachment":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-category?post=185"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}