D
D
Dauketan2020-11-20 12:58:21
Google Analytics
Dauketan, 2020-11-20 12:58:21

How to integrate google analytics and woocommerce?

// WooCommerce integration with Google Analytics
function devise_wc_ga_integration( $order_id ) {
$order = new WC_Order( $order_id ); ?>


<?php }
add_action( 'woocommerce_thankyou', 'devise_wc_ga_integration' );

I used this code, but it seems to work - it just counts somehow incorrectly in the effectiveness of the goods

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question