• First off, amazing plugin! Thank you so much for your continued development on it. I’m having trouble tracking Google Ads Conversions, and I think it’s because the documents are specific to GA4?

    I’m attempting to capture the dataLayer, and it looks something like this for totals below, not the “ecommerce.value” notation I’m seeing in the support topics.

    cartContent: {
        totals: {
          applied_coupons: [],
          discount_total: 0,
          subtotal: 11.99,
          total: 15.99
        },
        items: []
      },

    Am I missing something by not seeing the “ecommerce” variable? Also, I don’t see a unique transactionID either across the entire JSON. What would I enter into the GTM for both “total” and “ID” based on this sample version I have above?

    Many thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Thanks for the kind words ??

    If you are talking about the “purchase” event, that is only outputted once during the first pageview for a specific order ID. If you reload the page or revisit it after some time, ecommerce data will be omitted to prevent multiple tracking of the same order.

    Thread Starter Dario Zadro

    (@zadro)

    Thanks, Tom!

    What then would then be the correct dataLayer JSON elements to enter into the GTM conversion fields for:

    Transaction Total: ecommerce.value ??
    Transaction ID: ???

    I know I need to create variables first, then add those to the conversion tag. However, I can’t seem to capture the correct dataLayer element. Or, am I to enter the event data instead?

    Please advise with some specifics, and much appreciated.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    I would go with the setup guide for Google Ads conversion tracking ??

    https://gtm4wp.com/how-to-articles/how-to-setup-google-ads-conversion-tracking-for-woocommerce

    Thread Starter Dario Zadro

    (@zadro)

    Thanks, but I’m not using GA4, per my initial support request — rather Universal Analytics.

    Would you be able to provide the variable names from dataLayer? Or event names?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    You do not need to use Google Analytics 4 to make this work.
    The implementation uses the GA4 ecommerce data in the data layer. You do not need to send this to a GA4 property.

    If you setup the Google Ads conversion tag based on the article above, you will use the data layer values.

    It is an example of reusing the same data layer implementation for multiple purposes: you can use it to track ecommerce in GA4 or to track conversions in Google Ads OR both.

    Thread Starter Dario Zadro

    (@zadro)

    Tom, in the article, it’s not clear what the dataLayer names are and the reason I started this post. The article has a focus to import unnecessary items that don’t pertain to universal analytics.

    I’m sure it will help others, and me tremendously, if you can simply list the dataLayer variables here directly.

    Can you please provide the dataLayer variable names or update your article with the variables to capture?

    Maybe I’m leaving out that I’m trying to capture variables on the WooCommerce Order Received page, if that helps clear things up.

    Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Google Conversions — Universal Analytics’ is closed to new replies.