matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.71k stars 2.62k forks source link

Explain how to track Ecommerce Orders in Shopify store (using image pixel tracking) #17024

Closed mattab closed 3 years ago

mattab commented 3 years ago

an FAQ explains how to add shopify ecommerce store page tracking with Matomo in https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-shopify-store/

and the FAQ says:

Currently Matomo does not have an eCommerce integration with Shopify, so Ecommerce tracking is not available. That’s because Shopify plans don’t allow 3rd party javascript on their checkout pages, so Matomo cannot track these ecommerce checkout pages.

as Shopify is very popular among ecommerce, it would be valuable to also be able to track shopify ecommerce sales in the Matomo analytics dashboard. Looking at their docs online at https://help.shopify.com/en/manual/orders/status-tracking/customize-order-status/add-conversion-tracking there seems to be a feature to do conversion tracking using an image beacon such as:

<img src="https://www.tracking.com/pixel.gif?amount={{ total_price | money_without_currency }}&amp;order-id={{ order_number }}&amp;currency={{ currency }}" height="1" width="1" />

Limitation: It looks like we won't be able to track the products, but tracking the sale and amount is already extremely valuable.

Suggested steps:

  1. double check whether it works to record the ecommerce sale in Matomo using pixel beacon,
  2. update our Shopify FAQ to include instructions on how to add this image beacon

FYI customer who uses shopify messaged:

see the recordings of the user journey from the moment they arrived on our site until they left either without placing an order or with placing an order?

EladGeek commented 3 years ago

why not use the script pixel? you have to load the base tag in advance (to capture the pageview also), and then fire the conversion event

a similar solution is used by the Bing tag in Shopify

Starker3 commented 3 years ago

The Shopify themes allow for quite a lot of flexibility in how they can be setup. So what we could do is create some basic shopify style functions to trigger certain types of tracking requests. The easiest will probably be tracking product views, since this can easily fire on every product page by adding the tracking code in the correct theme file.

tsteur commented 3 years ago

fyi @mattab @Starker3 this might be more an internal KB or SUP issue?

mattab commented 3 years ago

Closing here and re-created internally as SUP-372

mattab commented 1 year ago

how to track Ecommerce Analytics for Shopify covered (including product, categories, product views & add to carts, etc.) in https://matomo.org/faq/new-to-piwik/how-do-i-install-the-matomo-tracking-code-on-my-shopify-store/

uschtwill commented 1 year ago

Shouldn't the docs change to make use of this feature now? https://help.shopify.com/en/manual/promoting-marketing/pixels/overview