You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/gatsby-plugin-guess-js/README.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@ module.exports = {
36
36
options: {
37
37
// Find the view id in the GA admin in a section labeled "views"
38
38
GAViewID:`VIEW_ID`,
39
+
// Add JWT token to perform authentication on deployment builds
40
+
jwt:GA_JWT
39
41
minimumThreshold:0.03,
40
42
// The "period" for fetching analytic data.
41
43
period: {
@@ -50,7 +52,7 @@ module.exports = {
50
52
51
53
## Integrating with CI
52
54
53
-
Integrating this plugin within a CI pipeline may cause errors because the plugin will prompt the user/machine to log into the Google Analytics account - you need to send a jwt to authenticate properly
55
+
Integrating this plugin within a CI pipeline may cause errors because the plugin will prompt the user/machine to log into the Google Analytics account. To get around this you'll need to generate a JWT for your GA account to pass to the plugin, this will enable the plugin to work in prod without any human interaction to authenticate permissions
0 commit comments