Commit Graph

28 Commits

Author SHA1 Message Date
Ian Vanagas
235c239a4e Tutorials: Swap Next.js app and pages router tutorials (#12464)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-08-15 09:46:56 +00:00
Ian Vanagas
ad7686e318 Tutorials: Update Next.js pages router (#12442)
Co-authored-by: Vincent (Wen Yu) Ge <29069505+gewenyu99@users.noreply.github.com>
2025-08-14 09:01:31 +01:00
Malte Bär
0c4ab39dea Docs: Update and fix links for group analytics and experiments in Next.js tutorial (#11879) 2025-06-16 20:35:33 +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
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
d20ba40ed4 update nextjs pages router (#9734)
Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2024-10-25 13:10:30 +01:00
Ian Vanagas
861e19c809 spa pageviews tutorial update (#8694) 2024-06-14 07:43:22 -07:00
Ian Vanagas
72e5d2c16b add person profile config (#8665) 2024-06-10 17:29:35 -07:00
Ian Vanagas
fb58328acc use correct api hosts (#8417) 2024-05-07 08:17:39 -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
Abhishek Ajithkumar
3da2b02426 docs: fix typo in nextjs-analytics.md (#8035) 2024-03-18 10:36:21 +00:00
Ian Vanagas
8248131b55 Next.js Typescript and tutorial fixes (#7718) 2024-02-06 12:12:01 -08:00
Ian Vanagas
6e51c0f554 Nextjs app directory renamed to app router (#7216) 2023-11-27 07:56:54 -08: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
Ian Vanagas
5c45bafbab clarify reset in Next.js tutorial (#6939) 2023-10-13 08:22:01 -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
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
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
Ian Vanagas
c652e79c85 Next.js debug instead of opt out (#5711) 2023-04-11 13:07:37 -07:00
Eli Kinsey
18e22194c9 topics -> tags / documentation (#5634) 2023-04-04 14:07:58 -04:00
Ian Vanagas
ed29fa17eb nextjs tutorial fixes (#5477) 2023-03-09 20:59:27 +00:00
Ian Vanagas
5d02b483a7 Docs - React/Next.js fixes (#5412)
* react next fixes

Co-authored-by: Luke Harries <lharries@users.noreply.github.com>
2023-03-02 10:13:10 -08:00
Luke Harries
359426e9b8 feat: React docs (#5399)
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Paul Hultgren <pjhultgren5@gmail.com>
2023-03-01 20:19:21 +00:00
Ian Vanagas
f200aa2237 Tutorial - How to set up Next.js analytics, feature flags, and more (#5337)
* nextjs analytics

Co-authored-by: Joe Martin <84011561+joethreepwood@users.noreply.github.com>
2023-02-23 13:59:51 -08:00