Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ server-side processing, authentication, confidential inputs, durable writes,
or an independent compliance boundary belongs in a separate repository and
hosted service, with a catalog link from this site.

## Website analytics

The public pages load `assets/analytics-consent.js` and
`assets/analytics-consent.css`. The Google Analytics 4 tag for the QED-AI
Website property (`G-B7RCEWCGDY`) loads only after a visitor allows analytics.
The privacy notice lives at `/privacy/`, and the footer offers a persistent
Privacy choices control. New pages must include both shared assets and a
visible link to that notice. Advertising consent remains denied. The web
stream has Enhanced Measurement on, with Site Search off; its data-redaction
settings redact the glossary's `q` and `rq` URL query values. Keep the stream
settings and privacy notice aligned if the site's search or measurement
behavior changes.

## Visual system

Every public page loads `assets/styles.css`, which imports the shared cool-color
Expand Down
4 changes: 3 additions & 1 deletion apps/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<meta property="og:url" content="https://qedartifacts.org/apps/">
<link rel="canonical" href="https://qedartifacts.org/apps/">
<link rel="stylesheet" href="../assets/styles.css">
<link rel="stylesheet" href="../assets/analytics-consent.css">
<link rel="stylesheet" href="shared/catalog.css">
<script src="../assets/analytics-consent.js" defer></script>
<script src="shared/catalog.js" defer></script>
</head>
<body>
Expand Down Expand Up @@ -51,7 +53,7 @@ <h1>Open tools with visible boundaries.</h1>
<footer>
<a class="brand footer-brand" href="../"><span class="brand-mark">QED<span>AI</span></span></a>
<p>Quality Evaluation and Disposition Artifacts Institute<br>Virginia nonstock corporation</p>
<div><a href="../">Home</a><a href="../#transparency">Transparency</a><a href="../#contact">Contact</a></div>
<div><a href="../">Home</a><a href="../#transparency">Transparency</a><a href="../#contact">Contact</a><a href="../privacy/">Privacy</a></div>
</footer>
</body>
</html>
59 changes: 59 additions & 0 deletions assets/analytics-consent.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.analytics-choice[hidden] { display: none; }
.analytics-choice {
position: fixed;
z-index: 1000;
right: 1rem;
bottom: 1rem;
left: 1rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
max-width: 74rem;
margin: 0 auto;
padding: 1.1rem 1.3rem;
border: 1px solid var(--line, #cbd7da);
background: var(--white, #fff);
box-shadow: 0 12px 40px #10283733;
color: var(--ink, #172936);
font: 1rem/1.5 var(--sans, Arial, sans-serif);
}
.analytics-choice-copy { max-width: 48rem; }
.analytics-choice-copy strong { display: block; margin-bottom: .2rem; }
.analytics-choice-copy p { margin: 0; font-size: .88rem; }
.analytics-choice-copy a { color: var(--accent, #176b91); text-decoration: underline; }
.analytics-choice-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.analytics-choice-actions button {
min-height: 2.75rem;
padding: .45rem .9rem;
border: 1px solid var(--surface-deep, #173546);
background: var(--white, #fff);
color: var(--surface-deep, #173546);
font: inherit;
font-size: .85rem;
font-weight: 700;
cursor: pointer;
}
.analytics-choice-actions button[data-analytics-choice="allow"] {
background: var(--surface-deep, #173546);
color: var(--white, #fff);
}
.analytics-choice button:focus-visible,
.analytics-preferences:focus-visible { outline: 3px solid var(--accent-bright, #81c7e2); outline-offset: 2px; }
footer .analytics-preferences {
padding: 0;
border: 0;
background: none;
color: inherit;
font: inherit;
font-size: .77rem;
font-weight: 700;
letter-spacing: .03em;
cursor: pointer;
}
footer .analytics-preferences:hover { color: var(--accent-bright, #81c7e2); }
footer div { flex-wrap: wrap; }
@media (max-width: 680px) {
.analytics-choice { display: block; max-height: min(75vh, 35rem); overflow-y: auto; }
.analytics-choice-actions { margin-top: .9rem; }
}
120 changes: 120 additions & 0 deletions assets/analytics-consent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
/* Basic consent mode: the Google tag is not requested until a visitor opts in. */
(() => {
'use strict';

const measurementId = 'G-B7RCEWCGDY';
const choiceKey = 'qed-ai-analytics-choice-v1';
const choices = new Set(['allow', 'decline']);
let tagLoaded = false;

function readChoice() {
try {
const value = localStorage.getItem(choiceKey);
return choices.has(value) ? value : null;
} catch {
return null;
}
}

function saveChoice(value) {
try {
localStorage.setItem(choiceKey, value);
} catch {
// Storage can be unavailable; the choice still applies to this page.
}
}

function clearAnalyticsCookies() {
const names = document.cookie.split(';').map(part => part.trim().split('=')[0]);
const host = location.hostname;
const domains = ['', host, `.${host}`, '.qedartifacts.org'];
for (const name of names) {
if (name !== '_ga' && !name.startsWith('_ga_')) continue;
for (const domain of domains) {
document.cookie = `${name}=; Max-Age=0; path=/; SameSite=Lax${domain ? `; domain=${domain}` : ''}`;
}
}
}

function loadAnalytics() {
if (tagLoaded) return;
tagLoaded = true;
window.dataLayer = window.dataLayer || [];
window.gtag = function gtag() { window.dataLayer.push(arguments); };
window.gtag('consent', 'default', {
analytics_storage: 'denied',
ad_storage: 'denied',
ad_user_data: 'denied',
ad_personalization: 'denied'
});
window.gtag('consent', 'update', { analytics_storage: 'granted' });
window.gtag('js', new Date());
window.gtag('config', measurementId, {
allow_google_signals: false,
allow_ad_personalization_signals: false
});
const tag = document.createElement('script');
tag.async = true;
tag.src = `https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(measurementId)}`;
document.head.append(tag);
}

const panel = document.createElement('section');
panel.className = 'analytics-choice';
panel.setAttribute('role', 'region');
panel.setAttribute('aria-label', 'Analytics choice');
panel.hidden = true;
panel.innerHTML = `
<div class="analytics-choice-copy">
<strong>Help us understand how this site is used?</strong>
<p>With your permission, Google Analytics measures visits and interactions, including enhanced events such as scrolls and outbound clicks. You can decline or change your choice later. <a href="/privacy/">Read our privacy notice</a>.</p>
</div>
<div class="analytics-choice-actions">
<button type="button" data-analytics-choice="decline">Decline</button>
<button type="button" data-analytics-choice="allow">Allow analytics</button>
</div>`;

function showChoice() {
panel.hidden = false;
panel.querySelector('[data-analytics-choice="decline"]').focus();
}

function choose(value) {
saveChoice(value);
panel.hidden = true;
if (value === 'allow') {
if (tagLoaded) {
window[`ga-disable-${measurementId}`] = false;
window.gtag('consent', 'update', { analytics_storage: 'granted' });
window.gtag('config', measurementId);
} else {
loadAnalytics();
}
} else if (tagLoaded) {
window[`ga-disable-${measurementId}`] = true;
window.gtag('consent', 'update', { analytics_storage: 'denied' });
clearAnalyticsCookies();
}
}

panel.addEventListener('click', event => {
const choice = event.target.closest('[data-analytics-choice]')?.dataset.analyticsChoice;
if (choices.has(choice)) choose(choice);
});
document.body.append(panel);

document.querySelectorAll('footer div').forEach(links => {
const button = document.createElement('button');
button.type = 'button';
button.className = 'analytics-preferences';
button.textContent = 'Privacy choices';
button.addEventListener('click', showChoice);
links.append(button);
});
document.querySelectorAll('[data-analytics-preferences]').forEach(button => {
button.addEventListener('click', showChoice);
});

if (readChoice() === 'allow') loadAnalytics();
else if (!readChoice()) panel.hidden = false;
})();
4 changes: 3 additions & 1 deletion dictionary/glossary/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<meta name="description" content="Released, concise Dictionary of Quality glossary entries. Browse exact public versions compiled from the tagged glossary collection.">
<link rel="canonical" href="https://qedartifacts.org/dictionary/glossary/">
<link rel="stylesheet" href="../../assets/styles.css">
<link rel="stylesheet" href="../../assets/analytics-consent.css">
<link rel="stylesheet" href="styles.css">
<script src="../../assets/analytics-consent.js" defer></script>
<script src="constellation.js" defer></script>
<script src="search.js" defer></script>
</head>
Expand Down Expand Up @@ -11043,6 +11045,6 @@
</details></div>
<p class="empty" id="no-results" hidden>No released entries match this search.</p>
</main>
<footer><p>QED Artifacts Institute · Dictionary of Quality</p><div><a href="https://github.com/qed-artifacts/dictionary-of-quality-content/tree/glossary-design-science-research-citation-free-d22ab2570e1db729eb8cfec0">Public object collection</a><a href="/">Home</a></div></footer>
<footer><p>QED Artifacts Institute · Dictionary of Quality</p><div><a href="https://github.com/qed-artifacts/dictionary-of-quality-content/tree/glossary-design-science-research-citation-free-d22ab2570e1db729eb8cfec0">Public object collection</a><a href="/">Home</a><a href="/privacy/">Privacy</a></div></footer>
</body>
</html>
4 changes: 3 additions & 1 deletion dictionary/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<title>Dictionary of Quality | QED Artifacts Institute</title>
<meta name="description" content="Released glossary objects and Dictionary of Quality publication status">
<link rel="stylesheet" href="../assets/styles.css">
<link rel="stylesheet" href="../assets/analytics-consent.css">
<script src="../assets/analytics-consent.js" defer></script>
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
Expand All @@ -26,6 +28,6 @@ <h1>Terms for clearer judgments.</h1>
</section>
<p class="dictionary-status">Full Dictionary articles are being prepared and reviewed for later release.</p>
</main>
<footer><a class="brand" href="/"><span class="brand-mark">QED<span>AI</span></span></a><p>QED Artifacts Institute</p><div><a href="/dictionary/glossary/">Glossary</a><a href="/apps/">Tools</a></div></footer>
<footer><a class="brand" href="/"><span class="brand-mark">QED<span>AI</span></span></a><p>QED Artifacts Institute</p><div><a href="/dictionary/glossary/">Glossary</a><a href="/apps/">Tools</a><a href="/privacy/">Privacy</a></div></footer>
</body>
</html>
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<meta property="og:url" content="https://qedartifacts.org/">
<link rel="canonical" href="https://qedartifacts.org/">
<link rel="stylesheet" href="assets/styles.css">
<link rel="stylesheet" href="assets/analytics-consent.css">
<script src="assets/analytics-consent.js" defer></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
Expand Down Expand Up @@ -139,7 +141,7 @@ <h1>From evidence<br>to warranted action.</h1>
<footer>
<a class="brand footer-brand" href="#top"><span class="brand-mark">QED<span>AI</span></span></a>
<p>Quality Evaluation and Disposition Artifacts Institute<br>Virginia nonstock corporation · IRS-recognized 501(c)(3) public charity</p>
<div><a href="dictionary/">Dictionary</a><a href="apps/">Tools</a><a href="#transparency">Transparency</a><a href="#governance">Governance</a><a href="#contact">Contact</a></div>
<div><a href="dictionary/">Dictionary</a><a href="apps/">Tools</a><a href="#transparency">Transparency</a><a href="#governance">Governance</a><a href="#contact">Contact</a><a href="privacy/">Privacy</a></div>
</footer>
</body>
</html>
37 changes: 37 additions & 0 deletions privacy/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#173546">
<title>Privacy | QED Artifacts Institute</title>
<meta name="description" content="How QED Artifacts Institute handles website analytics and visitor choices.">
<link rel="canonical" href="https://qedartifacts.org/privacy/">
<link rel="stylesheet" href="../assets/styles.css">
<link rel="stylesheet" href="../assets/analytics-consent.css">
<script src="../assets/analytics-consent.js" defer></script>
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<header class="site-header">
<a class="brand" href="/" aria-label="QED Artifacts Institute home"><span class="brand-mark">QED<span>AI</span></span><span class="brand-name">Artifacts Institute</span></a>
<nav aria-label="Primary navigation"><a href="/">Home</a><a href="/dictionary/">Dictionary</a><a href="/apps/">Tools</a></nav>
</header>
<main id="main" class="section" style="display:block;max-width:900px;min-height:65vh">
<p class="eyebrow">Website notice · December 3, 2026</p>
<h1 style="font-size:clamp(3rem,8vw,5rem);line-height:1">Privacy</h1>
<div class="prose">
<p>QED Artifacts Institute uses Google Analytics 4 on this public website only after you choose <strong>Allow analytics</strong>. If you decline, this site does not load the Google Analytics tag.</p>
<h2 style="font-size:2rem">What we measure</h2>
<p>With permission, Google Analytics records page visits and supported interactions. Enhanced Measurement is enabled for scrolls, outbound-link clicks, video engagement, file downloads, and form interactions where those features exist. The site-search event is off, and glossary search query values are redacted from URLs before Analytics receives them. Google may use cookies and similar browser identifiers for this measurement. We use the resulting reports to understand and improve the website. We do not use this tag for advertising or ad personalization.</p>
<p>Google explains <a href="https://policies.google.com/technologies/partner-sites">how it processes information from sites that use its services</a>. The website's hosting provider also processes ordinary connection data needed to deliver pages. Links to external services lead to those services' own privacy practices.</p>
<h2 style="font-size:2rem">Your choice</h2>
<p>Choose Allow analytics or Decline when prompted. Your choice is saved in this browser's local storage. You can change it using the <strong>Privacy choices</strong> control in the footer. If you withdraw permission, the site stops loading Analytics on subsequent pages and attempts to remove its first-party Analytics cookies in this browser. You can also clear site data in your browser.</p>
<p><button type="button" class="button" data-analytics-preferences>Change privacy choices</button></p>
<h2 style="font-size:2rem">Questions</h2>
<p>Contact <a href="mailto:contact@qedartifacts.org">contact@qedartifacts.org</a> about this notice or this website's data practices.</p>
</div>
</main>
<footer><a class="brand" href="/"><span class="brand-mark">QED<span>AI</span></span></a><p>QED Artifacts Institute</p><div><a href="/">Home</a><a href="/privacy/" aria-current="page">Privacy</a></div></footer>
</body>
</html>
4 changes: 3 additions & 1 deletion scripts/build-glossary-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ const html = `<!doctype html>
<meta name="description" content="Released, concise Dictionary of Quality glossary entries. Browse exact public versions compiled from the tagged glossary collection.">
<link rel="canonical" href="https://qedartifacts.org/dictionary/glossary/">
<link rel="stylesheet" href="../../assets/styles.css">
<link rel="stylesheet" href="../../assets/analytics-consent.css">
<link rel="stylesheet" href="styles.css">
<script src="../../assets/analytics-consent.js" defer></script>
<script src="constellation.js" defer></script>
<script src="search.js" defer></script>
</head>
Expand Down Expand Up @@ -208,7 +210,7 @@ const html = `<!doctype html>
<div class="entry-list" id="entries">${entryGroups}</div>
<p class="empty" id="no-results" hidden>No released entries match this search.</p>
</main>
<footer><p>QED Artifacts Institute · Dictionary of Quality</p><div><a href="${esc(sourceTree)}">Public object collection</a><a href="/">Home</a></div></footer>
<footer><p>QED Artifacts Institute · Dictionary of Quality</p><div><a href="${esc(sourceTree)}">Public object collection</a><a href="/">Home</a><a href="/privacy/">Privacy</a></div></footer>
</body>
</html>
`;
Expand Down
1 change: 1 addition & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<url><loc>https://qedartifacts.org/apps/</loc><lastmod>2026-09-15</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://qedartifacts.org/dictionary/</loc><lastmod>2026-10-22</lastmod><changefreq>monthly</changefreq><priority>0.7</priority></url>
<url><loc>https://qedartifacts.org/dictionary/glossary/</loc><lastmod>2026-10-24</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>https://qedartifacts.org/privacy/</loc><lastmod>2026-12-03</lastmod><changefreq>yearly</changefreq><priority>0.3</priority></url>
</urlset>
Loading