posthog-js icon indicating copy to clipboard operation
posthog-js copied to clipboard

Page View and Page leave events are still sent when capture_pageview and capture_pageleave are set to false in init in Javascript SDK

Open anthony-sherloq opened this issue 2 years ago • 2 comments

Env:

  1. React
  2. Posthog JS sdk version: 1.68.2
  3. node version 16.20.0

Steps to reproduce:

  1. call init with config: { api_host: API_HOST, debug: APP_ENV === 'development', capture_pageview: false, capture_pageleave: false, autocapture: false, },
  2. Monitor events in posthog console

anthony-sherloq avatar Jul 11 '23 13:07 anthony-sherloq

@anthony-sherloq @macobo Do we have any fixes for this issue? We're seeing the same issue as well with the same config shown above: capture_pageview: false, capture_pageleave: false, autocapture: false

navinpai avatar Apr 11 '24 08:04 navinpai

Experiencing the same thing.

"posthog-js": "^1.116.2"

SlawomirMazgaj avatar Apr 11 '24 09:04 SlawomirMazgaj