Skip to content

Commit

Permalink
Merge pull request #11 from undb-xyz/fix/add-missing-ga
Browse files Browse the repository at this point in the history
fix: add missing ga
  • Loading branch information
nichenqin committed Apr 23, 2023
2 parents 19cff7c + 48a9476 commit 6a3f049
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
2 changes: 2 additions & 0 deletions src/components/GA.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<script type="text/partytown" defer data-domain="undb.xyz" src="/stats/js/script.js" data-api="/stats/api/event"
></script>
43 changes: 21 additions & 22 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
import AppFooter from "../components/AppFooter.astro";
import AppHeader from "../components/AppHeader.astro";
import AppFooter from '../components/AppFooter.astro'
import AppHeader from '../components/AppHeader.astro'
import GA from '../components/GA.astro'
const {
title = "undb - The open source no code database",
description = "undb - The open source no code database, airtable alternative",
title = 'undb - The open source no code database',
description = 'undb - The open source no code database, airtable alternative',
url,
image = "/social-preview-image.png",
author = "nichenqin",
} = Astro.props;
image = '/social-preview-image.png',
author = 'nichenqin',
} = Astro.props
---

<!DOCTYPE html>
Expand All @@ -21,24 +22,22 @@ const {
<meta name={description} content={description} />
<title>{title}</title>

<link
href="https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<GA />

<link href="https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&display=swap" rel="stylesheet" />
</head>
<body class="bg-white dark:bg-gray-900">
<AppHeader />
<slot />
<AppFooter />
</body>
</html>
<style>
html {
font-family: Urbanist, sans-serif;
scroll-behavior: smooth;
}
</body><style>
html {
font-family: Urbanist, sans-serif;
scroll-behavior: smooth;
}

body {
margin: 0;
}
</style>
body {
margin: 0;
}
</style>
</html>

1 comment on commit 6a3f049

@vercel
Copy link

@vercel vercel bot commented on 6a3f049 Apr 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

www – ./

www-undb.vercel.app
www.undb.xyz
www-git-main-undb.vercel.app
www-zeta-six.vercel.app
undb.xyz

Please sign in to comment.