Support » Plugin: Google Tag Manager for WordPress » Enhanced ECommerce Integration

  • Jethro Burnett Thorburn

    (@happyhealthyhonesthuman)


    Good Day Tamás,

    Firstly, thank you very much for offering this plugin for free. I sincerely appreciate that. I am a 24 year old from South Africa, currently using WordPress to develop a site that will help many local entrepreneurs to sell Local, Sustainable, and Ethical products. Thank you very much for helping me to do that! I really appreciate it.

    Onto the serious stuff:

    I have successfully managed to get the basic Universal Google Analytics working. However, I have attempted to configure Enhanced ECommerce Tracking for my site but I have not managed to get it working yet.

    I have read through your article, How to Setup Enhanced Ecommerce Tracking:
    https://gtm4wp.com/how-to-articles/how-to-setup-enhanced-ecommerce-tracking

    Please see my attempts to follow each step of your article:

    I have posted the Screenshots at the following link and labeled them as below:
    https://imgur.com/a/rsVzGTA

    Step 1: enable enhanced ecommerce in plugin settings
    I have attempted to enable the settings correctly.
    >> Please see Screenshot 1

    Step 2: check the tag type of your Google Analytics main pageview tag
    The tag type of the pageview is Universal Analytics
    >> Please see Screenshot 2

    Step 3: upgrade your Google Analytics tags
    NOT NEEDED

    Step 4: deactivate your transaction tag
    NOT NEEDED – Never used classic ecommerce tracking

    Step 5: enable Enhanced Ecommerce in your Universal Analytics tags
    I have enabled the Enhanced Ecommerce feature within the tag
    >> Please see Screenshot 3

    Step 6: create a so called DOM Ready trigger
    WARNING!
    This step is only needed if you set the “Products per impression” option to 0 (zero).

    I have left my “Products per impression” option to 0 (zero) as the default was set. I am not sure whether I should have changed this to a larger number? Please see the URL link for this post to see my shop page. I am currently displaying 10 products per product archive, although I may increase that number to 20 or so.

    So I decided for now to do a DOM Ready trigger.

    >> Please see Screenshot 4 for settings I entered

    Step 7: add the DOM Ready trigger to your main GA pageview tag
    I have attempted to do this correctly.
    >> Please see Screenshot 5

    Step 8: setup helper click tracking

    STEP ONE: Create new Trigger
    I have attempted to do this correctly.
    >> Please see Screenshot 6

    STEP TWO: Create new Tag

    In this section you say, “Enable every feature you already enabled in other Analytics tags (like display features, enhanced link attribution, etc.) or select your Google Analytics settings variable if you have created one previously”.

    I used a Variable Configuration:
    >> Please see Screenshot 7

    I created the new tag:
    >> Please see Screenshot 8

    Now you can see I have 2 tags created:
    >> Please see Screenshot 9

    Step 9: setup product impression tracking (required from v1.9)
    WARNING!
    This step is only needed if you set the “Products per impression” option to a value grather than 0 (zero).

    NOT NEEDED – I skipped this step because my Products per Impression is left on the Default 0. Please let me know whether I need to change this.

    ADDITIONAL SCREENSHOT MIGHT BE VERY USEFUL:

    I have the GTM Debug Mode enabled and I am using GTM Assistant as well as a Google Chrome extension called AnalyticsPros DataLayer inspector extension.

    I added a product to cart and it says that the ECommerce Tracking fired.

    >> Please see Screenshot 10 for all the details

    However, I cannot see where this data and Event is to be displayed in Google Analytics. I have looked under Behavior -> Events and I don’t see anything there. I have looked under Conversion -> Ecommerce and gone through all the tabs and I don’t see any data there for the product I added to cart (even though it says the Event Triggered in Debug Mode).

    I am wondering whether the problem is that I am looking in the wrong place of Google Analytics or whether I have set up something wrong? Where should I look for the Enhanced Ecommerce Data in Google Analytics?

    I also noticed the following error message in the DataLayer inspector and I am not sure whether they are relevant. Perhaps you can take a look at the error messages below and get back to me?

    ERROR MESSAGE 1:
    “Google dataLayer – initialization unobservable
    a.js:6 ~ dataLayer was initialized as non-configurable; e.g. var dataLayer.
    a.js:6 ~ This is non-standard, and frequently seen when the dataLayer is initialzed directly with data.
    a.js:6 ~ If dataLayer is reset (wiping out previous pushes), the Inspector will not be able to warn.”

    ERROR MESSAGE 2:

    “Google – dataLayer.push(): Object – Expand for details
    a.js:6 ~ NOTICE: NOTICE – All dataLayer pushes should have an event key. Without an event key, it is difficult to trigger a tag with the push.
    a.js:6 ~ Object:
    {
    visitorLoginState: “logged-in”,
    visitorType: “administrator”,
    visitorUsername: “Jethro”,
    pageTitle: “Products | “,
    pagePostType: “product”,”

    ERROR MESSAGE 3:

    “[Deprecation] Percentages row tracks and gutters for indefinite height grid containers will be resolved against the intrinsic height instead of being treated as auto and zero respectively. This change will happen in M70, around October 2018. See https://www.chromestatus.com/feature/6708326821789696 for more details.”

    ————————————————————————

    THANK YOU VERY MUCH Tamás!

    I would sincerely appreciate any help you can offer on this topic Tamás. Your work is helping my life.

    Thank you again.

    Kind regards and best wishes,
    Jethro

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Jethro Burnett Thorburn

    (@happyhealthyhonesthuman)

    Hi again,

    Sorry for another post.

    I was in Google Analytics now and saw a notification pop up in the dashboard.

    Please see Screenshot 11 to see the message and the corresponding settings page.

    Thank you very much!

    Kind regards and best wishes,
    Jethro

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Jethro,

    Wow, I haven’t seen a post that long before in this forum :-))

    Step 1 – correct
    Step 2 – correct
    Step 3 and 4 – correct, not needed in your case
    Step 5 – correct
    Step 6 – if you have longer product list pages where more than ~10-12 products are being shown, you can use this feature to create an additional Google Tag Manager event that will report product impressions separated from your main Google Analytics pageview data package
    Step 7 – correct, though I can see an exclude trigger here as well that is bound to the “Page View” event instead of the “DOM Ready” trigger event. This will not work since you always need to sync the event of your positive trigger with your exception trigger
    Step 8 – Screenshot 7: I would not recommend to enable enhanced ecommerce in your GA settings variable as not all your GA tags will fire on ecommerce events and it can harm your data quality if each of your further GA tags will send the last ecommerce action many times – just enable enhanced ecommerce in your ecommerce tags and not in this variable

    On your screenshots I can see that a GA event tag is being fired for the add to cart event so data sending seems to work correctly. You haven’t attached a screenshot about the Ecommerce settings section in GA under the View column. You will need to enable ecommerce tracking here and also enable (with a separate switch) enhanced ecommerce tracking. Have you done this?

    Warnings:

    “Google dataLayer – initialization unobservable”
    This one seems to me a false positive, data layer is initialized correctly as described

    “All dataLayer pushes should have an event key”
    This push is correct that way, the first push before the GTM container code does not need an event key.

    “[Deprecation] Percentages row tracks…”
    This one is not related to this plugin or GTM itself

    Thread Starter Jethro Burnett Thorburn

    (@happyhealthyhonesthuman)

    Hello Tamás,

    Thank you kindly for the reply. I sincerely appreciate you taking the time to assist.

    I have uploaded more screenshots to the previous link to detail my progress. The new screenshots start at Number 12. Here is the link again:
    https://imgur.com/a/rsVzGTA

    So onto my progress based on your suggestions:

    ——————————————————————————–

    Step 7:

    I can happily say that I have now resolved this issue and there are no tags fired when an administrator is logged in and they are also not in Debug Mode. However, when they are in Debug Mode the event still triggers.

    ———————————————————————————

    Step 8:

    Your Response: “Step 8 – Screenshot 7: I would not recommend to enable enhanced ecommerce in your GA settings variable as not all your GA tags will fire on ecommerce events and it can harm your data quality if each of your further GA tags will send the last ecommerce action many times – just enable enhanced ecommerce in your ecommerce tags and not in this variable”

    >> Please see Screenshot 12 – I no longer have the E-commerce Tracking enabled on the GA Settings Variable

    Now you say that I should rather enable enhanced ecommerce in the “ecommerce tags”. Based on your guide, it seems like I should have Ecommerce enabled in both the Page View Tag and the ECommerce Helper Click Tag. So I will do that for now.

    >> Please see Screenshot 13 – I have Enhanced E-Commerce enabled in the E-Commerce Tracking Tag.

    >> Please see Screenshot 14 – I have Enhanced E-Commerce enabled in the Page View Tag.

    Question 1:
    Have I done this correctly? Please let me know whether I should only enable Enhanced Ecommerce in the Page View Tag, or only in the ECommerce Tracking Tag? Or please let me know whether it is correct as is with Enhanced Ecommerce enabled in BOTH tags.

    Question 2:
    Should the setting Non-Interaction Hit in the Ecommerce Tracking Tag (Event) be set to True or False?

    ———————————————————————————

    Question 3: I have the “Display Advertising Features” and “Enhanced Link Attribution” enabled on both the Ecommerce Tracking Tag and the Page View Tag. I am assuming this will not cause any problems? Should I enable Display Advertising Features and Enhanced Link Attribution at a Tag Level or rather in my GA Settings Variable?

    ———————————————————————————

    YOUR Response: “You haven’t attached a screenshot about the Ecommerce settings section in GA under the View column. ”

    >> Please see Screenshot 15 – My apologies, please see now, I have Enhanced E-Commerce enabled in GA under the View column.

    ———————————————————————————

    Okay! So it seems now that the DataLayer push is successful and the Tags are firing correctly. However, I am not receiving a steady stream of Ecommerce events in the GA Dashboard.

    >> Please see Screenshot 16 – Screenshot 16 – Tags Firing and DataLayer push seems successful

    Surprisingly though, yesterday evening I did have some Enhanced Ecommerce events appearing in the GA dashboard. There were 5 or so, but I cannot retrace the exact GTM setup I had that lead to the data successfully being recorded in GA. I was fiddling for a while and only after a long time when I was exploring GA did I see that some Events had come through. At least we know it is possible! I tried fiddling with the settings to see what configuration may have lead to the successful data flow to GA, however, I was unable to replicate the conditions.

    Question 4: What do you think the problem might be, and how could we go about troubleshooting it?

    Please let me know what information you need for us to continue.

    ———————————————————————————

    Finally,

    Question 5:

    Would you mind explaining what these two Events are, please:

    gtm4wp.checkoutOptionECC
    gtm4wp.changeDetailViewEEC

    ———————————————————————————

    I know the reply is long, however, for an intelligent person like you, I thought you may find it more annoying to have a lack of information to work with rather than for me to be too simple and not supply you with sufficient information.

    I sincerely appreciate your assistance here Tamás and will patiently and eagerly await any response you might have.

    Thank you kindly!

    Best wishes,
    Jethro

    Thread Starter Jethro Burnett Thorburn

    (@happyhealthyhonesthuman)

    Hi Tamás,

    I bring good news. It seems the events are coming through into GA now. Awesome. I just think there is a delay.

    I have 2 questions:

    Question 1:

    So, now I have events:

    Category: Ecommerce Helper
    Action: Add to Cart, Remove from Cart etc.
    Label: At the moment I have it set to a random number

    However, surely one needs to add the specific Product name into the Label area? Is this possible using the DataLayer?

    Otherwise I simply have all these events but I can’t link them to products to see which products are performing well?

    Question 2:

    What are these events related to?

    gtm4wp.checkoutOptionECC|
    gtm4wp.changeDetailViewEEC

    Thank you for your time sir!

    Kind regards and best wishes,
    Jethro

    Plugin Author Thomas Geiger

    (@duracelltomi)

    For the event label: it is not mandatory to add the product name. Use the ecommerce reports instead of the event report to analyize product performance across the ecommerce funnel. Events are only there so that ecommerce data can flow from your website to GA.

    This is why I am usually referring to the ecommerce GA event tags as “helper” or “messenger” since the main purpose of those event tags are not to populate the event reports but to populate the ecommerce GA reports with data.

    gtm4wp.checkoutOptionECC: this is fired when a user selects a shipping method or a payment method in the ckeckout page.

    gtm4wp.changeDetailViewEEC: on variable product pages, this event is fired when a user has selected all the necessary attributes that will select the proper child product.

    Thread Starter Jethro Burnett Thorburn

    (@happyhealthyhonesthuman)

    Thank you kindly for your time, patience and assistance.

    I sincerely appreciate it Sir!

    I am a solopreneur learning as I go. I still need to set up my Funnels on GA.

    Thank you once again and I hope your week is good!

    Kind regards and best wishes,
    Jethro

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Enhanced ECommerce Integration’ is closed to new replies.