If you have noticed that our UTM cookies are not being generated on your WordPress page, it might be because your WordPress page template does not call the standard theme functions like get_header(), wp_head(), get_footer() or wp_footer().
What are wp_head() and wp_footer()?
What is the issue?
However by doing so, theme developers would have to manually load each plugin assets (CSS / JS files) manually on to the page.
Therefore to to track UTM parameters on custom WordPress page template which does not use the standard theme functions, there are 2 lines of code which you can implement in your PHP page template file.
- AFL UTM Tracker version 2.5.2 and above.
Manually load our JS file
<?php AFL_WC_UTM_PUBLIC::print_js_tracking_variable(); ?>
<?php AFL_WC_UTM_PUBLIC::print_js_tracking_file(); ?>