diff --git a/CODEOWNERS b/CODEOWNERS
index ef7279a..45e67bf 100644
--- a/CODEOWNERS
+++ b/CODEOWNERS
@@ -1,2 +1 @@
-* @bardisg
-* @MoumitaM
\ No newline at end of file
+* @rudderlabs/js-sdk
diff --git a/README.md b/README.md
index cd2166f..e6bdda1 100644
--- a/README.md
+++ b/README.md
@@ -120,10 +120,6 @@ plugins: [
// 'defer' will load the SDK as
loadType: 'default',
- // Whether to use the snippet for JS SDK v2.x
- // Useful for only loading the previous major version of the SDK if you do not want to migrate to v3 yet.
- useLegacySDK: false,
-
// Options to the `load` API
// Note: The above `controlPlaneUrl` overrides the `configUrl` field in this object
// You can find all the available load options here,
diff --git a/src/gatsby-ssr.js b/src/gatsby-ssr.js
index 3d63aca..9b31a9b 100644
--- a/src/gatsby-ssr.js
+++ b/src/gatsby-ssr.js
@@ -9,8 +9,7 @@ exports.onRenderBody = ({ setHeadComponents }, pluginOptions) => {
manualLoad,
loadType,
sdkURL = 'https://cdn.rudderlabs.com/v3',
- loadOptions = {},
- useLegacySDK,
+ loadOptions = {}
} = pluginOptions;
// ensures RudderStack production write key is present
@@ -32,29 +31,20 @@ exports.onRenderBody = ({ setHeadComponents }, pluginOptions) => {
const loadConfig = `'${writeKey}', '${dataPlaneUrl}', ${JSON.stringify(finalLoadOptions)}`;
- let snippet = `window.RudderSnippetVersion="3.0.0-beta.14";var sdkBaseUrl="${sdkURL}";var sdkName="rsa.min.js";var asyncScript=true;window.rudderAnalyticsBuildType="legacy",window.rudderanalytics=[];
- var e=["setDefaultInstanceKey","load","ready","page","track","identify","alias","group","reset","setAnonymousId","startSession","endSession","consent"];
- for(var n=0;n