Reputation: 5764
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
Reputation: 14590
I think you can use $window
: $window.fbq('track', 'CustomerRegistration');
Upvotes: 4