Kevin Heis
688a274f1f
Remove CSRF check ( #29910 )
...
* Use color_mode for gating "sign up" button
* Remove csrf check
* Add `res.removeHeader('set-cookie')` to cache-control
* Update static-assets.js
* Remove package
* Remove tough-cookie
* Update cache-control.js
* Update cache-control.js
* Update cache-control.js
2022-08-15 19:28:42 +00:00
Peter Bengtsson
ef277d6640
Always call initializeEvents with a truthy csrfToken ( #29721 )
2022-08-08 12:10:00 -04:00
Kevin Heis
56aa9ea094
Move use session to its own hook file ( #29641 )
...
* Move use session to its own hook file
* Trying useSWR
* Try one hour html cache
* blah blah lint
* Update to include loading state
* Update components/hooks/useSession.ts
Co-authored-by: Peter Bengtsson <peterbe@github.com >
Co-authored-by: Peter Bengtsson <peterbe@github.com >
2022-08-05 14:47:10 +00:00
Kevin Heis
6dcfab6338
Move waitForSession into get-session so its with family (and we are… ( #29450 )
...
Move `waitForSession` into get-session so its with family (and we are less likely to forget about it)
2022-07-29 16:24:29 +00:00
Kevin Heis
9d0cb690a7
Let be the caller, so events doesnt 403 on the first call ( #29441 )
...
* Let be the caller, so events doesnt 403 on the first call
* Declare function
2022-07-28 19:51:32 +00:00
Kevin Heis
f79e1d2cb7
Fetch CSRF token over XHR (browser-side) ( #29337 )
...
* Client side csrf token grab
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Remove test refs to meta tag
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Fix some type issues
* Simplify api
* Update components/lib/get-session.ts
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-07-27 16:18:07 +00:00
Kevin Heis
bb3cb78dd1
Move events under api ( #29298 )
2022-07-26 18:00:58 +00:00
Grace Park
b16be00f3e
adding copy button click event ( #26074 )
2022-03-09 15:55:17 -08:00
Mike Surowiec
1d42bbebb3
catch sendBeacon failures and console.warn ( #24990 )
2022-02-03 16:26:52 +00:00
Kevin Heis
83804c7114
Create search result event ( #22307 )
...
* Create search result event
* Update Search.tsx
* actually send it
* remove comment
* Apply suggestions from code review
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com >
* add 'required' to schema
Co-authored-by: Peter Bengtsson <mail@peterbe.com >
Co-authored-by: Peter Bengtsson <peterbe@github.com >
2021-10-21 00:37:39 +00:00
Kevin Heis
12356c5bbb
More client routing fixes ( #21793 )
...
* More client routing fixes
* Update index.tsx
Co-authored-by: James M. Greene <JamesMGreene@github.com >
2021-09-29 16:08:31 -05:00
Kevin Heis
5fb28d1c9a
Skip tracking page events when searching ( #21726 )
...
* Skip tracking page events when searching
* Update events.ts
2021-09-27 13:46:36 +00:00
Kevin Heis
ceb2106cab
Update analytics to handle client side routing ( #21719 )
...
* Update analytics to handle client side routing
* Update events.ts
2021-09-24 17:21:52 +00:00
Kevin Heis
cdbbc63219
Send new analytics fields for path_language, path_version, path_product, path_article ( #21562 )
...
* Send new analytics fields for path_language, path_version, path_product, path_article
* Update DefaultLayout.tsx
* Update events.js
2021-09-17 19:22:54 +00:00
Kevin Heis
aef81ac477
Readd print tracking ( #21180 )
...
* Readd print button tracking
* Record all print events, not just button ones
2021-08-30 21:27:10 +00:00
Kevin Heis
4d0e9c70a3
Add new fields to analytics event context: status, page_type, page_document_type ( #21115 )
...
* Add new fields to analytics event context: status, page-type, page-document-type
* Update schema-event.js
* Typescript
* Add status meta to error pages
* Update DefaultLayout.tsx
* Update DefaultLayout.tsx
* Update building-and-testing-nodejs-or-python.tsx
2021-08-26 14:58:45 -07:00
Mike Surowiec
06d8f81401
Two-pane Experiment ( #21092 )
...
* pull changes from docs-playground
* cleanup, add callout banner
* cleanup linting and test fixes
* add discussion link
Co-authored-by: James M. Greene <JamesMGreene@github.com >
2021-08-26 14:19:40 -04:00
Mike Surowiec
c433c43019
Sidebar refactor: scope css + more ( #20837 )
...
* refactor sidebar, scope css, wire up nav events to link component, update tests
* remove link onClick analytics event
* fix: missing key on breadcrumbs
2021-08-12 15:28:32 -04:00
Robert Sese
6f6cf56c20
Add os preference tracking ( #20740 )
...
* Set cookie on os switch
* Set os based on cookie value
* Add os preference schema details
* Send os preference on page request
* Send os preference on os switch
2021-08-09 22:07:27 +00:00
Robert Sese
e387e79f16
Add color mode tracking ( #20608 )
...
* Add color_mode for event tracking
* Grab color_mode info from body and media queries
* Make color_mode schema more specific
* Get color mode preference in its own function
* Add 'auto' for potential future color modes
2021-08-02 22:21:00 +00:00
Grace Park
8ba413cabc
React Cleanup: Documentation ( #20517 )
...
* initial documentation changes
* editing layouts terminology
* update to match other files
* move javascripts to components/lib
* fix: dockerfile
* update based on Mikes updates to the javascripts directory
* update components/README.md
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com >
2021-07-27 09:07:18 -07:00