Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

AricSu/aricsu.github.io

Repository files navigation

askaric

This is a React Router application generated with Create Fumadocs.

Run development server:

npm run dev
# or
pnpm dev
# or
yarn dev

Local preview

npm run build
npm run start:server # SSR (build/server)
npm run start:client # static prerender output (build/client)

Notes:

  • Static search uses build/client/search-index.json (generated at build time, includes CJK tokenizer), no server API required.

Google Analytics (GA4)

Set VITE_GA_MEASUREMENT_ID (example: G-XXXXXXXXXX) to enable GA4 pageview tracking (SPA navigations included).

Google Search Console

  • Set VITE_GSC_SITE_VERIFICATION to inject the google-site-verification meta tag.
  • GET /sitemap.xml and GET /robots.txt are available for Search Console discovery.

Tip: start from askaric/.env.example.

Analytics events

Events are sent via GA4 gtag() when VITE_GA_MEASUREMENT_ID is configured.

  • cta_clicked: add data-analytics-event="cta_clicked" and optional data-analytics-location="..." on a clickable element.
  • site_search: auto-tracked when the client calls /api/search/*?query=... (includes results_count when available).
  • file_downloaded: auto-tracked for <a download> or links ending with common archive/binary extensions.
  • outbound_link_clicked: auto-tracked for links pointing to a different origin.

About

Aric's personal website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /