2 goal conversions in the same second, or a page view and goal in same second results in one request being ignored
|Reported by:||OS1||Owned by:|
|Priority:||normal||Milestone:||1.5.1 Piwik 1.5.1|
We have a number of sites feeding into two shop sites. The WorldPay callback scripts are on just one of these shop sites. We want to be track visitors from specific landing pages with the goal set as a WorldPay callback with SUCCESS is a conversion.
Here is the code we use in the WorldPay callback script:
-- Piwik Tracking API init --
PiwikTracker::$URL = 'http://oursite.com/piwik';
$piwikTracker = new PiwikTracker(1);
You can manually set the visitor details (resolution, time, plugins, etc.)
See all other ->set* functions available in the PiwikTracker.php file
Mandatory: set the URL being tracked
Sends Tracker request via http
$piwikTracker->doTrackPageView('Oursite.com Post Worldpay');
You can also track Goal conversions
The call to doTrackPageView(...) appears to be working. The call to doTrackGoal(...) does not. Goal ID 3 is defined as a "manually" goal. We have other "when visitors" goals and these appear to update correctly.
I have loaded the code into NetBeans and with the PHP debugger I can see it going to PiwikTracker::sendRequest(...) but it never seems to get to core/Tracker/GoalManager.php nor plugins/Goals/ except when in the admin pages.
I have configured Piwik to output debug information to a file and I can see lines like:
INSERT IGNORE INTO piwik_log_conversion (idvisit, idsite, idvisitor, server_time, location_country, location_continent, visitor_returning, visitor_days_since_first, visitor_days_since_order, visitor_count_visits, referer_type, referer_name, referer_keyword, referer_visit_server_date, idgoal, url, revenue, idaction_url, idlink_va, buster) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?).
In 14 attempts goal 3 was only recorded twice in piwik_log_conversion, all the "when visitors" goals have 14 entries.
All goals are currently "Allow Goal to be converted more than once per visit"
How does it manage to INSERT INTO piwik_log_conversion when apparently it doesn't execute any code that actually does this. I've found the message dispatcher but not the message handler!
Change History (20)
Changed 3 years ago by OS1
Changed 3 years ago by OS1
comment:15 Changed 3 years ago by matt (mattab)
- Resolution set to wontfix
- Status changed from new to closed
comment:17 Changed 3 years ago by matt (mattab)
- Resolution wontfix deleted
- Status changed from closed to reopened
- Summary changed from Manual goals don't get updated to 2 goal conversions in the same second, or a page view and goal in same second results in one request being ignored