AFL UTM Tracker Documentation

  1. Home
  2. Docs
  3. AFL UTM Tracker Documentation
  4. Developer
  5. PHP Constants

PHP Constants

These are the available PHP constants for our AFL UTM Tracker plugin.

AFL_WC_UTM_LICENSE_KEY

  • When activating a plugin, it will automatically use the license key value to activate your license.
  • It is also useful for maintaining the license active status when cloning site from the production site to a staging site or vice versa because we do not store the license key in the database but instead we use a token unique to each site.
  • Supported since plugin version 2.19.2.
define( 'AFL_WC_UTM_LICENSE_KEY', 'xxxxxxxxxxx' );

AFL_WC_UTM_SWITCH_ADMIN_AJAX_HOOKS

  • To disable our javascript tracking file from sending a request to admin-ajax.php.
  • Our plugin uses admin-ajax.php for the purpose of syncing live attribution of logged-in users and to bypass Apple Intelligent Tracking Protection (ITP).
define( 'AFL_WC_UTM_SWITCH_ADMIN_AJAX_HOOKS', false );