Skip to content

Commit

Permalink
Merge pull request #45 from zeikar/issueage
Browse files Browse the repository at this point in the history
Add Google Analytics
  • Loading branch information
zeikar authored Nov 3, 2021
2 parents efe1e04 + ead1d3f commit 162fe52
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"websiteTitle": "Issueage",
"repoOwner": "zeikar",
"repoName": "issueage"
"repoName": "issueage",
"googleAnalyticsId": "G-KB4FK3WS19"
}
31 changes: 31 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"format"
],
"devDependencies": {
"@beyonk/svelte-google-analytics": "^2.2.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
Expand Down
3 changes: 3 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import { GoogleAnalytics } from "@beyonk/svelte-google-analytics";
import Router from "svelte-spa-router";
import routes from "./routes";
Expand All @@ -9,6 +11,7 @@
export let Config;
</script>

<GoogleAnalytics properties={[Config.googleAnalyticsId]} />
<Navbar websiteTitle={Config.websiteTitle} />
<Router {routes} restoreScrollState={true} />
<Footer websiteTitle={Config.websiteTitle} />

0 comments on commit 162fe52

Please sign in to comment.