Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support the enhanced ecommerce Data Layer format #14

Open
grantkemp opened this issue Aug 15, 2017 · 7 comments
Open

Comments

@grantkemp
Copy link

This module is excellent - and to make it even better - why don't you change the sample DataLayer format to support the Google recommended , enhanced ecommerce data layer format so users can take advantage of awesome reports such as:

  • The Shopping report
    image

  • The checkout report
    image

  • The Product Listing report
    image

All that needs to be added:
( I can add the exactly JS for magento if needed)

The starting ones that I would use are: ( hyperlinked to sample calls)

@alexkoepke
Copy link
Contributor

Hey @grantkemp,
Can you site the "Google recommended , enhanced ecommerce data layer format" you are referring to?

@grantkemp
Copy link
Author

grantkemp commented Aug 16, 2017

Hi @alex-koepke - If you look at the bottom of the issue above- I included a section where I list each page and hyperlinked each page to the relevant place in the documentation.
The whole page is found here:
https://developers.google.com/tag-manager/enhanced-ecommerce

eg Product Detail page should have the following markup:
( I customized the code based on my local instance, but I am happy to do the same for the other snippets, if needed. Have done these implementations loads - but mainly on Magento Enterprise)

 dataLayer.push({
   'ecommerce': {
     'detail': {
       'actionField': {'list': 'Category'},    // 'detail' actions have an optional list property.
       'products': [{
         'name': 'Death Star Lego,         
         'id': '1223213', // Sku
         'price': '15.25',
         'category': 'Toys' // If magento has multiple categories - just pick the first in the array
        }]
      }
    }
 });

@srenon
Copy link
Contributor

srenon commented Aug 18, 2017

@grantkemp @alexkoepke ... Not sure if I will have the time to fully implement EE. Keep in mind that you could also accomplish EE using a Google Analytics extension.

@grantkemp
Copy link
Author

@srenon - I have found some workarounds for some of the data- and manually adding the code.
If you can do the addToCart - then I think we are probably ok to do the rest in GTM - and you will have a more powerful project.

Others can add the other features as more people use it
@srenon agreed I could use GA extension - but GTM is infinitely more powerful and flexible for most businesses.

If you are doing real business then GTM is the only way to go.

@grantkemp
Copy link
Author

@srenon if you want a hand - drop me a line. I am happy to help out.

@srenon
Copy link
Contributor

srenon commented Jan 16, 2018

@grantkemp ... Sure.

My main focus is M2 and I took over 60 hours to implement this in M2

@grantkemp
Copy link
Author

nice work - do you want to setup an instance on something like magecloud - then I am happy to run through it ( if needed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants