diff --git a/content/download/releases/v9-2-1.md b/content/download/releases/v9-2-1.md new file mode 100644 index 00000000..f1cb01fa --- /dev/null +++ b/content/download/releases/v9-2-1.md @@ -0,0 +1,31 @@ +--- +title: "9.2.1" +date: 2026-11-26 +extra: + tag: "9.2.1" + artifact_source: https://download.valkey.io/releases/ + artifact_fname: "valkey" + container_registry: + - + name: "Docker Hub" + link: https://hub.docker.com/r/valkey/valkey/ + id: "valkey/valkey" + tags: + - "9.2.1" + - "9.2.1-trixie" + - "9.2.1-alpine" + - "9.2.1-alpine3.24" + packages: [] + + artifacts: + - distro: jammy + arch: + - arm64 + - x86_64 + - distro: noble + arch: + - arm64 + - x86_64 +--- + +Valkey 9.2.1 Release diff --git a/content/try-valkey/_index.md b/content/try-valkey/_index.md index 8434353b..c12ef0ed 100644 --- a/content/try-valkey/_index.md +++ b/content/try-valkey/_index.md @@ -2,9 +2,9 @@ title = "Try Valkey" template = "valkey-try-me.html" [extra] -state_file = "https://download.valkey.io/try-me-valkey/9.2.0/states/state.bin.gz" -filesystem_base_url = "https://download.valkey.io/try-me-valkey/9.2.0/fs/alpine-rootfs-flat" -filesystem_base_fs = "https://download.valkey.io/try-me-valkey/9.2.0/fs/alpine-fs.json" +state_file = "https://download.valkey.io/try-me-valkey/9.2.1/states/state.bin.gz" +filesystem_base_url = "https://download.valkey.io/try-me-valkey/9.2.1/fs/alpine-rootfs-flat" +filesystem_base_fs = "https://download.valkey.io/try-me-valkey/9.2.1/fs/alpine-fs.json" +++ diff --git a/static/assets/js/search.js b/static/assets/js/search.js index c52b1622..f322733f 100644 --- a/static/assets/js/search.js +++ b/static/assets/js/search.js @@ -38,9 +38,45 @@ function setUpInstance(name) { const instance = window.PagefindComponents.getInstanceManager().getInstance(name); addBreadcrumbsToResults(instance); putExactTitleMatchesFirst(instance); + trackSearches(instance, name === 'page' ? 'page' : 'modal'); return instance; } +// Pushes each search to Google Tag Manager's data layer as a "search" event: the query +// (search_term), how many results match it (search_results, 0 for a miss), and where it was +// searched (search_location, "modal" or "page"). Pagefind's results come after 's +// debounce, so this counts searches once typing pauses rather than every key, and the same query +// isn't counted twice in a row. +// +// Pagefind matches loosely, so even a made-up word returns a few results, scoring about 0.001. +// Only results scoring at least MIN_MATCH_SCORE count as matches. Real searches, typos included, +// score 2 or more, so a search whose results all score below it is a miss. +// +// The site loads Google Analytics through the Linux Foundation's Tag Manager container, so the +// event only reaches Analytics through a Custom Event trigger for "search" and a GA4 event tag set +// up there. Analytics runs only if the visitor's consent allows it, through the site's consent +// manager. Queries that look like an email address aren't sent, since search boxes sometimes get +// personal details pasted into them. +const MIN_MATCH_SCORE = 0.1; +const MAX_TRACKED_SEARCH_LENGTH = 100; +const EMAIL_PATTERN = /[^\s@]+@[^\s@]+\.[^\s@]+/; + +function trackSearches(instance, location) { + let lastTrackedTerm = null; + instance.on('results', function(searchResult) { + const term = (instance.searchTerm || '').trim(); + if (!term || term === lastTrackedTerm || EMAIL_PATTERN.test(term)) return; + lastTrackedTerm = term; + window.dataLayer = window.dataLayer || []; + window.dataLayer.push({ + event: 'search', + search_term: term.slice(0, MAX_TRACKED_SEARCH_LENGTH), + search_results: searchResult.results.filter(function(result) { return result.score >= MIN_MATCH_SCORE; }).length, + search_location: location, + }); + }); +} + // The search page, templates/search.html. /search/?q= searches for , and q follows // what's typed, so the address can be shared. Pagefind's search event comes after // stops for its debounce, so the address changes once typing pauses, not on every key.