You are here

public function GoogleAdwordsTracker::hasTracking in Google AdWords Conversion Tracking 8

Have any trackings been registered?

@returns Boolean on whether or not trackings have been registered

1 call to GoogleAdwordsTracker::hasTracking()
GoogleAdwordsTracker::attachTrackingToElement in src/GoogleAdwordsTracker.php
Add tracking JS to a render element

File

src/GoogleAdwordsTracker.php, line 75
Contains Drupal\google_adwords\GoogleAdwordsTracker.

Class

GoogleAdwordsTracker
Class GoogleAdwordsTracker.

Namespace

Drupal\google_adwords

Code

public function hasTracking() {
  return count(static::$trackings) > 0;
}