• Resolved tiagosartor3

    (@tiagosartor3)


    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?

Viewing 1 replies (of 1 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @tiagosartor3. Unfortunately we’re limited to Site Kit related queries here in the plugin support forums, but you can reach out to the product experts at the Google Ads Help Center, where they would be able to assist with event tracking.

    You may also wish to use Tag Manager for such event tracking, and we have a guide on the plugin website for assistance with this.

Viewing 1 replies (of 1 total)
  • The topic ‘Need help sending conversion events to Google Ads’ is closed to new replies.