Page View

An event that describes the action of viewing a page.

Here's an example of a Page View:

pcdp("event", "track", {
"clientId": "velocidi",
"siteId": "velocidi.com",
"type": "pageView",
"customFields": {
"debug": "true",
"role": "superuser"
},
"title": "Welcome to your Shop",
"pageType": "homepage",
"category": "Shopping"
})

In more detail, the fields supported on every Page View are:

FieldRequiredTypeDefaultExampleDescription
clientIdstring"velocidi"The client identifier.
siteIdstring"velocidi.com"The client's site identifier.
typerequired"pageView""pageView"The event type.
customFieldsobject of string{...}An object with custom fields for extra metadata to be supplied in the event. The values within this object must all be strings.
facebookConversionTrackingFacebook Conversion Tracking Details{...}A description of a tracking event to send to Facebook using Facebook Conversions API.
titlestring"Welcome to your Shop"The page title.
pageTypestring"homepage"The type of the page being viewed.
categorystring"Shopping"The category of the page being viewed.

Facebook Conversion Tracking Details#

A description of a tracking event to send to Facebook using Facebook Conversions API.

FieldRequiredTypeDefaultExampleDescription
pixel_idstring"396622227884531"The pixel ID to associate this Facebook tracking event with.
event_idstring"0c53d0b57"ID used to deduplicate events sent by both Facebook Pixel and Conversions API. More information about the usefulness of this ID is available at https://developers.facebook.com/docs/marketing-api/server-side-api/using-the-api/deduplicate-pixel-and-server-side-events.
event_namestring"AddToCart"A Facebook pixel Standard Event or Custom Event name. This field is used to deduplicate events sent by both Facebook Pixel and Conversions API. The available Standard Events are listed in https://developers.facebook.com/docs/facebook-pixel/reference#standard-events.
custom_dataobject{...}Parameters to send additional data Facebook can use for ads delivery optimization. More information about the fields that can be supplied here is available at https://developers.facebook.com/docs/marketing-api/conversions-api/parameters/custom-data.
Last updated on