-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding GA to marketing * adding the right code * trying with root url * fixing sandbox --------- Co-authored-by: Nick Grato <[email protected]>
- Loading branch information
Showing
4 changed files
with
77 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
declare global { | ||
interface Window { | ||
gtag: (...args: any[]) => void; | ||
} | ||
} | ||
|
||
export const GA_TRACKING_ID = 'G-4W4Q68ZFMX'; | ||
|
||
// Function to track page views | ||
export const pageview = (url: string) => { | ||
window.gtag('config', GA_TRACKING_ID, { | ||
page_path: url, | ||
}); | ||
}; |