Commit Graph
46 Commits
Author SHA1 Message Date
rustdesk 6fb9f561e7 fix term again 2026-09-17 00:04:51 +08:00
rustdeskandClaude Opus 5 e9fce7d458 web: load Google Analytics only after the visitor accepts it
Analytics.astro rendered <GoogleAnalytics> whenever config.yaml carried a
measurement id, so gtag ran and the _ga cookies were set on the first page
view, before the banner was answered and whatever the visitor went on to
choose. The analytics service in the consent config was never wired up to
anything -- its onAccept was a `// TODO: load ga4` -- so consent decided
nothing either way. The privacy policy says the opposite, that cookies are
used on the basis of consent given through the banner.

Analytics.astro now only defines window.loadGoogleAnalytics, and the ga4
service calls it from onAccept, so Google is first contacted after the visitor
accepts. Rejecting leaves the loader uncalled, and the library erases the _ga
cookies it already matches.

CookieConsent.astro skipped run() once its own localStorage flag was set,
which meant the library was not initialised on any later visit -- with the
loader moved behind consent that would have left analytics permanently dead
instead of permanently on, since re-applying a stored consent is what calls
onAccept. It now runs on every page load and lets the library decide whether
to show the banner.

Consent could also not be withdrawn: the preferences modal had no trigger
anywhere on the site, and the privacy policy offered browser settings instead,
which is not a withdrawal mechanism and is not as easy as giving consent was.
The footer now links to the modal and the policy points at it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab
2026-09-15 21:02:41 +08:00
rustdesk bc29d68890 more blogs 2026-07-09 11:16:29 +08:00
rustdesk 82afa32934 blog locale 2026-07-04 10:41:20 +08:00
rustdesk 3c66975ba8 fix style 2026-06-28 11:12:25 +08:00
rustdesk c686beed4e adjust price +20% 2026-06-28 10:50:28 +08:00
rustdesk 4a9c17e0f5 fix #custom2?years=2 2026-05-06 19:37:13 +08:00
rustdesk 90cd58340c fix params passing 2026-05-06 19:23:16 +08:00
rustdesk c3edf4b446 modify SEPA days 2026-04-30 13:30:19 +08:00
rustdesk 41b1bbf275 merge two dialogs to one, add sepa warning 2026-04-21 15:56:48 +08:00
rustdesk efc6384490 select currency 2026-04-17 22:53:01 +08:00
Pascal Brand f3006e0a1f swiper: use astro native component
Use astro native component for swiper capabilities.

Signed-off-by: Pascal Brand <pascal.brand38@gmail.com>
2026-03-25 18:08:10 +01:00
rustdesk 8a081dee3c seo/geo 2026-03-21 00:20:42 +08:00
rustdesk c5bb9c3c09 seo 2026-03-20 14:05:39 +08:00
rustdesk a4a1441699 SEO 2025-08-12 00:31:49 +08:00
rustdesk a58e37e5c8 better pricing page 2025-03-13 23:41:43 +08:00
rustdesk 3c5982721d new post 2025-02-19 00:56:14 +08:00
rustdesk 0fbad56b07 fix pricing 2025-02-14 11:19:10 +08:00
rustdesk ccbe64c0fc d3i 2024-11-16 11:01:29 +08:00
rustdesk 0d6cd1f125 wider blog 2024-11-06 11:22:39 +08:00
rustdesk 1883255064 fix pricing loading 2024-11-05 11:33:27 +08:00
rustdesk bf81c18bba fix more ar ko 2024-10-23 19:14:36 +08:00
rustdesk d41d515b15 add ko and ar 2024-10-22 17:06:21 +08:00
rustdesk f98238482e cookie translate 2024-10-22 16:05:30 +08:00
rustdesk 20951eb04f i18n 2024-10-22 14:54:10 +08:00
rustdesk fac81c48ef fix note hidden 2024-10-17 02:07:18 +08:00
rustdesk d7246c4bb4 more fix 2024-10-15 01:02:12 +08:00
rustdesk afdc36f199 fix cookie consent status 2024-10-15 00:50:19 +08:00
rustdesk 1708d85307 change blog slug 2024-10-12 20:09:36 +08:00
rustdesk 4de2059796 web client blog 2024-10-12 19:50:46 +08:00
rustdesk 3acb268f90 misc 2024-10-12 08:46:03 +08:00
rustdesk 2481a9f4b7 improve pricing 2024-10-12 08:39:09 +08:00
rustdesk bb083b1b34 improve announcement 2024-10-12 02:17:58 +08:00
rustdesk 7caadbd911 cancel and success page 2024-10-12 02:06:46 +08:00
rustdesk 0b733ca594 custom2 2024-10-12 01:43:25 +08:00
rustdesk 13b9da4121 cutomize ok 2024-10-12 00:45:00 +08:00
rustdesk de8097e17a pricing style looks good now 2024-10-11 22:02:17 +08:00
rustdesk 1eef06c9a4 scamming 2024-10-11 18:13:37 +08:00
rustdesk ec8e3854d0 Scamming banner 2024-10-11 18:01:46 +08:00
rustdesk 897ed91529 done about 2024-10-11 15:12:00 +08:00
rustdesk 082431f57e casourle 2024-10-11 14:33:16 +08:00
rustdesk 0425d544dd header 2024-10-10 23:09:22 +08:00
rustdesk 515f1eb519 index 2024-10-10 21:23:47 +08:00
rustdesk 6466c14cf5 hide cookie preferences tip 2024-09-18 15:28:30 +08:00
rustdesk 1225f99306 add vanilla-cookieconsent 2024-09-18 15:09:16 +08:00
rustdesk e7f46cdba8 initialize with https://github.com/onwidget/astrowind 2024-09-18 13:47:01 +08:00