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

Support Matomo Tag Manager #32

Open
tsteur opened this issue Jun 10, 2018 · 6 comments
Open

Support Matomo Tag Manager #32

tsteur opened this issue Jun 10, 2018 · 6 comments

Comments

@tsteur
Copy link

tsteur commented Jun 10, 2018

As announced last week there is now a Matomo Tag Manager available which integrates into Matomo and eventually will be directly shipped with Matomo.

It would be great if you could offer an easy way for users to embed their Tag Manager containers. We have written a guide that helps on how to write an integration plugin:
https://developer.matomo.org/guides/tagmanager/integration-plugin

Please let me know if there are any questions. Happy to improve the guide and making integrations as easy as possible.

FYI: Piwik is now Matomo.

@amenk
Copy link

amenk commented Apr 23, 2021

We are also interested in this. Is there any news about this? Did anybody start working on this.

@tsteur Does it mean that the datalayer calls also have to be replaced or is it only about the container embedding?

@amenk
Copy link

amenk commented Apr 24, 2021

I am working on this, but for the https://github.com/fnogatz/magento2-matomo fork

amenk added a commit to iMi-digital/magento2-matomo that referenced this issue Apr 24, 2021
amenk added a commit to iMi-digital/magento2-matomo that referenced this issue Apr 24, 2021
* Add config flag for switching between Tag Manager Container and direct Tracking code
* Don't check for window._mtm anymore -> use configuration
* Remote unnecessary JsOptions / calls only for paq
@amenk
Copy link

amenk commented Apr 24, 2021

@fnogatz You can have a look at the pull request #1 - it basically already tracking page views. But I think I have to push different options, because in the tag manager preview debug log I see

14:24:14.881 | "method setEcommerceView is not valid"
14:24:14.883 | "method trackPageView is not valid"

And also

"method addEcommerceItem is not valid"

@amenk
Copy link

amenk commented Apr 24, 2021

It looks like in Matomo Tag Manager new tags for all the events have to be created (https://matomo.org/faq/tag-manager/faq_35847/) - wondering if we can do this seamlessly, so that Matomo Ecommerce Tracking works with less possible changes.

amenk added a commit to iMi-digital/magento2-matomo that referenced this issue Apr 24, 2021
@amenk
Copy link

amenk commented Apr 24, 2021

I came up with this solution for warding the ecommerce events to Matomo https://github.com/iMi-digital/magento2-matomo/blob/main/doc/tag-manager.md

amenk added a commit to iMi-digital/magento2-matomo that referenced this issue Apr 27, 2021
* Separate templates
* Include the Tag Manager code in the <head> tag
amenk added a commit to amenk/magento2-matomo that referenced this issue Apr 29, 2021
amenk added a commit to amenk/magento2-matomo that referenced this issue Apr 29, 2021
* Add config flag for switching between Tag Manager Container and direct Tracking code
* Don't check for window._mtm anymore -> use configuration
* Remote unnecessary JsOptions / calls only for paq
amenk added a commit to amenk/magento2-matomo that referenced this issue Apr 29, 2021
amenk added a commit to amenk/magento2-matomo that referenced this issue Apr 29, 2021
* Separate templates
* Include the Tag Manager code in the <head> tag
@amenk
Copy link

amenk commented Apr 29, 2021

New pull request #51

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