function facebook_pixel_node_view in Facebook Pixel 7
Implements hook_node_view().
Tracks key page views (ex: product page, landing page, article).
File
- ./
facebook_pixel.module, line 51 - Drupal Module: Facebook Pixel.
Code
function facebook_pixel_node_view($node, $view_mode, $langcode) {
if ($view_mode == 'full' && node_is_page($node)) {
facebook_pixel_add_event('ViewContent:' . $node->nid);
}
}