Skip to content

Edge case: page view and ecommerce conversion tracked in the same second create wrong visitEcommerceStatus #4909

@mattab

Description

@mattab

After staring at the code for two hours, then getting good debug data, I figured the bug: if a page view is tracked at the same second as an ecommerce order, this pageview request may erase the visitEcommerceStatus flag.

Explanation:

  1. the ecommerce order request is received
  2. at same time the pageview for the checkout page is tracked.
    This page view "reads" first the visit (which does not yet have "visitEcommerceStatus == ordered")
    1b) the ecommerce is recorded and "visitEcommerceStatus == ordered" is set
    2b) the pageview is recorded and "visitEcommerceStatus == none"

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions