Skip to content

I disable the autocapture but there is still page leave events sent #532

Description

@fahmifan

I disable the autocapture but there is still page leave events sent, here is my config

mixpanel.init(import.meta.env.VITE_MIXPANEL_PROJECT_TOKEN, {
    debug: false
    autocapture: false,
    track_pageview: false,
    record_sessions_percent: 0,
    record_heatmap_data: true,
})

my mixpanel version

"mixpanel-browser": "^2.71.0"

Here is screenshot from network devtools

Image

I check a bit, and looks like this line here?
If I enable record_heatmap_data it auto send the page_leave event as well

https://github.com/mixpanel/mixpanel-js/blob/master/src/autocapture/index.js#L538

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions