I am trying to modify my tracking code pixels by calling the total cart within my pixel parameters but it is not working.
I tried using these codes below (including more) but no luck.
WC()->cart->total
WC()->cart->get_cart_total
$woocommerce->cart->get_cart_total
$woocommerce->cart->total
Do you happen to know what the variable parameter is for displaying the total cart? I added the tracking codes in my child theme’s function.php file. Thank you.