Google Analytics Ecommerce Tracking

Google Analytics Ecommerce Tracking allows you to measure the number of transactions and revenue that your website generates. You must have added regular Google Analytics code to the top of your page and you must also have enabled ‘Ecommerce’ on your Google Analytics dashboard. function _wpi_custom_ga_ecommerce_tracking( $invoice ) { if ( ! wpinv_is_success_page() ) { […]

wpinv_get_ip

Filters the IP address of the current visitor. apply_filters( ‘wpinv_get_ip’, string $ip ); Parameters # Returns # $ip (string) Current visitor’s IP address. Examples # Set the current visitor’s IP address from United Kingdom IP address range. It will identify that the current visitor is from United Kingdom. function _wpi_wpinv_get_ip( $ip ) { /* * […]