Jackson Cunningham
Jackson Cunningham

Reputation: 5073

Tracking Conversions with Facebook Conversion Pixel

Facebook recommends including their tracking pixel in the head section:

<head>
<!-- Facebook Pixel Code -->
  <script>
     ... code ...
     fbq('init', 'XXXXX');
     fbq('track', "PageView");
     ... more code
 </script>
  <!-- End Facebook Pixel Code -->
</head>

But I also want to track conversions. Do I add fbq('track', 'CompleteRegistration'); in the original pixel code in the head? Or do I fire it only on the pages where the user is converted? (e.g. "Thank You" page)

If I just include it in the head, how does FB know what a "Complete Registration" is?

Upvotes: 0

Views: 4779

Answers (1)

Sahil Sharma
Sahil Sharma

Reputation: 4217

Once the user successfully completes the registration, you need to fire this

fbq('track', 'CompleteRegistration');

Upvotes: 1

Related Questions