Skip to content

Commit 46d1ae2

Browse files
committed
feat: support multiple gtag ids
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 79e59f8 commit 46d1ae2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/GoogleAnalytics.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import { siteMetadata } from '../constants.ts';
33
4-
const GTAG_IDS = siteMetadata.google.gtag;
4+
const GTAG_IDS = siteMetadata.google.gtags;
55
const GTAG_SRC = `https://www.googletagmanager.com/gtag/js?id=${GTAG_IDS[0]}`;
66
---
77

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const siteMetadata = {
1414
keywords:
1515
'gitify,desktop,application,github,notifications,unread,menu bar,electron,open source,mac,windows,linux',
1616
google: {
17-
gtag: ['G-QXML81DEDV', 'G-H4MTPZP3HW'],
17+
gtags: ['G-QXML81DEDV', 'G-H4MTPZP3HW'],
1818
siteVerification: 'jJNnPZ2wu7F1tlSab57og1N3RNrMqhzTCzRrbztY8WU',
1919
},
2020
menuLinks: [

0 commit comments

Comments
 (0)