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

Documentation eCommerce Tag - datalayer-variable #3

Open
utrautmann opened this issue Oct 23, 2023 · 1 comment
Open

Documentation eCommerce Tag - datalayer-variable #3

utrautmann opened this issue Oct 23, 2023 · 1 comment

Comments

@utrautmann
Copy link

Hello,
great job you did here. Thank you very much for expanding the Tag Manager.

I have a question about the eCommerce tracking tag.
You write in the Tag Manager: "Create a {⁣{Ecommerce}} data layer variable to collect the "ecommerce" key in _mtm."
But how exactly should the data layer variables be named?
For example, to track an order I have to specify the following variables in the datalayer:
orderId, revenue, subTotal, tax, shipping, discount

Or did you use exactly the variable wording that Matomo also uses in its documentation for the e-commerce functions?

Can you give an example please? Thank you very much.

@ronan-hello
Copy link
Contributor

ronan-hello commented Nov 22, 2023

Hello,

Thank you for your comment.

In order to use this tag, you should use the Google Analytics 4 dataLayer structure.
You have to create an {{Ecommerce}} variable based on the ecommerce key in the dataLayer.
You can follow this tutorial I wrote (in french, but soon in english) : https://ronan-hello.fr/series/matomo/ecommerce-matomo-tag-manager

Regards,
Ronan

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

2 participants