Below are a few WordPress action hooks that you can use in your theme’s functions.php file to insert CartStack tracking code into your WooCommerce store:

/**
 * Add Tracking Scripts to Cart : CartStack
 */
function woocommerce_add_tracking_scripts_cart() {
    global $woocommerce;

    // cleanup the $ dollar sign htmlentity
    $total_int = str_replace("$", "", $woocommerce->cart->get_cart_total() );

    // remove all non numeric characters
    $total_int = floatval( preg_replace( '#[^\d.]#', '', $total_int ) );

?>

/**
 * Add Tracking Scripts to Checkout: CartStack
 */
function woocommerce_add_tracking_scripts_checkout() { ?>

/**
 * Add Tracking Scripts to Thank You: CartStack
 */
function woocommerce_add_tracking_scripts_thankyou() { ?>

You'll need to add your own setSiteID value, but that's pretty much what you need to get the basic CartStack code into your WooCommerce store.

Also, if you'd like to see a gallery of live sites using WooCommerce, be sure to check out our site Built With WooCommerce. Built with WooCommerce is a source to view real live examples of WooCommerce stores.