1. Home
  2. Docs
  3. AFL UTM Tracker Documentation
  4. Miscellaneous / Issues
  5. Tracking UTM on Custom WordPress Pages

Tracking UTM on Custom WordPress Pages

If you want to track UTM parameters on custom WordPress pages, there are 2 lines of code which you can implement in your PHP file.

Requirements:

  • AFL UTM Tracker version 2.5.2 and above.
  • jQuery.

Output our JavaScript variable

<?php AFL_WC_UTM_PUBLIC::print_js_tracking_variable(); ?>

Load our JavaScript tracking file

<?php AFL_WC_UTM_PUBLIC::print_js_tracking_file(); ?>

Sample Code