You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a webpage tracks a page and then immediately tracks a goal (e.g., is Java present) then the cookie data will not be set when the server is recording the goal, so it won't know that there is a new visit occurring.
One solution is when recognizeTheVisitor is called and action is null (i.e., tracking goal) to force a search of the database if the cookie holds an old visit. Although this hits the database, it should only really be triggered in the bug case since goals generally happen during an already occurring visit.
The text was updated successfully, but these errors were encountered:
when the trackGoal is called after trackPageView, the update query may not affect any rows, but it can match one row. In the PHP doc:
When using UPDATE, MySQL will not update columns where the new value is the same as the old value. This creates the possibility that mysql_affected_rows() may not actually equal the number of rows matched, only the number of rows that were literally affected by the query.
possible solution:
Mysqli.php, insert new function:
public function rowMatch($queryResult) {
$info = mysqli_info($this->connection);
preg_match('/Rows matched: (\d*)/', $info, $matches);
return (int) $matches[1];
}
Rastatramp's fix (comment:4) should have been posted in #1107. While clarkf reports that this ticket is not the same as #1107, the root cause is the same. I'm marking this as a dupe of #1107, and re-opening that one.
Note: Not the same as #1107.
If a webpage tracks a page and then immediately tracks a goal (e.g., is Java present) then the cookie data will not be set when the server is recording the goal, so it won't know that there is a new visit occurring.
One solution is when recognizeTheVisitor is called and action is null (i.e., tracking goal) to force a search of the database if the cookie holds an old visit. Although this hits the database, it should only really be triggered in the bug case since goals generally happen during an already occurring visit.
The text was updated successfully, but these errors were encountered: