Created
April 21, 2020 14:23
-
-
Save jchristopher/a0dcf2bd974ff6da64d22f108f1735c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@link https://searchwp.com/v3/docs/kb/adding-metrics-link-tracking-to-listify-via-facetwp/ | |
// Add these lines BEFORE the existing template code. | |
do_action( 'searchwp_metrics_click_tracking_start' ); | |
add_action( 'listify_output_results', function() { | |
do_action( 'searchwp_metrics_click_tracking_stop' ); | |
} ); | |
// The existing Template code should be here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment