yst_tracking
The Google Analytics by Yoast yst tracking hook.
Description
do_action( 'yst_tracking' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'yst_tracking' );
- The following example is for adding a hook callback.
- // define the yst_tracking callback
- function action_yst_tracking( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'yst_tracking', 'action_yst_tracking', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'yst_tracking', 'action_yst_tracking', 10, 0 );
Defined (2)
The action is defined in the following location(s).
- /frontend/class-universal.php
- do_action( 'yst_tracking' );
- /frontend/class-ga-js.php
- do_action( 'yst_tracking' );