You are here

function _ga_push_method_analytics_js_add_script in GA Push 7

Adds generated script with push data.

Used by ga_push_method_analytics_js_push.

Parameters

string $script: Generated script code to add.

See also

ga_push_method_analytics_js_push()

1 call to _ga_push_method_analytics_js_add_script()
ga_push_method_analytics_js_push in inc/ga_push.analytics_js.inc
Send the ga push to JS on page load using Universal Analytics Event Tracking.

File

inc/ga_push.analytics_js.inc, line 174
Universal Analytics js: method and functions.

Code

function _ga_push_method_analytics_js_add_script($script) {
  $options = array(
    'type' => 'inline',
    'scope' => 'footer',
  );
  drupal_add_js($script, $options);
}