Skip to content

Commit

Permalink
🏷️ gtag (#255)
Browse files Browse the repository at this point in the history
* update dependencies.

* update to gtag.

* remove node-fetch.

* bump version.
  • Loading branch information
bradgarropy authored Dec 8, 2021
1 parent 52316ee commit 8bab2c5
Show file tree
Hide file tree
Showing 3 changed files with 311 additions and 342 deletions.
14 changes: 9 additions & 5 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ const config = {
resolve: "gatsby-plugin-sitemap",
},
{
resolve: "gatsby-plugin-google-analytics",
resolve: "gatsby-plugin-google-gtag",
options: {
trackingId: process.env.TRACKING_ID,
head: true,
anonymize: true,
respectDNT: false,
trackingIds: [process.env.TRACKING_ID],
gtagConfig: {
anonymize_ip: true,
},
pluginConfig: {
head: true,
respectDNT: false,
},
},
},
{
Expand Down
Loading

0 comments on commit 8bab2c5

Please sign in to comment.