Enhanced Ecommerce dataLayer WooCommerce

I’m trying to set up a dataLayer for WooCommerce Thank you page. Look here what I’ve done so far (the variables are not completely set up yet): function dataLayer_google_gtm( $order_id ) { // …