protected function PageView::doExecute in GA Push 8
Executes the action with the given context.
File
- src/
Plugin/ RulesAction/ PageView.php, line 41
Class
- PageView
- Provides a 'Ga Push Page View' action.
Namespace
Drupal\ga_push\Plugin\RulesActionCode
protected function doExecute() {
ga_push_add_pageview([
'location' => $this
->getContextValue('location'),
'page' => $this
->getContextValue('page'),
'title' => $this
->getContextValue('title'),
], $this
->getMethod());
}