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

How often do items get out of stock? #11

Open
filipefurtad0 opened this issue Aug 21, 2023 · 3 comments
Open

How often do items get out of stock? #11

filipefurtad0 opened this issue Aug 21, 2023 · 3 comments

Comments

@filipefurtad0
Copy link
Contributor

What is the question we want to answer?

We want to know how often do users experience an item finishing stock, before the order actually is completed.

What type of data do we need to answer this question (and how to get it, if known)?

One approach could be measure how often do users see the out of stock banner.

Potential solutions that will solve the problem? [[brainstorming on how to access the data, using Matomo, Metabase, other]

Proposed solution: Set up an event on Matomo, to observe when the out of stock banner is triggered.

How does an order look like, when an item is of stock, in the DB? Maybe there are some features which allow setting up queries on Metabase?

Additional context

https://openfoodnetwork.slack.com/archives/CG7NJ966B/p1691400145549199?thread_ts=1691374390.628649&cid=CG7NJ966B

@filipefurtad0
Copy link
Contributor Author

The element in event we wish to track has class=alert-box:

image

with text:
An item in your cart has become unavailable. Please update the selected quantities.

On URL:
/cart

@filipefurtad0
Copy link
Contributor Author

Ok, I've found this configuration to work in staging:

  1. A goal

image

  1. A view trigger:
    image

  2. A tag pointing to the Goal created step 1) and the trigger set up in step 2)

image

This can then be seen on the Goals results:

image

@filipefurtad0
Copy link
Contributor Author

Ok, this is now working for UK-prod:

image

The cool thing about it, is we can see which shop is triggering this the most:

image

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

No branches or pull requests

1 participant