{"id":1204,"date":"2023-11-14T16:15:46","date_gmt":"2023-11-14T16:15:46","guid":{"rendered":"https:\/\/theoptimizer.io\/help\/?post_type=ht_kb&#038;p=1204"},"modified":"2024-06-11T10:42:22","modified_gmt":"2024-06-11T10:42:22","slug":"how-to-connect-facebook-to-domainactive","status":"publish","type":"ht_kb","link":"https:\/\/theoptimizer.io\/help\/knowledge-base\/how-to-connect-facebook-to-domainactive\/","title":{"rendered":"How to connect Facebook to Domain Active"},"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 Domain Active to Facebook?\" width=\"643\" height=\"362\" src=\"https:\/\/www.youtube.com\/embed\/MoS_3TRyqHQ?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>If you are not using a third party tracker and wish to connect your Facebook ad accounts directly to Domain Active, here is what you need to do.<\/p>\n\n\n\n<p>\ud83d\udca1<strong>NOTE<\/strong>: If you have already connected a third-party tracker for your Facebook accounts on TheOptimizer, you do <strong>not<\/strong> need to connect Domain Active too. TheOptimizer will get the data from your tracker, so adding your search feed provider is not necessary. <\/p>\n\n\n\n<p><strong>Step 1:<\/strong> On Account Wizard, select the Facebook ad accounts you want to connect to Domain Active, 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 Domain Active 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 Domain Active. Here, you will need to add a nickname for your account, and place the API Key &#8211; which you can find on your Domain Active account or by contacting your account manager. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"828\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-P1.png\" alt=\"How to connect DomainActive to TheOptimizer for Facebook P1\" class=\"wp-image-1208\" style=\"width:500px\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-P1.png 976w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-P1-300x255.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-P1-768x652.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-P1-50x42.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-P1-60x51.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-P1-100x85.png 100w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Step 4:<\/strong> After you have placed the <strong>API Key<\/strong> from Domain Active and <strong>Saved<\/strong> the information, you will need to specify which Domain Active subids you are using to pass traffic source macros back to Domain Active. Domain Active provides various parameters where you can post token values. You may complete tracking token mapping using \u201cCampaign Number, Ad ID\u201c, or you may want to use the other 10 available parameters from Tg1 to Tg10.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"466\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-1024x466.png\" alt=\"\" class=\"wp-image-1554\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-1024x466.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-300x137.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-768x350.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-50x23.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-1536x700.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-2048x933.png 2048w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-60x27.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2024\/01\/FB-x-Domain-Active-correct-version-100x46.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\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:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tg1={{campaign.id}}&amp;tg2={{adset.id}}&amp;tg3={{ad.id}}<\/pre>\n\n\n\n<p>\ud83d\udca1<strong>NOTE<\/strong>: Make sure all provided tracking tokens are properly mapped. In case one of the required traffic source tracking tokens is missing in your Domain Active mapping configuration, campaign statistics may be inaccurate.<\/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 Domain Active 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 Domain Active subid, using a special format. For example, you can pass all Facebook macros on Tg1:&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"541\" src=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-1024x541.png\" alt=\"How to connect DomainActive to TheOptimizer for Facebook Custom Tracking\" class=\"wp-image-1210\" srcset=\"https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-1024x541.png 1024w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-300x159.png 300w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-768x406.png 768w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-50x26.png 50w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-1536x812.png 1536w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-2048x1083.png 2048w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-60x32.png 60w, https:\/\/theoptimizer.io\/help\/wp-content\/uploads\/2023\/11\/How-to-connect-DomainActive-with-The-Optimizer-Facebook-Custom-Tracking-100x53.png 100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\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\">tg1={{campaign.id}}|{{adset.id}}|{{ad.id}}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Next step: Explore Facebook Automation Rules<\/h2>\n\n\n\n<p>Find out all the possibilities of Facebook automation with examples <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>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follow this step-by-step guide to connect DomainActive to TheOptimizer and start automating 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-1204","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\/1204","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=1204"}],"version-history":[{"count":5,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1204\/revisions"}],"predecessor-version":[{"id":2141,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb\/1204\/revisions\/2141"}],"wp:attachment":[{"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/media?parent=1204"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-category?post=1204"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/theoptimizer.io\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=1204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}