• Hi,

    I am considering installing your plugin because I was looking for an easy way to get important meta data on the thank you page, such as the Transaction ID. My goal is to send it to GA, Google AdWords and Facebook in order for deduplicating conversions on each platform). I have a few questions:

    1) I noticed the orderID is not on the BASIC DATA INCLUDED here. Can I get it easily?

    2) I currently have GTM installed hardcoded. If I install your plugin, I should remove that code, right?
    3) If I install your plugin, should I remove this Woocommerce Google Analytics plugin?

    The page I need help with: [log in to see the link]

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

    (@duracelltomi)

    Hi,

    1. Transaction tracking has their own data layer variable names that Google has fixed in their docs
    1.a if you are using standard/classic ecommerce, you can use this data layer variable: transactionId
    1.b using enhanced ecommerce you should use this instead: ecommerce.purchase.actionField.revenue

    2. Yes, this is the clearest and safest method

    3. If you setup GA tracking inside your GTM account then you should not use any native GA plugin

    Thread Starter Ricardo Franco

    (@chefpanda123)

    Hi @duracelltomi ,

    Thank you for the tips.

    1) I′m getting these warnings, even though my GTM ID is right, as you can see here.

    2) Regarding the option of “Do not flag orders as being tracked” on Woocommerce, is it useful for deduplicating conversions on AdWords and Facebook? If so, how does this plugin communicate with Facebook and AdWords?

    Plugin Author Thomas Geiger

    (@duracelltomi)

    1) could you just type the container ID instead of copy/paste? Sometimes some hidden and non-visible characters are also copied which could lead to this confusing case

    2) this plugin is not communicating to any external system. The “Do not flag…” checkbox is there because some 3rd party payment providers execute plugin code in the background which makes this plugin to fail while tracking those orders. Normally, you should keep this checkbox unchecked.

    For GA, this will ensure deduplication.

    For Google Ads, you can read the order ID (aka transaction ID) from the data layer and pass this to your Google Ads Conversion Tag in the “Order ID” field. This will deduplicate tracked orders towards Google Ads.

    I am not aware of any similar option for the Facebook pixel

    Thread Starter Ricardo Franco

    (@chefpanda123)

    Hi @duracelltomi

    1) Thank you. The error disappeared but I′m not sure if the plugin is well set up, because when I use the preview feature of GTM, the preview pane does not show up on my website. Can I debug this?
    2) In order for deduplicating orders in GA, is this checkbox a must? If so, is there any impact on the website performance?

    NEW QUESTIONS – Deployment

    I came up with these questions while installing the plugin and setting up the GA enhanced ecommerce features:

    3) While installing Google Analytics tag on GTM, I followed this excellent post. On the step 8, do you confirm that the category is “ecommerce helper”, I mean, this is hard-coded text?

    3.1) The 3 tags have the option “once per event” selected, on the field Tag firing options. Is it the best option to set them up?

    4) All macros come blacklisted by default. Should I whitelist any macro, such as DataLayer Variable Macro?

    5) I am afraid of enabling the Include full category path because it may have impact on the website performance. What will I see differently on GA if I enable this feature?

    FEEDBACK

    6) Currently, the “ecomm_pagetype” does not differentiate the cart from the checkout pages. Here′s an example of the checkout page

    7) On the product page, the dataLayer is creating multiple times the same data because of the several product attributes. Is this the supposed behavior?

    Thanks a lot. Your plugin looks very good. Looking forward to work with it!

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    1. If the debug panel does not show up, that could be because of a so called content security policy in your site that prevents the preview panel from loading:
    https://www.simoahava.com/analytics/google-tag-manager-content-security-policy/

    2. If you check the “do not flag as..” option, and your user revisits the order received page, it can happen that an additional ecommerce transaction will be tracked towards GA which will ruin your revenue reports.

    3. the “ecommerce helper” is just a suggestion by me, you can name the trigger as you wish ??

    3.1 I usually set the pageview tag to fire only “once per page” and event tags on “once per event”

    4. I do not recommend using the blacklist feature unless you have very specific needs in terms of additional security. You will need to enabled all your tag types and macro/variable types so that your tracking can work, I have to admit that this part of the plugin will need some update with new tags already in the system

    5. You will see the full category path tree like Main cat / Subcat1 / Subcat 1.1 / Subcat 1.1.1
    By default, you will only see Subcat 1.1.1

    6. This is because the ecomm_pagetype does not have any specific value for the checkout page: https://developers.google.com/adwords-remarketing-tag/parameters#retail

    7. Technically if you select a specific product attribute, a separate child product is being used by WooCommerce in the flow. So for example you see product#1 in the product list and you click on product#1 in that list but while you are on the product detail page of product#1 and select a specific attribute, product#2 will be used from that point and product#2 will be added to the cart and product#2 will be visible on your checkout page. Those events ensure that your can keep track the proper cart-to-detail rate and buy-to-detail rate metrics in GA

    Thread Starter Ricardo Franco

    (@chefpanda123)

    Hi @duracelltomi

    1) When I had the GTM hard-coded this issue did not happen. Is this a common issue when transitioning for this plugin? PS: I′m pretty sure something is not right, because Hotjar is not recording any session (an Hotjar is deployed on GTM)

    2) So in order to avoid duplication , I should not check that option, right?

    3.1) ok, i′ll follow your recommendation

    4) So I should uncheck all boxes on the “blacklist macros”, right?

    5) Does the website get slower because of this?

    6) got it, Google mistake, Facebook has ??

    Thread Starter Ricardo Franco

    (@chefpanda123)

    Hi @duracelltomi,

    What may be causing this plugin not to function?

    Best regards,
    Ricardo

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Ricardo,

    1. Preview panel not showing: I really do not know why this happens to you only if you are using the container code that this plugin generates. It is basically the same container code, it should not block anything

    2. Yes!

    4. I would not use the block functionality unless you have some very specific security needs. I will need to update this part of the plugin as new variable and tag types are still missing from the list thus you might experience issues if this list is not setup correctly

    5. Depends on whether you are using any cache plugin. Without that and with lots of products and product categories, it could but there is no rule of thumb here

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘DataLayer Variables (Transaction ID) & Plugin Compatibility’ is closed to new replies.