Search code examples
facebook

facebook pixel: PageView vs. ViewContent


Sorry if this has been asked many times but I really got confused on how to use facebook pixel.

I have a landing page (success page) where I want to track how many users have landed to that page.

I am confused between PageView and ViewContent.

In my case, what should I use so I can track the pixel?


Solution

  • The Facebook documentation here explains:

    https://developers.facebook.com/docs/facebook-pixel/api-reference#events

    In the documentation it says:

    The default pixel code fires the PageView event, which can be used to create Custom Audiences and custom conversions that match referral URLs. This event should not be removed as it may cause disruption to the aforementioned rules.

    According to FB, the ViewContent event is for:

    When a key page is viewed such as a product page, e.g. landing on a product detail page

    Here is an example of the usage of ViewContent

    https://developers.facebook.com/docs/facebook-pixel/api-reference#utilizing_params