Commit Graph

4 Commits

Author SHA1 Message Date
Dylan Martin
5478cb2bbc chore(flags): replace all instances of referring to the /decide endpoint with /flags instead (#11802)
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2025-06-12 09:41:14 -07:00
Robbie
699908a3b7 docs: Add posthog-js defaults to snippet examples (#11627)
* Add posthog-js defaults to snippet examples

* Add defaults to install-web too

* Add some more defaults

* feat: Add `<ph_posthog_js_defaults>` everywhere

Everywhere where we're initializing `<ph_project_api_key>` now also initializes `<ph_posthog_js_defaults>`. A follow-up pass is needed to update `pageview` docs letting people know we're tracking these automatically now

* refactor(): Remove `ph_posthog_js_defaults` where we're not initing lib from beggining

We'll only include the `defaults` suggestion in places where we're explaining HOW we initialize posthog. When we're talking about a non-correlated config, then we'll omit it. The same applies to `api_host`

* refactor: Stop using `history_change` in most places

Rather than suggesting `history_change`, let's instead suggest using our new `defaults` feature

* add a space

* change next.js note

* Ian's fixes

---------

Co-authored-by: Rafa Audibert <rafael@posthog.com>
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2025-05-31 11:49:02 +02:00
Ian Vanagas
34328c647b Docs: Revamp JavaScript Web (#10781)
Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>
2025-02-27 01:42:54 +00:00
Ian Vanagas
8088a6caa4 Tutorial: How to use PostHog in a web worker (#10173)
Co-authored-by: Bijan Boustani <bijan@posthog.com>
2024-12-20 18:25:40 +00:00