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

When adding a goal triggered from an event, let me define events with AND conditions #10791

Open
heekyungyoon opened this issue Oct 26, 2016 · 9 comments
Labels
c: Goals For bugs and features related to goals tracking & reporting. c: Onboarding For issues that make the experience of getting Matomo up and running better. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@heekyungyoon
Copy link

I defined several events with same event category and different event actions.
In order to distinguish these events, I need to define goals based on multiple conditions. (for example, event category contains 'fruit' and event action contains 'apple'.)
However, currently Piwik doesn't seem to support this function.

@heekyungyoon heekyungyoon changed the title When adding a goal for sending an event, defining event with multiple condition is not available When adding a goal for sending an event, defining event with multiple conditions is not available Oct 26, 2016
@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Oct 26, 2016
@tsteur
Copy link
Member

tsteur commented Oct 26, 2016

It is not possible yet indeed. It would be possible in a plugin with some effort but there are not really public / supported APIs for it to do it easily. If you are familiar with PHP you could develop a plugin that listens to a Piwik PHP event makeNewVisitObject. In this event you could probably leave the $visit untouched but set a goalId dynamically if the tracking request matches your conditions eg preg_match($_GET['e_c']...) && preg_match($_GET['e_a']...) then $_GET['idgoal'] = 10

@tsteur
Copy link
Member

tsteur commented Oct 26, 2016

Alternatively you can always trigger a goal manually in the JavaScript tracker see https://developer.piwik.org/guides/tracking-javascript-guide#manually-trigger-goal-conversions

@mattab
Copy link
Member

mattab commented Oct 17, 2018

A workaround is also to make event names (or categories, or actions), more specific, so that you can match them to Goals. So in your example:

(for example, event category contains 'fruit' and event action contains 'apple'.)

you could use category = 'fruit', action = 'fruit - apple'

@mattab mattab modified the milestones: Backlog (Help wanted), 3.8.0 Oct 17, 2018
@mattab mattab changed the title When adding a goal for sending an event, defining event with multiple conditions is not available When adding a goal triggered from an event, let me define events with AND conditions Oct 17, 2018
@mattab mattab modified the milestones: 3.9.0, 3.10.0 Mar 18, 2019
@mattab mattab added the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Mar 28, 2019
@mattab mattab added this to the Priority Backlog (Help wanted) milestone Mar 28, 2019
@phalox
Copy link

phalox commented Aug 20, 2020

Would love to have this one too. The current trigger is a little too basic...

@Clandboy
Copy link

It'll we a great improvement ! Anyone have a solution for this ?

@LeoniePhiline
Copy link

Is this planned for implementation at some point? Is there interest on the side of matomo?

@atom-box
Copy link

I am working on setting up Matomo to mirror what our client had in GA Universal.
I don't see how I can add multiple definitions for triggering a goal like I can in UA.
Please let me know if in fact this is the significant limitation.
Universal Analytics goals ... can have multiple conditions
image

(from a Matomo user)

@atom-box
Copy link

This github post is 5 years old - does Matomo plan to upgrade this capability to be in alignment with how Google UA was?

(from a Matomo user)

@mattab
Copy link
Member

mattab commented Dec 10, 2023

Lots more requests for this issue in

Had a customer today asking how they could easily setup a goal with multiple event values - "Is it not possible to easily add several conditions for an event, ie a CATEGORY + label + action? That seems basics and I cant figure out"

and

I'm surprised this is not implemented and that we have to do workarounds to make this work.

and

Yes, it would be much more useful if Event Category, Action, and Name could all be defined for a certain goal.

and

Currently, one can trigger a goal based solely on one characteristic of an event (category or name or . It could be great to give the possibility to do it with multiple event fields, like event category AND event name.

@mattab mattab added the c: Usability For issues that let users achieve a defined goal more effectively or efficiently. label Dec 10, 2023
@mattab mattab modified the milestones: 5.x.0 - Priority issues, 5.5.0 Dec 10, 2023
@mattab mattab added c: Onboarding For issues that make the experience of getting Matomo up and running better. c: Goals For bugs and features related to goals tracking & reporting. labels Dec 10, 2023
@mattab mattab modified the milestones: 5.5.0, 5.3.0 Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Goals For bugs and features related to goals tracking & reporting. c: Onboarding For issues that make the experience of getting Matomo up and running better. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

7 participants