\Redux_Tracking

Class Redux_Tracking

Summary

Methods
Properties
Constants
get_instance()
__construct()
load()
_enqueue_tracking()
_enqueue_newsletter()
tracking_request()
newsletter_request()
print_scripts()
tracking()
$options
$parent
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$instance
N/A

Properties

$options

$options

$parent

$parent

$instance

$instance

Refers to a single instance of this class.

Methods

get_instance()

get_instance() : \Foo

Creates or returns an instance of this class.

Returns

\Foo —

A single instance of this class.

__construct()

__construct()

Class constructor

load()

load( $parent)

Parameters

$parent

_enqueue_tracking()

_enqueue_tracking()

_enqueue_newsletter()

_enqueue_newsletter()

tracking_request()

tracking_request()

Shows a popup that asks for permission to allow tracking.

newsletter_request()

newsletter_request()

Shows a popup that asks for permission to allow tracking.

print_scripts()

print_scripts(string $selector, array $options, string $button1, string|bool $button2, string $button2_function, string $button1_function)

Prints the pointer script

Parameters

string $selector

The CSS selector the pointer is attached to.

array $options

The options for the pointer.

string $button1

Text for button 1

string|bool $button2

Text for button 2 (or false to not show it, defaults to false)

string $button2_function

The JavaScript function to attach to button 2

string $button1_function

The JavaScript function to attach to button 1

tracking()

tracking()

Main tracking function.