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(); ?>