Reply
Highlighted
Visitor
Posts: 2
Registered: ‎05-14-2018

facebook pixel event code

Hi Team,

Could you please help in understanding steps for facebook pixel event code implementation.

Our requirement is to add pixel code on a specific button.

https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/Facebook-Custom-Conversion-Events/td-p/...

@kathleen_jo I went through this blog, however i could not find any solution for adding for standard events, could you please help me with this.

below code is provided for reference.

Facebook Pixel Event Code:
<script> fbq('track', ‘CompleteRegistration’,

{ content_name: ‘EWY_Register’ }

);</script>

Thanks,

Surabhi

Reply
0 Kudos
Tealium Employee
Posts: 16
Registered: ‎09-07-2017

Re: facebook pixel event code

Hi @surabhi_sharma

 

Bind a click event to the button so that it fires a link track event.

On that link tracking event you can send an identifier like so:

"event_name" : "registration_completed"

With that in place you simple go into the Facebook tag and add the Facebook event "CompleteRegistration" to fire when "event_name" = "registration_completed".

 

Step 1:

2018-12-05_15-24-54.png

Step 2:

2018-12-05_15-33-36.png

If you notice, in my example the "EWY_Register" value is a static mapping, but if you need to add it dynamic just take the same approach.

Step 1: additionally add a new Mapped Variable from the bind event (link event)

Step2: on the TAG, instead of using a static value (like the provided example), map it from the variable sent in step 1

 

Hope this helps

Reply
0 Kudos