APIs & Integrations

Eric_Thornsbrou
Member

Using advanced Matching Parameter for Facebook Piexel

Hello, I am trying to use advanced matching for my facebook pixel. when I add the following code to my template manager I get error codes when I check my pixel helper to see if it is firing correctly.
Can anyone tell me if the parameters for first name, last name, phone, and email look correct? I am confused as to if I use two brackets or four around these. I get a facebook pixel is not loading error either way.

Thanks,

Eric

0 Upvotes
3 Replies 3
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Using advanced Matching Parameter for Facebook Piexel

Hi @Eric_Thornsbrough,

Are those HubL tokens? Or are they rendered by the Facebook pixel? I'm not particularly familiar with the Facebook pixel, but HubL tokens must be wrapped with double curly braces like this: {{ contact.email }}

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Using advanced Matching Parameter for Facebook Piexel

Hi @Eric_Thornsbrough,

The handlebars notation of the parameters are probably being picked up by the HubL parser, causing the error. You should be able to add {% raw %} ((stuff)) {% endraw %} around these to escape them.

0 Upvotes
Eric_Thornsbrou
Member

Using advanced Matching Parameter for Facebook Piexel

Derek,

Thanks for the response.

The parameters I used for First Name, Phone and last name worked but FB isn't recognizing the one for the contacts email.

Do you know if this looks correct?

em: '{contact.email}',
fn: '{contact.firstname}',
ln: '{contact.lastname}',
ph: '{contact.phone}',
0 Upvotes