You are here

protected function FacebookEvent::addAnonymousEvent in Facebook Pixel 8

Adds an event for anonymous users.

Parameters

string $event: The event name.

string|array $data: The event data.

1 call to FacebookEvent::addAnonymousEvent()
FacebookEvent::addEvent in src/FacebookEvent.php
Register an event.

File

src/FacebookEvent.php, line 79

Class

FacebookEvent
Helper methods for facebook_pixel module.

Namespace

Drupal\facebook_pixel

Code

protected function addAnonymousEvent($event, $data) {
  self::$events[] = [
    'event' => $event,
    'data' => $data,
  ];
}