Add analytics
It’s about time you add analytics to your headless WordPress site so that you know who is visiting. After all, it is not like GitHub Pages has access logs or anything.
Install gatsby-plugin-google-analytics
yarn add gatsby-plugin-google-analytics
Update gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-YOUR_TRACKING_ID",
},
},
],
}
Sources
Next: Add sitemap
Previous: Order posts by date
...