Skip to content

Commit

Permalink
Merge pull request #59 from yourssu/2024-2-recruit
Browse files Browse the repository at this point in the history
chore: gtag 플러그인 수정
  • Loading branch information
fecapark authored Sep 1, 2024
2 parents ae18cc3 + 0b5240a commit 4fd42c0
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ const config: GatsbyConfig = {
// Since `gatsby-plugin-typescript` is automatically included in Gatsby you
// don't need to define it here (just if you need to change the options)
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [process.env.GATSBY_APP_GA_ID],
pluginConfig: {
head: false,
respectDNT: true,
delayOnRouteUpdate: 1000,
},
},
},
'gatsby-plugin-postcss',
'gatsby-plugin-image',
'gatsby-plugin-sharp',
Expand Down Expand Up @@ -157,19 +168,6 @@ const config: GatsbyConfig = {
queries: myCustomQueries,
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
process.env.GATSBY_APP_GA_ID, // Google Analytics
],
pluginConfig: {
head: false,
respectDNT: true,
delayOnRouteUpdate: 1000,
},
},
},
],
jsxRuntime: 'automatic',
};
Expand Down

0 comments on commit 4fd42c0

Please sign in to comment.