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

Goal conversion sometimes not tracked when a Goal matches event names/categories/actions #9923

Closed
PhilBuckley opened this issue Mar 14, 2016 · 6 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@PhilBuckley
Copy link

Hi all -

Thanks as always for the brilliant work on PIWIK.

As discussed with Matthieu on the support forum, I think there is a bug whereby goals I am setting to be fired when an event occurs are not being registered.

Context: we have an isomorphic application which gives JavaScript users an immersive experience as they go through the pages, while non-JS users go back to the server and refresh the page each time they click through. In order to track events accurately, we have an abstraction layer whereby both JS and non-JS users send events to a sort of 'events engine' on our server, which then fires an event over to PIWIK.

I don't know if this is the problem or just in the naming of events? Anyway - it's working totally beautifully in terms of sending events - in the PIWIK events section, sorted by category, we get great information like:

Event category
00.Departure country 17 events
01.Destination country 17 events

However, I would love to tie these events up to goals - but when I set up a goal eg:

GOAL NAME
Applicant chooses departure country
GOAL IS TRIGGERED WHEN
Send an event (Event Category) Pattern contains: 00.Departure country

I just can't get these goals to fire. I've tried what seems like every possible combination of 'pattern contains', 'exact match' etc.

If it will help, I will happily give you read access to our development site and development PIWIK instance so you can reproduce it.

With many thanks -

Phil

@tsteur
Copy link
Member

tsteur commented Mar 14, 2016

When you track an event normally, is an event category set and shown in the report afterwards?

The only thing that I can think of would be that eg already another goal was converted so it won't trigger this goal based on events. Could this be the case maybe?

Sure, access to development Piwik instance + server would be helpful to debug otherwise. Can you send us credentials to hello at piwik.org and leave a comment here afterwards so we can check spam folder etc?

@mattab
Copy link
Member

mattab commented Mar 31, 2016

Hi @PhilBuckley
would you be able to provide more info as per our previous comment? Thanks.

@mattab mattab added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Mar 31, 2016
@mattab mattab modified the milestones: 2.16.x (LTS), Mid term Mar 31, 2016
@PhilBuckley
Copy link
Author

Hi all- very sorry for the delay in responding to this.

I've emailed you a whole load of details and hopefully you will have an invitation to our PIWIK dashboard - if not, your user name will be piwik.

Thanks all, do contact me with any questions -

Phil

@tsteur
Copy link
Member

tsteur commented Apr 4, 2016

I had a look and I could reproduce it on your instance. Afterwards I tried to reproduce the same on my instance but couldn't reproduce it. When I attach the event information via e_c=...&e_a=... parameter to a normal tracking request the goal is triggered on your server as well. So it seems to only not work when the event is tracked via your "event engine" on your server. Do you think it is possible that you send me an example URL of such an event tracking request that is sent from your "event engine"?

Update: I had a further look through the code and I can imagine that likely the url tracking parameter is missing?

@PhilBuckley
Copy link
Author

Hi Thomas –

OK, thanks very much for this. It may take the team a little while to investigate this as they are in the middle of a different problem so I’ll alert you as soon as they get a chance to look at it. I’ll ask them to see if adding this URL parameter helps.

Best wishes –

Phil

Phil Buckley | Digital Transformation Manager
+44 207 008 0091| +44 7808 764882 | @philbuckley5https://twitter.com/philbuckley5

From: Thomas Steur [mailto:notifications@github.com]
Sent: 04 April 2016 11:26
To: piwik/piwik
Cc: Phil Buckley
Subject: Re: [piwik/piwik] Goals not being fired by events (#9923)

I had a look and I could reproduce it on your instance. Afterwards I tried to reproduce the same on my instance but couldn't reproduce it. When I attach the event information via e_c=...&e_a=... parameter to a normal tracking request the goal is triggered on your server as well. So it seems to only not work when the event is tracked via your "event engine" on your server. Do you think it is possible that you send me an example URL of such an event tracking request that is sent from your "event engine"?

Update: I had a further look through the code and I can imagine that likely the url tracking parameter is missing?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com//issues/9923#issuecomment-205232102

@tsteur
Copy link
Member

tsteur commented Apr 4, 2016

@mattab do you maybe know why the action URL is needed when a goal is converted here https://github.com/piwik/piwik/blob/2.16.0/core/Tracker/GoalManager.php#L192 ? I'm not sure if we just never adjusted this bit of code when adding events, or whether it is actually needed.

@mattab mattab self-assigned this Apr 4, 2016
@mattab mattab modified the milestones: 2.16.x (LTS), Mid term Apr 4, 2016
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Apr 4, 2016
@mattab mattab modified the milestones: 2.16.1, 2.16.x (LTS) Apr 7, 2016
@tsteur tsteur removed the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Apr 7, 2016
@mattab mattab modified the milestones: 2.16.2, 2.16.1 Apr 8, 2016
@mattab mattab changed the title Goals not being fired by events Goal conversion sometimes not tracked when a Goal matches event names/categories/actions Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants