The Facebook tracking pixel allows you to pass custom information back into Facebook for use in creating audiences in your Facebook Ads Manager. You may take advantage of this feature to send in the Persosa Experience information a visitor sees to create audiences around that later.

To pass the experience data into Facebook, simply call the following after loading the Facebook Pixel on your page:

persosa(function() {
  fbq('trackCustom', '<YOUR CUSTOM EVENT>', {
    persosa_experience_name: PersosaConfig.experience.view.name,
    persosa_experience_id: PersosaConfig.experience.view.id
  });
});

This will pass the information on the Persosa experience the user actually saw, which may be different (due to an experiment, for example). If you wish to pass the experience they qualified for instead, use this:

persosa(function() {
  fbq('trackCustom', '<YOUR CUSTOM EVENT>', {
    persosa_experience_name: PersosaConfig.experience.qualified.name,
    persosa_experience_id: PersosaConfig.experience.qualified.id
  });
});


To read more about tracking events and custom data in Facebook, see this article: https://developers.facebook.com/docs/facebook-pixel/

Did this answer your question?