[Slack Alert] Facebook Ads Pixel Check

Use this automation to make sure that Pixel Tracking is switched on for all of your active Facebook ads. You will get a Slack notification for any ad that does not have tracking activated.

Notion image

JSON Recipe

Import the automation recipe(s) into your own account. Don’t know how? Learn here.

FB Pixel Check
{"name":"FB Pixel Check","description":"facebook_ads_pixel_check_20220530","nodes":{"fb_select_ad_ids_v2_1":{"type":"fb_select_ad_ids_v2","logging_enabled":false,"x":344,"y":701,"group":"group_1","inputs":{"ad_ids":{"export_enabled":true,"data":[]}}},"calculate_set_operation_1":{"type":"calculate_set_operation","logging_enabled":false,"x":1014,"y":372,"group":"group_1","inputs":{"operator":{"export_enabled":true,"data":"-"}},"outputs":{"calculated":{"title":"done","description":"Triggered when calculated"},"data":{"title":"ad_ids","description":"The operated data"}}},"patch_json_list_v2_1":{"type":"patch_json_list_v2","logging_enabled":false,"x":656,"y":546,"group":"group_1","inputs":{"patches":{"export_enabled":true,"data":[{"op":"remove","path":"/context/ui"}]},"value":{"export_enabled":true}}},"delay_1":{"type":"delay","logging_enabled":false,"x":182,"y":419,"inputs":{"duration":{"export_enabled":true,"data":43200}}},"slack_select_conversation_id_1":{"type":"slack_select_conversation_id","logging_enabled":false,"x":317,"y":272,"group":"group_2","inputs":{"conversation_id":{"title":"conversation_id","description":"Select a Slack Channel or Conversation"}}},"slack_notifier_v2_1":{"type":"slack_notifier_v2","logging_enabled":false,"x":660,"y":447,"group":"group_2","inputs":{"blocks":{"export_enabled":true,"data":[{"type":"section","text":{"type":"mrkdwn","text":"⚠ At least one ad has missing Pixel Tracking."}}]},"thread_ts":{"export_enabled":true}}},"slack_notifier_v2_2":{"type":"slack_notifier_v2","logging_enabled":false,"x":1964,"y":349,"group":"group_2"},"if_v2_1":{"type":"if_v2","logging_enabled":false,"x":1074,"y":356,"inputs":{"b":{"export_enabled":true,"data":[]},"condition":{"export_enabled":true,"data":"not_equal"}}},"for_each_v2_1":{"type":"for_each_v2","logging_enabled":false,"x":1002,"y":353,"group":"group_2"},"patch_json_v2_1":{"type":"patch_json_v2","logging_enabled":false,"x":1623,"y":450,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/0/text/text","value":"Ad `{{input.value/name}}` in ad set `{{input.value/adset/name}}` in campaign `{{input.value/campaign/name}}`."},{"op":"replace","path":"/1/elements/0/url","value":"https://business.facebook.com/adsmanager/manage/ads?act={{input.value/account_id}}\u0026filter_set=SEARCH_BY_ADGROUP_IDS-STRING_SET%1EANY%1E[%22{{input.value/id}}%22]"}]},"data":{"export_enabled":true,"data":[{"type":"section","text":{"type":"mrkdwn","text":""}},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","text":"Open in Ads Manager"},"url":""}]}]}}},"fb_select_ad_account_ids_v2_1":{"type":"fb_select_ad_account_ids_v2","logging_enabled":false,"x":56,"y":335,"group":"group_1","inputs":{"ad_account_ids":{"title":"ad_account_ids","description":"Select one or more Facebook Accounts"}}},"stop_1":{"type":"stop","logging_enabled":false,"x":21,"y":568,"inputs":{"stop":{"export_enabled":true}}},"start_1":{"type":"start","logging_enabled":false,"x":23,"y":473},"fb_fetch_ad_ids_v2_1":{"type":"fb_fetch_ad_ids_v2","logging_enabled":false,"x":400,"y":246,"group":"group_1","inputs":{"effective_status":{"export_enabled":true,"data":["ACTIVE"]}}},"fb_check_ad_pixels_v2_1":{"type":"fb_check_ad_pixels_v2","logging_enabled":false,"x":753,"y":451,"outputs":{"checked":{"title":"checked","description":"Triggered when checked"}}},"fb_fetch_ad_v2_1":{"type":"fb_fetch_ad_v2","logging_enabled":false,"x":1300,"y":440,"group":"group_2"}},"edges":["fb_select_ad_ids_v2_1.ad_ids:patch_json_list_v2_1.data_list","patch_json_list_v2_1.data_list:calculate_set_operation_1.b","fb_fetch_ad_ids_v2_1.ad_ids:calculate_set_operation_1.a","fb_fetch_ad_ids_v2_1.fetched:patch_json_list_v2_1.patch","start_1.start:delay_1.start","delay_1.delayed:fb_fetch_ad_ids_v2_1.fetch","patch_json_list_v2_1.patched:calculate_set_operation_1.calculate","fb_select_ad_account_ids_v2_1.ad_account_ids:fb_select_ad_ids_v2_1.ad_account_ids","slack_notifier_v2_1.thread_ts:slack_notifier_v2_2.thread_ts","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_2.conversation_id","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_1.conversation_id","if_v2_1.false:delay_1.start","slack_notifier_v2_1.sent:for_each_v2_1.start","patch_json_v2_1.data:slack_notifier_v2_2.blocks","if_v2_1.true:slack_notifier_v2_1.send","patch_json_v2_1.patched:slack_notifier_v2_2.send","slack_notifier_v2_2.sent:for_each_v2_1.next","for_each_v2_1.done:delay_1.start","fb_select_ad_account_ids_v2_1.ad_account_ids:fb_fetch_ad_ids_v2_1.ad_account_ids","calculate_set_operation_1.data:fb_check_ad_pixels_v2_1.ad_ids","fb_check_ad_pixels_v2_1.checked:if_v2_1.evaluate","fb_check_ad_pixels_v2_1.invalid:if_v2_1.a","for_each_v2_1.item:fb_fetch_ad_v2_1.ad_id","fb_fetch_ad_v2_1.ad:patch_json_v2_1.value","fb_fetch_ad_v2_1.fetched:patch_json_v2_1.patch","for_each_v2_1.do:fb_fetch_ad_v2_1.fetch","calculate_set_operation_1.calculated:fb_check_ad_pixels_v2_1.check","fb_check_ad_pixels_v2_1.invalid:for_each_v2_1.items"],"groups":{"group_1":{"title":"Get Ad Ids","description":"","x":455,"y":466,"inputs":["fb_fetch_ad_ids_v2_1.fetch"],"outputs":["calculate_set_operation_1.calculated","calculate_set_operation_1.data"]},"group_2":{"title":"Send Slack Message","description":"","x":1404,"y":436,"inputs":["for_each_v2_1.items","slack_notifier_v2_1.send"],"outputs":["for_each_v2_1.done"]}},"widgets":{"widget_1":{"title":"Blacklisted Ads","description":"We won't be checking these ads.","position":1,"input":"fb_select_ad_ids_v2_1.ad_ids"},"widget_2":{"title":"Run every","description":"The duration to delay the trigger (in Seconds)","position":5,"icon":"las la-hourglass","input":"delay_1.duration"},"widget_3":{"title":"Slack Channel","description":"Select a Slack Channel or Conversation","position":3,"input":"slack_select_conversation_id_1.conversation_id"},"widget_4":{"title":"Facebook Ad Account","description":"Select Facebook Ad Account","position":0,"input":"fb_select_ad_account_ids_v2_1.ad_account_ids"},"widget_5":{"title":"Ad Status","description":"Filter only those ads with these effective statuses.","position":2,"icon":"las la-battery-half","input":"fb_fetch_ad_ids_v2_1.effective_status"}},"config":{"capture_inputs_enabled":false,"caching_enabled":false},"tags":[]}

How To

After creating the automations you are required to make a few selections and then hit “Run Automation”. The check will then take place on the specified weekday(s) at the specified time.

Per default all active ads in an account will be checked. If you want to be more specific in campaign, ad set or ad selection you can add filters to the automations following this Builder tutorial.

Pixel Check

Receive a Slack notification when Pixel tracking has not been activated for some of your active ads.

Notion image
Notion image

Choose an Ad Account, a Slack channel, weekdays and time of day.

As soon as the automation runs, it will be checked for all ads that “Website Events” are correctly tracked as can be seen in the Ads Manager screenshot below.

Notion image
Did this answer your question?
😞
😐
🤩

Last updated on October 11, 2022