Skip to content

Commit

Permalink
Add One Dollar Stats tracking script and update FAQ links in index.as…
Browse files Browse the repository at this point in the history
…tro (#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
  • Loading branch information
cameronapak authored Dec 1, 2024
1 parent 5b36fbd commit 17989e5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ const { title, description = "", bodyClasses, canonicalUrl, faviconUrl, ogImageU
<div class="prose max-w-[unset]">
<slot />
</div>

{/* One Dollar Stats, by Drizzle */}
<script is:inline defer data-site-id="freedom.faith.tools" src="https://assets.onedollarstats.com/tracker.js"
></script>
</body>
</html>

Expand Down
19 changes: 12 additions & 7 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
Expand All @@ -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?",
Expand Down Expand Up @@ -312,6 +317,8 @@ Astro.response.headers.set("netlify-cache-tag", "components");
</div>
</Container>

<FAQ title="FAQ" items={faqItems} />

<Container title="Support Freedom Stack" align="center">
<div
class="not-prose w-full grid max-sm:grid-cols-1 sm:grid-cols-2 gap-4 flex-wrap justify-center items-center [&_img]:border-2 [&_img]:border-slate-200 [&_img]:rounded-2xl [&_img]:w-full [&_img]:h-auto"
Expand All @@ -333,8 +340,6 @@ Astro.response.headers.set("netlify-cache-tag", "components");
</div>
</Container>

<FAQ title="FAQ" items={faqItems} />

<Footer
links={[
{
Expand Down

0 comments on commit 17989e5

Please sign in to comment.