Skip to content

Commit 6f64c15

Browse files
committed
changed integration plugins and changed underlying packages
1 parent a2d75b6 commit 6f64c15

File tree

3 files changed

+92
-1000
lines changed

3 files changed

+92
-1000
lines changed

gatsby-config.js

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (process.env.GA) {
6767
}
6868

6969
if (process.env.GATSBY_MIXPANEL_TOKEN) {
70-
gatsbyPlugins.unshift({
70+
gatsbyPlugins.push({
7171
resolve: `gatsby-plugin-mixpanel`,
7272
options: {
7373
apiToken: process.env.GATSBY_MIXPANEL_TOKEN,
@@ -78,11 +78,12 @@ if (process.env.GATSBY_MIXPANEL_TOKEN) {
7878
}
7979

8080
if (process.env.GATSBY_HOTJAR_ID) {
81-
gatsbyPlugins.unshift({
82-
resolve: `gatsby-plugin-hotjar`,
81+
gatsbyPlugins.push({
82+
resolve: `@draftbox-co/gatsby-plugin-hotjar-lazy`,
8383
options: {
8484
id: process.env.GATSBY_HOTJAR_ID,
85-
sv: 6
85+
sv: 6,
86+
optimize: true,
8687
}
8788
});
8889
}
@@ -98,29 +99,32 @@ if (process.env.GATSBY_GTAG_MANAGER_ID) {
9899
}
99100

100101
if (process.env.GATSBY_TAWK_ID) {
101-
gatsbyPlugins.unshift({
102-
resolve: `gatsby-plugin-tawk`,
102+
gatsbyPlugins.push({
103+
resolve: `@draftbox-co/gatsby-plugin-tawk-lazy`,
103104
options: {
104105
tawkId: process.env.GATSBY_TAWK_ID,
106+
optimize: true,
105107
}
106108
});
107109
}
108110

109111
if (process.env.GATSBY_CRISP_ID) {
110-
gatsbyPlugins.unshift({
111-
resolve: `gatsby-plugin-crisp-chat`,
112+
gatsbyPlugins.push({
113+
resolve: `@draftbox-co/gatsby-plugin-crisp-chat-lazy`,
112114
options: {
113115
websiteId: process.env.GATSBY_CRISP_ID,
114-
enableDuringDevelop: true
116+
enableDuringDevelop: true,
117+
optimize: true,
115118
}
116119
});
117120
}
118121

119122
if (process.env.GATSBY_OLARK_ID) {
120-
gatsbyPlugins.unshift({
121-
resolve: `gatsby-plugin-olark`,
123+
gatsbyPlugins.push({
124+
resolve: `@draftbox-co/gatsby-plugin-olark-lazy`,
122125
options: {
123126
olarkSiteID: process.env.GATSBY_OLARK_ID,
127+
optimize: true,
124128
}
125129
});
126130
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
"react-dom": "^16.13.0"
1616
},
1717
"dependencies": {
18-
"@draftbox-co/gatsby-wordpress-balsa-theme": "^1.0.35",
18+
"@draftbox-co/gatsby-wordpress-balsa-theme": "^1.0.36",
19+
"@draftbox-co/gatsby-plugin-crisp-chat-lazy": "^0.0.3",
20+
"@draftbox-co/gatsby-plugin-hotjar-lazy": "^0.0.1",
21+
"@draftbox-co/gatsby-plugin-olark-lazy": "^0.0.1",
22+
"@draftbox-co/gatsby-plugin-tawk-lazy": "^0.0.1",
1923
"dotenv": "^8.2.0",
2024
"gatsby": "2.20.24",
21-
"gatsby-plugin-crisp-chat": "^3.2.2",
2225
"gatsby-plugin-disqus": "^1.1.4",
2326
"gatsby-plugin-google-analytics": "^2.2.2",
2427
"gatsby-plugin-google-tagmanager": "^2.3.5",
25-
"gatsby-plugin-hotjar": "^1.0.1",
2628
"gatsby-plugin-mailchimp": "^5.1.2",
2729
"gatsby-plugin-mixpanel": "^3.1.6",
28-
"gatsby-plugin-olark": "^1.0.0",
2930
"gatsby-plugin-segment-js": "^3.1.0",
30-
"gatsby-plugin-tawk": "^1.0.0",
3131
"react": "^16.13.0",
3232
"react-dom": "^16.13.0",
3333
"react-facebook": "^8.1.4"

0 commit comments

Comments
 (0)