Skip to content

Commit

Permalink
Merge pull request #4 from WorkoutLogs/update
Browse files Browse the repository at this point in the history
Add analytics
  • Loading branch information
ReddyyZ authored Dec 27, 2023
2 parents e0a451e + c188cdb commit a1261ae
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,14 @@ module.exports = {
display: `standalone`,
icon: 'src/assets/favicon.png'
},
}]
},{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [
"G-J5Z68L7N4P", // Google Analytics / GA
],
},
}
]
};
27 changes: 27 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 @@ -17,6 +17,7 @@
"dependencies": {
"autoprefixer": "^10.4.16",
"gatsby": "^5.12.4",
"gatsby-plugin-google-gtag": "^5.13.0",
"gatsby-plugin-image": "^3.12.3",
"gatsby-plugin-manifest": "^5.13.0",
"gatsby-plugin-postcss": "^6.12.0",
Expand Down

0 comments on commit a1261ae

Please sign in to comment.