You are here

public function GoogleAdwordsPathTracker::registerPathConfig in Google AdWords Conversion Tracking 8

Add tracking using settings from a GoogleAdwordsPathConfig object

Parameters

\Drupal\google_adwords_path\Entity\GoogleAdwordsPathConfig $pathConfig:

Return value

null

1 call to GoogleAdwordsPathTracker::registerPathConfig()
GoogleAdwordsPathTracker::registerCurrentRoute in modules/google_adwords_path/src/GoogleAdwordsPathTracker.php
Handler Routing finished event to register any path configs that match with the adwords tracker

File

modules/google_adwords_path/src/GoogleAdwordsPathTracker.php, line 155
Contains Drupal\google_adwords_path\GoogleAdwordsPathTracker.

Class

GoogleAdwordsPathTracker
Class GoogleAdwordsPathTracker.

Namespace

Drupal\google_adwords_path

Code

public function registerPathConfig(GoogleAdwordsPathConfig $pathConfig) {
  return $this->google_adwords_tracker
    ->addTracking($pathConfig
    ->get('conversion_id'), $pathConfig
    ->get('label'), $pathConfig
    ->get('words'), $pathConfig
    ->get('language'), $pathConfig
    ->get('color'), $pathConfig
    ->get('format'));
}