Burak
Burak

Reputation: 5764

How to call Facebook Pixel Event from AngularJS controller?

I want to track conversion of a Facebook Ad. Therefore I need to call

fbq('track', 'CustomerRegistration');

in the signup result page but I don't have one. User is redirected to the dashboard after successful signup. So I need to call fbq from the controller.

How can I do that? Is it a good way?

Upvotes: 3

Views: 1321

Answers (1)

michelem
michelem

Reputation: 14590

I think you can use $window: $window.fbq('track', 'CustomerRegistration');

Upvotes: 4

Related Questions