Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created April 21, 2020 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/a0dcf2bd974ff6da64d22f108f1735c5 to your computer and use it in GitHub Desktop.
Save jchristopher/a0dcf2bd974ff6da64d22f108f1735c5 to your computer and use it in GitHub Desktop.
<?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