You are here

function google_analytics_et_page_attachments in Google Analytics Event Tracking 8.2

Same name and namespace in other branches
  1. 8 google_analytics_et.module \google_analytics_et_page_attachments()

Implements hook_page_attachments().

File

./google_analytics_et.module, line 29
Contains google_analytics_et.module.

Code

function google_analytics_et_page_attachments(&$attachments) {

  // Add our effective JS attachments and settings (if any).
  \Drupal::service('google_analytics_event_tracking')
    ->addAttachments($attachments);
}