{"id":75,"date":"2020-11-19T20:50:03","date_gmt":"2020-11-19T20:50:03","guid":{"rendered":"https:\/\/theatlass.com\/help\/?post_type=docs&#038;p=75"},"modified":"2022-02-26T17:10:47","modified_gmt":"2022-02-26T17:10:47","slug":"custom-store-guide","status":"publish","type":"docs","link":"https:\/\/theatlass.com\/resources\/docs\/custom-store-guide\/","title":{"rendered":"Custom store guide"},"content":{"rendered":"\n<h2>Install tracking on ads<\/h2>\n\n\n<div class=\"wp-block-lazyblock-post lazyblock-post-XP47l\">      <div class=\"wp-block-lazyblock-post lazyblock-post-Z11mO4\">      <h3 class=\"accordion-button\" data-ac-target=\"set-up-facebook-ads\" > Set up Facebook ads <\/h3>\n    <div id=\"set-up-facebook-ads\" class=\"col-12 accordion-content accordion-content-closed\" > \n<p>Go to your Facebook Ads Manager, and go to Ads tab.<\/p>\n\n\n\n<p>Select all ads using the checkbox in the header and click on Edit ads. This will edit all ads, in bulk<\/p>\n\n\n\n<p>Copy this code <code>fbadid={{ad.id}}&amp;fbadname={{ad.name}}<\/code> and paste it in the URL parameters field<\/p>\n\n\n\n<p>If you have other parameters, such as <code>utm_campaign={{fb.campaign_name}}&amp;source=facebook <\/code>, merge them by adding <code>&amp;fbadid={{ad.id}}&amp;fbadname={{ad.name}}<\/code><\/p>\n\n\n\n<p>Don&#8217;t forget to save the new change<\/p>\n\n\n<div class=\"wp-block-lazyblock-bootstrap-alert lazyblock-bootstrap-alert-1mFe5A\"><div class=\"alert alert-danger \" role=\"alert\">\n    IMPORTANT! Keep in mind that this will send the ad into review, but it won&#8217;t have any effect on your ad \n<\/div><\/div>\n\n\n<p>Next, make sure to integrate Facebook if you haven&#8217;t done that already!<\/p>\n\n\n<div class=\"wp-block-lazyblock-next-doc lazyblock-next-doc-Z2oXScK\">  <a href=\"https:\/\/theatlass.com\/resources\/docs\/integrate-facebook\/\"  class=\"alert d-block card-link p-2\" role=\"alert\">\n    <div class=\"card-link-body\" >\n      NEXT: Facebook Integration    <\/div>\n    <div class=\"card-link-icon\">\n      <i class=\"fa fa-arrow-right\" ><\/i>\n    <\/div>\n<\/a>\n<\/div> <\/div>\n  <\/div>\n\n<div class=\"wp-block-lazyblock-post lazyblock-post-uUGBS\">      <h3 class=\"accordion-button\" data-ac-target=\"set-up-google-ads\" > Set up Google ads <\/h3>\n    <div id=\"set-up-google-ads\" class=\"col-12 accordion-content accordion-content-closed\" > \n<p>Go to your Google Ads Manager, and go to Ads section.<\/p>\n\n\n\n<p>Click on the Tools icon and click on Scripts ( under Bulk Actions ) and click on the plus icon to create a new script.<\/p>\n\n\n\n<p>Copy the code below and paste in the new script<\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-ZJvKon\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"Google-ads-script\" >\n  function main() {\n            var adIterator = AdsApp.ads().get();\n                while (adIterator.hasNext()) {\n                var ad = adIterator.next();\n                var adgroup = ad.getAdGroup().getName().replace(\/[^a-zA-Z0-9- ]\/g, \"\");\n                var campaign = ad.getCampaign().getName().replace(\/[^a-zA-Z0-9- ]\/g, \"\");\n                \/\/var adHeadline = ad.getLongHeadline().replace(\/[^a-zA-Z0-9- ]\/g, \"\");\n                var adID = ad.getId();\n                var name = campaign + \" \" + adgroup+ \" \" + adID;\n                name = name.replace(\/\\s\/g,'-');\n                \/\/Logger.log( name );\n                ad.getCampaign().urls().setCustomParameters({adname:name});\n            }\n  }<\/pre>\n<a data-copy=\"Google-ads-script\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<p>Don&#8217;t forget to name the script, for example &#8220;Atlass ad name generator&#8221; and click on save. Before navigating, make sure to click run.<\/p>\n\n\n\n<p>Next, go to All campaigns, click on Settings button, then Account settings and open the tracking section.<\/p>\n\n\n\n<p>Copy this code <code>{lpurl}?gadid={creative}&amp;gadname={_adname}<\/code> and paste it in the Tracking Template field<\/p>\n\n\n\n<p>Don&#8217;t forget to save the new change<\/p>\n\n\n\n<p>Now, make sure to set up the Google Ads integration if you haven&#8217;t done that already.<\/p>\n\n\n<div class=\"wp-block-lazyblock-next-doc lazyblock-next-doc-nuNch\">  <a href=\"https:\/\/theatlass.com\/resources\/docs\/google-ads-integration\/\"  class=\"alert d-block card-link p-2\" role=\"alert\">\n    <div class=\"card-link-body\" >\n      NEXT: Google Ads Integration    <\/div>\n    <div class=\"card-link-icon\">\n      <i class=\"fa fa-arrow-right\" ><\/i>\n    <\/div>\n<\/a>\n<\/div> <\/div>\n  <\/div>\n\n<div class=\"wp-block-lazyblock-post lazyblock-post-Z1lX4Aw\">      <h3 class=\"accordion-button\" data-ac-target=\"set-up-tiktok-ads\" > Set up TikTok ads <\/h3>\n    <div id=\"set-up-tiktok-ads\" class=\"col-12 accordion-content accordion-content-closed\" > \n<p>Go to your TikTok Ads Manager, and go to Ads tab.<\/p>\n\n\n\n<p>Select all ads using the checkbox in the header and click on Edit ads. This will edit all ads, in bulk<\/p>\n\n\n\n<p>Add the following parameters to the URL of every add: <code>ttadid=__CID__&amp;ttadname=__CID_NAME__<\/code>&nbsp;<\/p>\n\n\n\n<p>Don\u2019t forget to save the new change<\/p>\n\n\n\n<p>Now, make sure to set up the TikTok integration, if you haven&#8217;t done that already<\/p>\n\n\n<div class=\"wp-block-lazyblock-next-doc lazyblock-next-doc-cDC8H\">  <a href=\"https:\/\/theatlass.com\/resources\/docs\/tiktok-integration\/\"  class=\"alert d-block card-link p-2\" role=\"alert\">\n    <div class=\"card-link-body\" >\n      NEXT: TikTok Integration    <\/div>\n    <div class=\"card-link-icon\">\n      <i class=\"fa fa-arrow-right\" ><\/i>\n    <\/div>\n<\/a>\n<\/div> <\/div>\n  <\/div>\n\n<div class=\"wp-block-lazyblock-post lazyblock-post-2gFs4L\">      <h3 class=\"accordion-button\" data-ac-target=\"set-up-email-tracking\" > Set up Email Tracking <\/h3>\n    <div id=\"set-up-email-tracking\" class=\"col-12 accordion-content accordion-content-closed\" > \n<p>Go to your Email Service provider and edit the email templates in use.<\/p>\n\n\n\n<p>Edit the CTA link within the body of the email<\/p>\n\n\n\n<p>Add the tracking parameters to the existing link <code>?atl_campaign=%email.subject%<\/code><\/p>\n\n\n\n<p>First make sure you change the <code>%email.subject% <\/code>, depending on your ESP. <\/p>\n\n\n<div class=\"wp-block-lazyblock-bootstrap-alert lazyblock-bootstrap-alert-Z29L9xu\"><div class=\"alert alert-warning \" role=\"alert\">\n    If the ESP does not provide the option to dynamically insert it, please make sure to change the &#8220;name-of-email-campaign&#8221; with the actual name of the campaign.\n<\/div><\/div>\n\n\n<p>For <strong>MailChimp<\/strong>, use he code below: <\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-Z168uWx\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"MailChimp-tracking-params\" >\n   ?mc_cid=*|CAMPAIGN_UID|*<\/pre>\n<a data-copy=\"MailChimp-tracking-params\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<p>( More details <a rel=\"noreferrer noopener\" href=\"https:\/\/mailchimp.com\/help\/all-the-merge-tags-cheat-sheet\/\" target=\"_blank\">here<\/a> )<\/p>\n\n\n\n<p>For <strong>ActiveCampaign<\/strong>, use he code below: <\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-ZFRPqX\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"ActiveCampaign-tracking-params\" >\n  ?ac_cid=%CAMPAIGNID%<\/pre>\n<a data-copy=\"ActiveCampaign-tracking-params\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<p>( More details <a rel=\"noreferrer noopener\" href=\"https:\/\/help.activecampaign.com\/hc\/en-us\/articles\/220709307-Personalization-Tags\" target=\"_blank\">here<\/a> )<\/p>\n\n\n\n<p>For <strong>Drip<\/strong>, use he code below:<\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-29pGhW\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"Drip-tracking-params\" >\n  ?atl_campaign={{campaign.name}}<\/pre>\n<a data-copy=\"Drip-tracking-params\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<p>For <strong>ConvertKit<\/strong>, use the code below: <\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-SUvF4\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"ConvertKit-tracking-params\" >\n  ?atl_campaign=name-of-email-campaign<\/pre>\n<a data-copy=\"ConvertKit-tracking-params\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<p>For <strong>Klaviyo<\/strong>, use the code below:<\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-GfqLX\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"Klaviyo-tracking-params\" >\n  ?atl_campaign=name-of-email-campaign<\/pre>\n<a data-copy=\"Klaviyo-tracking-params\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<p>For <strong>Aweber<\/strong>, use the code below:<\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-cuz8N\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"Aweber-tracking-params\" >\n  ?atl_campaign=name-of-email-campaign<\/pre>\n<a data-copy=\"Aweber-tracking-params\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<p>For <strong>SendGrid<\/strong>, use the code below:<\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-Og4EV\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"SendGrid-tracking-params\" >\n  ?atl_campaign=name-of-email-campaign<\/pre>\n<a data-copy=\"SendGrid-tracking-params\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<p>Don&#8217;t forget to save the new change<\/p>\n <\/div>\n  <\/div>  <\/div>\n\n\n<h2>Install tracking script<\/h2>\n\n\n<div class=\"wp-block-lazyblock-post lazyblock-post-1paPi2\">      <h3 class=\"accordion-button\" data-ac-target=\"install-the-script-on-custom-store\" > Install the script on custom store <\/h3>\n    <div id=\"install-the-script-on-custom-store\" class=\"col-12 accordion-content accordion-content-closed\" > \n<p>Create an if statement for logged in users vs logged out users.<\/p>\n\n\n\n<p>For logged out users, aka visitors, use the code below:<\/p>\n\n\n\n<p>Copy the script below and paste it as high as you can within the HEAD tag ( <code>&lt;head&gt;&lt;\/head&gt;<\/code> ).<\/p>\n\n\n<div class=\"wp-block-lazyblock-tracking-script lazyblock-tracking-script-Z1fv89s\"><div class=\"alert alert-dark\" role=\"alert\"> Please log in from <a href=\"https:\/\/theatlass.com\/app\/\" target=\"_blank\" >here<\/a> in order to get the code <\/div><\/div>\n\n\n<p>For logged in users, use the code below:<\/p>\n\n\n\n<p>Copy the script below and paste it as high as you can within the HEAD tag ( <code>&lt;head&gt;&lt;\/head&gt;<\/code> ).<\/p>\n\n\n<div class=\"wp-block-lazyblock-tracking-script lazyblock-tracking-script-Z2mQJn1\"><div class=\"alert alert-dark\" role=\"alert\"> Please log in from <a href=\"https:\/\/theatlass.com\/app\/\" target=\"_blank\" >here<\/a> in order to get the code <\/div><\/div>\n\n\n<p>Don&#8217;t forget to save the file.<\/p>\n\n\n\n<p>For example, the full code for a store built with PHP would look like:<\/p>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-Z688vo\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"custom-php-store\" >\n  &lt;?php if ( user_loggedin() ) { ?&gt;\n          \t &lt;script&gt;\n                  window.atlassSettings = {\n                      APPKEY: \"_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_\",\n                      tags: 'primary',\n                      email: '<?php print $loggedin_user_email; ?>'\n                  }\n                  var s = document.createElement(\"script\");\n                  s.type = \"text\/javascript\";\n                  s.src = \"https:\/\/theatlass.com\/t\/t.min.js\";\t\n                  document.head.appendChild(s);\n              &lt;\/script&gt;\n          &lt;?php } else { ?&gt;\n          \t &lt;script&gt;\n                  window.atlassSettings = {\n                      APPKEY: \"_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_\",\n                      tags: 'primary',\n                  }\n                  var s = document.createElement(\"script\");\n                  s.type = \"text\/javascript\";\n                  s.src = \"https:\/\/theatlass.com\/t\/t.min.js\";\n                  document.head.appendChild(s);\n              &lt;\/script&gt;\n          &lt;?php } ?&gt;<\/pre>\n<a data-copy=\"custom-php-store\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div> <\/div>\n  <\/div>\n\n\n<h2>Set up integrations<\/h2>\n\n\n<div class=\"wp-block-lazyblock-post lazyblock-post-ZN1rAk\">      <h3 class=\"accordion-button\" data-ac-target=\"integration-via-api\" > Integration via API <\/h3>\n    <div id=\"integration-via-api\" class=\"col-12 accordion-content accordion-content-closed\" > <div class=\"wp-block-lazyblock-bootstrap-alert lazyblock-bootstrap-alert-Z1EML8Y\"><div class=\"alert alert-info \" role=\"alert\">\n     NOTICE! This should be handled by the developer who set up your website. \n<\/div><\/div>\n\n\n<p>Locate your function that processed the order.<\/p>\n\n\n\n<p>Send a post request to <code>https:\/\/atlass-302217.ew.r.appspot.com\/order\/add <\/code>containing the JSON code below.<\/p>\n\n\n\n<p>Depending on the programming languange, we set up some examples:<\/p>\n\n\n\n<p>Don&#8217;t forget to change the fields with the actual customer data.<\/p>\n\n\n\n<h5>Raw JSON<\/h5>\n\n\n<div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-H42II\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"api-raw-json\" >\n  {\n  \"APPKEY\": \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\", \/\/ Organization APPKEY, *required\n  \"APP_SECRET\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", \/\/ Organization SECRET, *required\n  \"firstname\": \"John\", \/\/Client firstname\n  \"lastname\": \"Doe\", \/\/Client lastname\n  \"email\": \"John@doe.com\", \/\/Client email, *required\n  \"IP\": \"71.23.54.682\", \/\/Client IP\n  \"orderName\": \"Order number 215645675733\",\n  \"orderPrice\": 349,\n  \"orderID\": 1252653462, \/\/internal ID of the order\n  \"orderItems\": [\n    { \n        \"Name\": \"Produs test 1\" , \n        \"Price\": 299,\n        \"Quantity\":1 \n    }\n    ...\n  ]\n}<\/pre>\n<a data-copy=\"api-raw-json\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div>\n\n\n<h5>For PHP, use this code:<\/h5>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container\"><div class=\"wp-block-lazyblock-script-code-block lazyblock-script-code-block-ilosx\"><div class=\"code-block w-100\" >\n<pre class=\"wp-block-code\" id=\"api-php\" >\n  $data = array(\n    \"APPKEY\" => \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\", \/\/ Organization APPKEY, *required\n    \"APP_SECRET\" => \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", \/\/ Organization SECRET, *required\n    \"firstname\" => \"John\", \/\/Client firstname\n    \"lastname\" => \"Doe\", \/\/Client lastname\n    \"email\" => \"john.doe@gmail.com\", \/\/Client email, *required\n    \"IP\" =>  \"71.23.54.682\", \/\/Client IP\n    \"orderName\" => \"Order number 215645675733\", \/\/Order name, Purchase name or Product name \n    \"orderPrice\" => 349, \/\/Order price, Purchase price or Product price \n    \"orderID\" => 1252653462, \/\/ internal ID of the order\n    \"orderItems\" => array( \n        array( \n            \"Name\" => \"Item one\",\n            \"Price\" => 349,\n            \"Quantity\" => 1\n        ) \n    )\n);\n\n$payload = json_encode($data);\n\n\/\/ Prepare new cURL resource\n$ch = curl_init('https:\/\/atlass-302217.ew.r.appspot.com\/order\/add');\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLINFO_HEADER_OUT, true);\ncurl_setopt($ch, CURLOPT_POST, true);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $payload);\n\n\/\/ Set HTTP Header for POST request \ncurl_setopt($ch, CURLOPT_HTTPHEADER, array(\n'Content-Type: application\/json',\n'Content-Length: ' . strlen($payload))\n);\n\n\/\/ Submit the POST request\n$result = curl_exec($ch);\n\n\/\/ Close cURL session handle\ncurl_close($ch);\n\nvar_dump( $result );<\/pre>\n<a data-copy=\"api-php\" class=\"btn-copy-script\"> <i class=\"far fa-copy\"><\/i>  <\/a>\n<\/div>\n<\/div><\/div><\/div>\n\n\n\n<p><\/p>\n<\/div><\/div>\n\n\n<div class=\"wp-block-lazyblock-bootstrap-alert lazyblock-bootstrap-alert-Z2dXWVu\"><div class=\"alert alert-danger \" role=\"alert\">\n    Don&#8217;t forget to replace the APPKEY and APP_SECRET with the ones designated to your account, as well as the dummy date with the client&#8217;s actual data.\n<\/div><\/div>\n\n\n<p>Save the page and publish it.<\/p>\n <\/div>\n  <\/div>\n\n<div class=\"wp-block-lazyblock-post lazyblock-post-1iJNrl\">      <h3 class=\"accordion-button\" data-ac-target=\"integrate-facebook\" > Facebook Integration <\/h3>\n    <div id=\"integrate-facebook\" class=\"col-12 accordion-content accordion-content-closed\" > \n<p>The Facebook integration will allow us to calculate and analyze which ad makes the most profits and provides the best return on investment.<\/p>\n\n\n\n<p>Let&#8217;s plug it in.<\/p>\n\n\n\n<p>First, go to the <a href=\"https:\/\/theatlass.com\/app\/setup\/integrations\/\" target=\"_blank\" rel=\"noreferrer noopener\">Integrations<\/a> page and click on Facebook then log in with Facebook.<\/p>\n\n\n\n<p>After the Facebook login pop-up window will prompt to allow Atlass access to your account, click the Save Integration button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"578\" src=\"https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_1-1024x578.png\" alt=\"\" class=\"wp-image-102\" srcset=\"https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_1-1024x578.png 1024w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_1-300x169.png 300w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_1-768x433.png 768w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_1-1536x867.png 1536w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_1.png 1719w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After the integration is saved, go to the ad accounts tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"465\" src=\"https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_2-1-1024x465.png\" alt=\"\" class=\"wp-image-104\" srcset=\"https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_2-1-1024x465.png 1024w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_2-1-300x136.png 300w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_2-1-768x348.png 768w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_2-1-1536x697.png 1536w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_2-1.png 1719w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>From the Ad Accounts, click the imports button. This action will import all ad accounts owned or managed by you.<\/p>\n\n\n\n<p>After they have been imported, enable the ones you are using the run ads and want to attribute the sales. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"458\" src=\"https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_3-e1607193205936-1024x458.png\" alt=\"\" class=\"wp-image-105\" srcset=\"https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_3-e1607193205936-1024x458.png 1024w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_3-e1607193205936-300x134.png 300w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_3-e1607193205936-768x343.png 768w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_3-e1607193205936-1536x686.png 1536w, https:\/\/theatlass.com\/resources\/wp-content\/uploads\/2020\/12\/Facebook_3-e1607193205936.png 1703w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now, make sure to set up tracking parameters for all Facebook ads, if you haven&#8217;t done that already.<\/p>\n\n\n<div class=\"wp-block-lazyblock-next-doc lazyblock-next-doc-Z2oOizE\">  <a href=\"https:\/\/theatlass.com\/resources\/docs\/set-up-facebook-ads\/\"  class=\"alert d-block card-link p-2\" role=\"alert\">\n    <div class=\"card-link-body\" >\n      NEXT: Set up Facebook ads    <\/div>\n    <div class=\"card-link-icon\">\n      <i class=\"fa fa-arrow-right\" ><\/i>\n    <\/div>\n<\/a>\n<\/div>\n\n\n<p><\/p>\n <\/div>\n  <\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install tracking on ads Install tracking script Set up integrations<\/p>\n","protected":false},"featured_media":0,"menu_order":5,"template":"","meta":[],"_links":{"self":[{"href":"https:\/\/theatlass.com\/resources\/wp-json\/wp\/v2\/docs\/75"}],"collection":[{"href":"https:\/\/theatlass.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/theatlass.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"wp:attachment":[{"href":"https:\/\/theatlass.com\/resources\/wp-json\/wp\/v2\/media?parent=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}