Commit Graph

10 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
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
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
Lior539
bf5ad354e8 Remove "with PostHog" (#7565) 2024-01-21 21:56:16 +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
aea62171e3 add videos to tutorials and blogs (#6167)
* add videos to tutorials and blogs
2023-06-23 07:54:08 -07:00
Ian Vanagas
381649dd02 Docs: Update Next.js content with app router (#5981)
* nextjs app router

---------

Co-authored-by: Lior539 <lneuner@gmail.com>
2023-05-18 11:43:23 -07:00
Ian Vanagas
128f5bf2c1 Tutorial - How to track scroll depth (#5739)
* scroll depth

Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>
2023-04-14 09:02:00 -07:00