13 Commits

Author SHA1 Message Date
Hugues Pouillot
0e57e7ee7f chore: update react docs (#13441) 2025-10-29 19:48:10 +01: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
1c4abbafea Docs: Use history change basically everywhere (#11571)
Co-authored-by: Vincent (Wen Yu) Ge <29069505+gewenyu99@users.noreply.github.com>
Co-authored-by: Rafael Audibert <32079912+rafaeelaudibert@users.noreply.github.com>
Co-authored-by: PostHog <hey@posthog.com>
2025-05-23 15:03:43 -07:00
Ian Vanagas
c4855ab853 Tutorials: Remove create-react-app, replace with Vite (#10888)
* remove create-react-app

---------

Co-authored-by: Danilo Campos <danilo@posthog.com>
2025-03-10 21:46:27 +00:00
Rafael Audibert
1f5e9c6361 feat: Clarify how to track $pageleave on React-related frameworks (#10356)
Co-authored-by: PostHog <hey@posthog.com>
2025-01-15 18:52:12 +00:00
Ian Vanagas
c4e7d453d5 Docs: Remove identified_only from snippets, clarify SDK event types (#10161) 2024-12-18 07:39:15 -08:00
Andy Vandervell
fd483648a1 Newsletter form improvement (#9841)
* Newsletter form improvement

* Apply suggestions from code review

* Changing image and copy

* Image change

* Copy tweak

* Tweak

* Tweaks

* another try

* Apply suggestions from code review

Co-authored-by: Lior539 <lneuner@gmail.com>

* Update index.tsx

* Image tweak

* putting engineer post back

---------

Co-authored-by: Lior539 <lneuner@gmail.com>
2024-11-15 09:25:52 +00:00
Ian Vanagas
72e5d2c16b add person profile config (#8665) 2024-06-10 17:29:35 -07:00
Ben White
54c4f2f198 feat: New api hosts (#7996) 2024-04-22 13:08:09 +02:00
Lior539
e5f85d0de7 yotuube video for react analytics (#8093) 2024-03-21 09:12:31 +00:00
Eli Kinsey
eef8c6407c Move images to Cloudinary (#8024)
* featured images

* thumbnails

* remove hosthog

* images

* logos

* imports

* remove versions

* relative imports

* icons

* fix undefined vars

* fix import script

* kill images

* fix static images

* fix og creation

* remove quality option

* add absolutepath back

* wait for images

* date fixes

* remove scripts

* reduce network requests

* only generate OG images in prod

* simplify

* update docs

* add new images
2024-03-19 08:51:41 -07:00
Ian Vanagas
2adc79fa09 fix 404s (#7691) 2024-02-05 08:01:25 -08:00
Lior539
3a54807a0f Tutorial - React analytics (#7652)
* first draft

* fixes

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2024-01-31 08:45:45 +00:00