Need help sending conversion events to Google Ads
-
Hello, I have written a custom gtag script to send conversion events to Google Analytics:
wc_enqueue_js( "
gtag('event', 'purchase', {
transaction_id: '" . $order_id . "',
currency: '" . $currency . "',
value: " . $order_total . ",
discount: " . $discount_total . ",
items: " . json_encode($items) . "
});
" );It works perfectly fine with google analytics, but I cannot seem to make it send the events to both Google Analytics AND Google Ads. I’ve tried adding ‘send_to’: [‘G-[TAG ID], AW-[CONVERSION ID] / [CONVERSION LABEL]’] to the above code, but it did not work.
Can someone please help?
- The topic ‘Need help sending conversion events to Google Ads’ is closed to new replies.