2

I am wanting to link visitors who have visited my website and then have performed an offline task up within a facebook audience. I have set up facebook pixel to push a external_id when a user visits my site based on the users user_id

e.g

fbq('init', pixel.id, {
        external_id: "35d3652b57be5238df572b6074a7794d966e3be78b19b32f712d060c8da202d6",
})

(https://developers.facebook.com/docs/marketing-api/server-side-api/parameters/user-data/)

I have then set up a custom audience (Customer List) which is the audience I want to use.

I later call the facebook api to add users to this custom audience based on their external_id

{audience_id}/users with schema EXTERN_ID and an array of external id's to add. (https://developers.facebook.com/docs/marketing-api/audiences/guides/custom-audiences/)

Every thing seems to work and I can see in my facebook audience history that 9000 rows were added but the size still says "Fewer than 1,000"

Is there something I am missing here when using external_id?

Thank you

Mewis
  • 43
  • 1
  • 6

2 Answers2

5

I was struggling with this one too. Try sending 'extern_id' in the pixel instead of external_id

fbq('init', '<YOUR_PIXEL_ID>', {
  'extern_id': <UNIQUE_ID_FOR_THE_CUSTOMER>
});

as per the documentation here

https://developers.facebook.com/docs/marketing-api/audiences/guides/custom-audiences/#external_identifiers

  • Great I shall try that. Unfortunately my site is getting no traffic at the moment so will take a while before I get 1000 new visitors. – Mewis Apr 14 '20 at 12:03
  • @Mewis Did it work ? – Paul DS Apr 14 '22 at 13:32
  • 1
    This seems wrong according to this docs: https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/customer-information-parameters – Stephane Sep 22 '22 at 12:09
0

external_id - is representing unique user identifier, it should be sent on every event you fire the pixel - same value per user. The purpose of the external_id is to tell Facebook / Meta that all events you sent are coming from same user, but FB does not know which user is that based on that id. FB match the users (for audiences) based on fbclid or advanced matching, here you can find what is the logic behind it:

https://floyk.com/en/post/how-does-fb-google-tiktok-click-ids-works-and-why-is-important

https://floyk.com/en/post/setup-facebook-advanced-matching-for-websites

Igor Simic
  • 510
  • 4
  • 4