Ticket #1107 (closed Bug: fixed)
Tracker: consecutive goal conversions from same visitor create new visit
| Reported by: | clarkf | Owned by: | matt |
|---|---|---|---|
| Priority: | normal | Milestone: | Feature requests |
| Component: | Core | Keywords: | |
| Cc: | Sensitive: | no |
Description
The handleKnownVisit function in core/tracker/visit.php has a check which fall back to a new visit if no rows were changed in the database update, treating it as if the visit information was bogus and the visit wasn't in the database.
The problem is that if two visits from the same visitor happen within the same second, it can result in no change to the database even though the record is present (because we only have second resolution on the action times).
Solution might be to use getInfo on the result rather than getAffectRows since getInfo reports both the # of rows that matched and # of rows that were changed.
FYI, this doesn't happen all that often, but if you are tracking a goal which occurs early in the visit (e.g., java installed) then it will happen every time and result in copious new visits and visitors.
