Skip to content
This repository was archived by the owner on Sep 1, 2021. It is now read-only.

01. ViewContent

David Hahn edited this page Aug 11, 2017 · 2 revisions

The only thing required to get this up and running is to define this variable:

{% set fbPixelItem = {
    content_name: product.title,
    content_category: [product.type],
    content_ids: [product.sku],
    content_type: 'product',
    value: productEntry.defaultVariant.salePrice,
    currency: 'USD'
} %}

I know it's a terrible name... we'll fix that sometime. Ideally, you wouldn't have to define this unless you wanted to override it. For now though, you need to stick this at the top of the pages you want to render a ViewContent event to fbpixel.

Clone this wiki locally