You are here

function facebook_pixel_data_ViewContent in Facebook Pixel 7

Provides additional details for the Facebook Pixel ViewContent tag.

Parameters

int $nid: ID of the viewed Node.

Return value

string JSON string containing additional ViewContent tag details.

See also

facebook_pixel_node_view()

facebook_pixel_ctools_render_alter()

File

./facebook_pixel.module, line 219
Drupal Module: Facebook Pixel.

Code

function facebook_pixel_data_ViewContent($nid) {
  $data = array(
    'content_type' => 'product',
    'content_ids' => $nid,
  );
  return $data;
}