diff --git a/index.coffee b/index.coffee index 113980d..d590625 100644 --- a/index.coffee +++ b/index.coffee @@ -314,7 +314,7 @@ export default class ShopifyGtmInstrumentor # Query Storefront API queryStorefrontApi: (payload) -> response = await axios - url: "#{@storeUrl}/api/2023-04/graphql" + url: "#{@storeUrl}/api/2023-10/graphql" method: 'post' headers: 'Accept': 'application/json' diff --git a/index.js b/index.js index 24c7d6a..45287d2 100644 --- a/index.js +++ b/index.js @@ -875,7 +875,7 @@ var _default = ShopifyGtmInstrumentor = /*#__PURE__*/function () { case 0: _context12.next = 2; return (0, _axios["default"])({ - url: "".concat(this.storeUrl, "/api/2023-04/graphql"), + url: "".concat(this.storeUrl, "/api/2023-10/graphql"), method: 'post', headers: { 'Accept': 'application/json', @@ -1055,4 +1055,4 @@ whenFirstInViewport = function whenFirstInViewport(el, callback) { return callback(); }); return observer.observe(el); -}; \ No newline at end of file +};