You are here

function __getclicky_track_or_not in Clicky - Web Analytics in Real Time 8

Same name and namespace in other branches
  1. 7 getclicky.module \__getclicky_track_or_not()

Decides whether track the user or not.

Parameters

$account: A user object containing an array of roles to check

Return value

boolean A decision on if the current user is being tracked by getClicky

1 call to __getclicky_track_or_not()
getclicky_page_build in ./getclicky.module
Implements hook_page_build().

File

./getclicky.module, line 172

Code

function __getclicky_track_or_not($account) {

  // By default we don't track users.
  $track = FALSE;
  if (__getclicky_track_or_not_based_on_user($account) && __getclicky_track_or_not_based_on_page() && __getclicky_track_or_not_based_on_site_id_number_empty()) {
    $track = TRUE;
  }
  return $track;
}