"; } function AQSM_allowableFields_callback() { //$setting = esc_attr( get_option( 'aqsm-allowableFields' ) ); //echo ""; } function AQSM_targetURL_callback() { // $setting = esc_attr( get_option( 'aqsm-targetURLs' ) ); // echo ""; } add_action( 'admin_init', 'AQSM_register_setting' ); add_action('admin_menu', 'AQSM_admin_menu'); function AQSM_admin_menu() { $page_title = 'Query String Manager'; $menu_title = 'Query String Manager'; $capability = 'manage_options'; $menu_slug = 'aqsm-settings'; $function = 'AQSM_settings'; add_options_page($page_title, $menu_title, $capability, $menu_slug, $function); } function AQSM_settings() { if (!current_user_can('manage_options')) { wp_die('You do not have sufficient permissions to access this page.'); } ?>

Attribution Query String Manager

This tool will scan links with the specified domains for the query string variables listed below and ensure that they are updated with the appropriate values. These valued can be defined by:

  1. Post/Page settings
  2. URL
  3. Client Side Cookie
  4. Server Session Cache
  5. Defaults (defined below)

The list above indicates the order of override - in short, settings for a post/page will cause mismatching values set via url to be ignored. Note: This processing will only apply to material output via the_content() (this includes pages & posts)

Query String Variables to Manage

Add query string variables that are to be placed under management.

Variable Default Value Disable Default
Value
Append*  

Add

*The "append" setting will cause the engine to CHAIN inputs. So if the cookie says that querystring value "sourcePartner" equals "search" and the URL defines sourcePartner=affiliate, the value passed will be "affiliate,search"

Domain Names to Apply Query String Variables To

Domain(s):

Add

Settings'; array_unshift($links, $settings_link); } return $links; }