We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58e00e6 + 02151d0 commit 678bd5dCopy full SHA for 678bd5d
src/components/analytics/CounterAnalytics.astro
@@ -0,0 +1,15 @@
1
+---
2
+interface Props {
3
+ projectId: string
4
+ utcOffset: number
5
+}
6
+
7
+const { projectId, utcOffset } = Astro.props
8
9
10
+<script
11
+ src="https://cdn.counter.dev/script.js"
12
+ data-id={projectId}
13
+ data-utcoffset={utcOffset}
14
+ defer
15
+></script>
src/configs/site.ts
@@ -8,6 +8,9 @@ export default {
favicon: '/favicon.ico',
faviconMimeType: 'image/x-icon',
plugins: {
+ counterAnalytics: {
+ pid: env.COUNTER_ANALYTICS_ID,
+ },
googleAnalytics: {
id: env.GA_ID,
16
},
0 commit comments