Commit Graph

20 Commits

Author SHA1 Message Date
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
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
David Newell
c94181ae63 chore: update snippets to use anonymous crossorigin (#9652) 2024-10-17 15:50:07 +01:00
Juraj Majerik
b6005c3cc9 chore(surveys): update JS snippet with getNextSurveyStep (#8765) 2024-06-21 10:35:12 +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
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
Manoel Aranda Neto
c419211b10 fix: code snippets for node and rn v3 and v4 (#8068) 2024-03-18 14:29:43 +00:00
Lior539
2a1a956db3 Tutorial - Node A/B tests (#7673)
* first draft

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

* Apply suggestions from code review

---------

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
2024-02-02 08:54:59 +00:00
Eli Kinsey
a3f7594846 Refactor posts section (#6695)
* refactor posts section

* add mobile nav

* index views

* filtering fixes

* lazy load index pages / menu fixes

* hide mobile nav

* more index views

* missing images

* wide mode (broken)

* comment out wide mode code

* categories column: better overflow-y on short viewports

* tooltip to explain why we organize content the way we do

* stylin's

* dialing in posts max-width and wide mode

* wide mode and not wide mode tweaks

* link post title

* match postcard changes in customers view

* customers sizing

* icon color fix

* space between post title and metadata in list view

* don't block text with graphic

* add excerpts to client posts

* Show correct active subnav tab for each section

* prevent list from shifting

* like buttons next to title

* only show post type on /posts

* show and link authors

* fix open menu items

* add back to posts button

* add filter by crosspost

* Content Hub Reorg

* load more button

* index new categories/build fix

* add redirects

* update index pages

* post schema/strapi sync auto tag and category creation/manual menus/crosspost filtering/rip sticky sidebar

* Updating posts sidebar

* Tutorials tags

* re-implemented sticky sidebar

* cleanup

* case when there's no featured image (or video)

* removed all tutorial banners

* more tutorial banner deletion

* Tidying up blog tagging

* add "all" pages

* Fixing some tags

* Blog category redirects

* Remove newsletter tag from old newsletters

* Moving paid ads blog post

* Newsletters

* Fix redirect loop

* fixed some syntax errors

* build fix

* cleanup

* added icons to tutorials categories

* sidebar filters

* styled post sidebar (wip)

* scope communitybar

* vertical dividing lines

* updated icons pkg

* colored icons

* wide mode index view

* wide mode comments

* had my way with the posts view... 👀

* applying general layout to customer stories, tutorials, clientpost templates

* post type icons

* category dropdown icons

* polish

* use prod api host

* spacing

* cleanup

* client post padding, wide mode support

* spacing

* remove breadcrumb, replace with simple message about posts hub

* padding

* image background for transparent pngs

* force reload to see landing page views

* reluctantly fix hilarious image issue

* Moving post back into blog folder

* Redirect fixes

* Redirects

* Redirecting blog categories to new paths

* Tweaks to blog sidebar + redirects

* menus / upvote  button

* footer links

* active internal menus / nav fixes

---------

Co-authored-by: Cory Watilo <cww@watilo.com>
Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>
2023-10-23 09:10:32 -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
4c8abff3fc update JS snippet in content (#6168)
* update JS snippet
2023-06-23 07:53:44 -07:00
Joe Martin
e3a1d6c32e Shuffling the featured tutorials (#5908)
* Shuffling the featured tutorials

* Ch-ch-ch-changes

* Image update
2023-05-09 15:59:33 +01:00
Ian Vanagas
96e0b983ab Add more YouTube video links (#5710)
* Add YouTube video links to tutorials, blogs
2023-04-12 07:54:20 -07:00
Eli Kinsey
18e22194c9 topics -> tags / documentation (#5634) 2023-04-04 14:07:58 -04:00
Ian Vanagas
71b637fe3f fixes to node tutorial (#5290) 2023-02-14 05:50:10 +00:00
Joe Martin
9a5d70caf8 Tutorial updates (#5203) 2023-02-02 12:56:59 +00:00
Cory Watilo
7139ab83f3 update tutorial posters (#5080) 2023-01-14 10:15:23 -08:00
Ian Vanagas
ed5c729d4b Tutorial: How to set up Node.js (Express) analytics, feature flags, and more. (#5009)
* node express tutorial

* fix titles
2023-01-10 10:09:41 -08:00