From 17989e53df264d1a40a808880e8786a62c45ab1c Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Sun, 1 Dec 2024 08:26:51 -0600 Subject: [PATCH] Add One Dollar Stats tracking script and update FAQ links in index.astro (#40) * Add One Dollar Stats tracking script and update FAQ links in index.astro - Included a tracking script for One Dollar Stats in Layout.astro to monitor website analytics. - Updated multiple FAQ answers in index.astro to include referral links for better tracking and user guidance. - Added a new FAQ entry recommending One Dollar Stats for affordable website traffic tracking. * Update package version to 1.0.4 in package.json and package-lock.json --- package-lock.json | 4 ++-- package.json | 2 +- src/layouts/Layout.astro | 4 ++++ src/pages/index.astro | 19 ++++++++++++------- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index c65e3b9..e003b9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "create-freedom-stack", - "version": "1.0.3", + "version": "1.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "create-freedom-stack", - "version": "1.0.3", + "version": "1.0.4", "license": "MIT", "dependencies": { "@alpinejs/collapse": "^3.14.4", diff --git a/package.json b/package.json index c1f3af7..b0a101c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-freedom-stack", "type": "module", - "version": "1.0.3", + "version": "1.0.4", "description": "Create a new Freedom Stack project - A modern, type-safe web development stack using Astro, TypeScript, HTMX, Alpine.js, and more", "author": "Cameron Pak", "license": "MIT", diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index cd5abd2..aa92a9b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -142,6 +142,10 @@ const { title, description = "", bodyClasses, canonicalUrl, faviconUrl, ogImageU
+ + {/* One Dollar Stats, by Drizzle */} + diff --git a/src/pages/index.astro b/src/pages/index.astro index d2578e1..8cdf963 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -35,16 +35,16 @@ const faqItems = [ { question: "How can I learn more about Alpine.js?", answer: - "If you want to learn more about Alpine.js, I recommend [Learn Alpine.js on codecourse](https://codecourse.com/courses/learn-alpine-js)." + "If you want to learn more about Alpine.js, I recommend [Learn Alpine.js on codecourse](https://codecourse.com/courses/learn-alpine-js?ref=freedomstack)." }, { question: "How can I learn more about the libSQL database layer?", answer: - "If you want to learn more about the database layer, I recommend first starting with Astro DB's [Getting Started Guide](https://docs.astro.build/en/guides/astro-db/), and then learning from [High Performance SQLite course](https://highperformancesqlite.com/), sponsored by [Turso](https://tur.so/freedomstack)." + "If you want to learn more about the database layer, I recommend first starting with Astro DB's [Getting Started Guide](https://docs.astro.build/en/guides/astro-db/?ref=freedomstack), and then learning from [High Performance SQLite course](https://highperformancesqlite.com/?ref=freedomstack), sponsored by [Turso](https://tur.so/freedomstack)." }, { question: "How can I learn more about Better Auth?", - answer: "[Learn more about Better Auth.](https://www.better-auth.com/docs/integrations/astro)" + answer: "[Learn more about Better Auth.](https://www.better-auth.com/docs/integrations/astro?ref=freedomstack)" }, { question: "How do I deploy Freedom Stack?", @@ -53,11 +53,16 @@ const faqItems = [ }, { question: "How can I learn more about HTMX?", - answer: "[Learn more about HTMX.](https://htmx.org/)" + answer: "[Learn more about HTMX.](https://htmx.org/?ref=freedomstack)" }, { question: "How can I learn more about daisyUI?", - answer: "[Learn more about daisyUI.](https://daisyui.com/)" + answer: "[Learn more about daisyUI.](https://daisyui.com/?ref=freedomstack)" + }, + { + question: "What's an affordable way to track my website's traffic/analytics?", + answer: + "I recommend [One Dollar Stats, by Drizzle](https://onedollarstats.com/?ref=freedomstack), or try out [PostHog](https://posthog.com/?ref=freedomstack)." }, { question: "How can I contribute to Freedom Stack?", @@ -312,6 +317,8 @@ Astro.response.headers.set("netlify-cache-tag", "components"); + +
- -