31 Commits

Author SHA1 Message Date
Edwin Lim
807c2cc77a posthog ips snippet (#13575)
* posthog ips snippet

* suggestions
2025-11-07 11:15:03 -05:00
Copilot
c6a7355e26 Add PostHogCaptureOnViewed component documentation to React SDK (#13435)
Co-authored-by: pauldambra <984817+pauldambra@users.noreply.github.com>
Co-authored-by: Edwin Lim <edwin@posthog.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2025-10-29 20:52:51 +00:00
Hugues Pouillot
0e57e7ee7f chore: update react docs (#13441) 2025-10-29 19:48:10 +01:00
Joe Martin
31326d8617 Create LLM Analytics product page (#11343)
* Base

* Update index.tsx

* Update index.tsx

* more

* Update index.tsx

* Remove beta tag from docs

* comparison

* Update index.tsx

* change

* adds testimonial

* adds testimonial

* Update index.tsx

* Update index.tsx

* adding bits

* test

* Update index.tsx

* add a draft internal case study

* retitling

* Update index.tsx

* Name change for product

* Revert "Name change for product"

This reverts commit d9904a23d680e0a94b487d217b982dffc948ed00.

* Apply suggestions from code review

Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>

* Update src/components/Product/LLMObservability/index.tsx

Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>

* Update src/components/Product/LLMObservability/index.tsx

Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>

* adds image

* remove remaining conflict

* updating docs links on product page

* renaming all components to llm analytics; remove beta from <Slider> roadmap

* adds free tier

* Update index.tsx

* Update index.tsx

* Adds to homepage slide

* chore(llma): change try it out link

* Remove beta label from homepage

* Update Slides.js

* Add to all products page

* fix llm analytics pricing, calculator, icon

* screenshots and copy

* copy tweaks

* og image

* seo

* fix team name

* hide questions

* two tiny tweaks

* Update index.tsx

---------

Co-authored-by: edwinyjlim <edwinyjlim@gmail.com>
Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>
Co-authored-by: Radu Raicea <radu@raicea.com>
Co-authored-by: pawel-cebula <pawel.c@posthog.com>
Co-authored-by: Cory Watilo <corywatilo@gmail.com>
Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2025-08-27 09:37:57 +00:00
Ian Vanagas
aca8500479 Docs: Update React install and capture (#12475) 2025-08-19 15:24:38 +01:00
Edwin Lim
bf45100ceb Mention reverse proxy in client-side quickstarts (#11896)
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2025-06-17 19:57:22 +00: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
Danilo Campos
340af32e3d Wizard: blog post, docs and agent-based onboarding (#11318)
* Add envoy blog post

* Move agent prompt snippet, add wizard docs, update menu

* Conversation starter for homepage prompt-based onboarding

* Suppress the homepage agent microdocs on mobile

* Protoype AI integration button/microdocs reveal

* Make wizard install a tab

* Get rid of that weird duplication

* See if that makes the blog show

* Update blog post with links, reuse existing snippet

* Steal this *AI* code

* Update contents/blog/envoy-wizard-llm-agent.md

Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>

* Riff on Andy's suggestions

* Blog tweak

* segueeeeee

* license

* Thief image

* tidier repo links

* Blog refinements

* One more

* Fix typos

* pull back on vibes

* polish

* PLEASE

* Add media

* blog tweaks

* Betas, really

* Update contents/docs/getting-started/_snippets/install.mdx

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

* "Install PostHog"

* Update contents/blog/envoy-wizard-llm-agent.mdx

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

* Update contents/blog/envoy-wizard-llm-agent.mdx

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

* Update contents/blog/envoy-wizard-llm-agent.mdx

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

* Further copy tweaks

* Conditionally append `--signup`

* Add additional wizard install tabs

* Add agent integration prompt to all supported frameworks

* Update contents/blog/envoy-wizard-llm-agent.mdx

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

* Copy tweaks

* Copy tweak, date update

* One more tweak

---------

Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>
Co-authored-by: PostHog <hey@posthog.com>
Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2025-05-06 14:41:11 +00:00
Danilo Campos
d1d632dd4a Add react agent prompt instructions (#11144) 2025-04-01 16:45:46 +00:00
MatyiFKBT
bc1d622770 fix: typo in react docs (#11015) 2025-03-21 16:36:54 +00:00
hamed
9aae2d9ee7 docs: update actions documentation links across multiple files (#10879)
* docs: update actions documentation links across multiple files

* docs: update documentation links to use relative paths
2025-03-07 19:02:23 +01: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
Dylan Martin
c5494a355c chore(flags): update docs to support new overrideFeatureFlags method (#10528) 2025-01-30 14:30:24 -05:00
Ian Vanagas
8428ce2948 Docs: Add new features to libraries (#10415) 2025-01-22 19:09:28 +00:00
Ian Vanagas
c4e7d453d5 Docs: Remove identified_only from snippets, clarify SDK event types (#10161) 2024-12-18 07:39:15 -08:00
Ian Vanagas
72e5d2c16b add person profile config (#8665) 2024-06-10 17:29:35 -07: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
Lior539
9d2359f08b Convert event and property names in docs to snake case (#6782)
* use snake case

* add property names

* comments
2023-09-22 09:33:36 +00:00
Ian Vanagas
45b2dcb811 Fix js flag override method name (#6691) 2023-09-11 07:41:17 -07:00
Ian Vanagas
926d6d2f9a 404 link fixes (#6666) 2023-09-05 15:16:46 -04:00
Lior539
8a3027b246 [Getting started][Feature flags] Add installation page (#6457)
* Add feature flags installation

Apply suggestions from code review

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

fix rust import

[Getting started][Feature flags] Add how to create feature flags page (#6464)

* How to create feature flags

* 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>

[Getting started][Feature flags] Add "add your code" page  (#6502)

* progress - backend code and mobiel code

* add react and react native

* add web

* added API code

* Apply suggestions from code review

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

* tweaks

* add sendFeatureFalgs

* [Getting started][Feature flags] Add local evaluation page (#6521)

* Add local evaluation

* tweaks

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* update group properties

---------

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

* [Getting started][Feature flags] Add client side bootstrapping page (#6522)

* Add client side bootstrapping

* Apply suggestions from code review

suggestions

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

* Apply suggestions from code review

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

---------

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

---------

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

delete unused pages + clean up (#6538)

[Getting started][Feature flags] Add how to test feature flags (#6547)

* delete unused pages + clean up

* add how to test your feature flag

* Apply suggestions from code review

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

* comments

* [Getting started][Feature flags] Update FAQ (#6563)

* Update Feature Flag FAQ - WIP

* tweak

* add advanced_disable_feature_flags_on_first_load

* Apply suggestions from code review

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

* Neil's suggestion

* [Getting started][Feature flags] Add cohort expansion, getAllFlags, and overriding server properties (#6561)

* add cohort expansion, getall flags

* Apply suggestions from code review

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

* Apply suggestions from code review

* Ians suggestion

---------

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

---------

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

---------

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

[Getting started][Feature flags] Clean up SDK docs (#6562)

* clean up sdk docs

* Neil suggestion

* Clean up - Rename manual pages to installation and add free/partial to feature flags (#6564)

* add whats free or not. Rename manual to installation

* no message

* andy's comments
2023-08-23 12:49:02 +00:00
Ben White
a2da385144 feat: Update react docs (#6540) 2023-08-18 17:45:43 +01:00
Lior539
50c32aa462 [Getting Started Docs][A/B test] Create Snippets from install docs (#6397)
* first commit

update icons

create separet install snippet

test comment out

comment out install web

test for Eli

progress

Add install to expeirments page

Apply suggestions from code review

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

* fix build

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2023-08-01 15:22:46 +01:00
Lior539
4f8d38e274 rename javascript library to browser javascript (#6198)
Apply suggestions from code review

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

Apply suggestions from code review

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

typocs

rename to js web

add callout

missing snippets
2023-07-06 11:07:57 +01:00
Lior539
c51053a0dd [Part 3] Update experiment docs: Add to SDK and update FAQ (#6189)
* add sdk code samples + tweak FAQ

rename experiment-feature-flag-name to experiment-feature-flag-key

Apply suggestions from code review

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

comments

Apply suggestions from code review

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

* manual ovverides

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2023-07-03 11:54:25 +01:00
Neil Kakkar
df604520dd Add option to customise analytics (#6169)
* Add option to customise analytics

* Update index.mdx

* Update index.mdx
2023-06-23 16:30:04 +01:00
Neil Kakkar
220e98b699 Create docs for react component for feature flags (#6043) 2023-06-02 11:08:37 +01:00
Luke Harries
9a5ee9ce59 adds check that posthog is initialized for non-typescript users (#5555) 2023-03-20 09:56:16 +00:00
Luke Harries
adea3e0a0f rename config to options (#5552) 2023-03-17 12:05:09 +00:00
Cory Watilo
06cf1a3fac Docs nav improvements (#5518)
* added user props image, fixed next urls

* updated docs submenu

* moved /sdks/* and /third-party/* to /libraries/*

* added integrations index page

* moved divider to right column (so it doesn't show when right column doesn't appear)

* relinked images

* updated footer links

* clean up start message

* relinked images

* comment out unused graphql query

* move "ingest historical data" to migrate section

* migrate to posthog icon

* added icons to docs dropdown

* just use the query

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2023-03-15 15:33:40 +00:00