1
1
diff --git a/node_modules/gatsby-plugin-plausible/gatsby-ssr.js b/node_modules/gatsby-plugin-plausible/gatsby-ssr.js
2
- index c00d563..785cddd 100755
2
+ index c00d563..41e80ba 100755
3
3
--- a/node_modules/gatsby-plugin-plausible/gatsby-ssr.js
4
4
+++ b/node_modules/gatsby-plugin-plausible/gatsby-ssr.js
5
5
@@ -7,8 +7,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
6
6
var _react = _interopRequireDefault(require("react"));
7
-
7
+
8
8
var getOptions = function getOptions(pluginOptions) {
9
9
- var plausibleDomain = pluginOptions.customDomain || 'plausible.io';
10
10
- var scriptURI = plausibleDomain === 'plausible.io' ? '/js/plausible.js' : '/js/index.js';
@@ -13,12 +13,13 @@ index c00d563..785cddd 100755
13
13
var domain = pluginOptions.domain;
14
14
var excludePaths = pluginOptions.excludePaths || [];
15
15
var trackAcquisition = pluginOptions.trackAcquisition || false;
16
- @@ -44,7 +44,7 @@ exports.onRenderBody = function (_ref, pluginOptions) {
16
+ @@ -44,7 +44,8 @@ exports.onRenderBody = function (_ref, pluginOptions) {
17
17
async: true,
18
18
defer: true,
19
19
'data-domain': domain,
20
20
- src: "https://" + plausibleDomain + scriptURI
21
+ + 'data-api': '/proxy/api/event',
21
22
+ src: scriptURI
22
23
};
23
-
24
- if (trackAcquisition) {
24
+
25
+ if (trackAcquisition) {
0 commit comments