Skip to content

Commit 655b399

Browse files
gganchganchimeg
andauthored
add gatsby plugin for google analytics for main developer.cloudlfare.com folder (cloudflare#2460)
Co-authored-by: ganchimeg <[email protected]>
1 parent 863c982 commit 655b399

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!../products/**/*.js

developers.cloudflare.com/gatsby-config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ module.exports = {
152152
icon: "src/images/cloudflare-icon.png"
153153
}
154154
},
155+
{
156+
resolve: "gatsby-plugin-google-tagmanager",
157+
options: {
158+
id: "GTM-PKQFGQB",
159+
dataLayerName: "cfDataLayer",
160+
selfHostedOrigin: "https://tr.www.cloudflare.com"
161+
},
162+
},
155163
// Consider enabling for PWA + offline functionality
156164
// https://gatsby.dev/offline
157165
// 'gatsby-plugin-offline',

developers.cloudflare.com/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"gatsby": "^2.32.12",
1919
"gatsby-image": "2.4.13",
2020
"gatsby-plugin-compile-es6-packages": "^2.1.0",
21+
"gatsby-plugin-google-tagmanager": "^2.3.10",
2122
"gatsby-plugin-layout": "1.3.10",
2223
"gatsby-plugin-manifest": "2.4.18",
2324
"gatsby-plugin-material-ui": "2.1.9",

0 commit comments

Comments
 (0)