The existing persisted data is migrated to the latest version by default unless otherwise specified by the user.
New load API options are introduced to set the encryption version and migration choice:
storage:{migrate:true,encryption:{version:'v3',}}
It is recommended to use the same storage encryption version, preferably v3, across all your sites that share the same top-level domain.
If you have any special needs and have implemented different SDK major versions across your sites, you need to set the encryption version to legacy. This way the SDK v3 will continue to use the same encryption technique as the older SDK versions so that your subdomain sites using those legacy SDK versions are not impacted at all.
rudderanalytics.load(WRITE_KEY,DATA_PLANE_URL,{storage:{encryption:{version:"legacy"}},// other load options
});
All the GET type of methods (getAnonymousId, getGroupTraits, and so on) have been removed from the loading snippet.
The above GET methods will not yield anything before the SDK is loaded. Hence, it does not make sense to buffer those calls and replay them later.
No page call in loading snippet
The default page call embedded at the end of the loading snippet has been removed. So, you need to explicitly make a page call if required.
Source configuration URL
The default source configuration host has changed from rudderlabs.com to rudderstack.com. If you were previously forwarding the source configuration host, you must proxy https://api.rudderstack.com instead of https://api.rudderlabs.com.
The above snippet notifies the SDK to retrieve consent data from the OneTrust SDK loaded on your web page.
In SDK v3, cookieConsentManager is replaced with consentManagement. Also, the object structure for configuring the consent management options is changed. The new options are shown:
Empty and non-string event names are not allowlisted anymore.
Event name comparison is case-sensitive.
Integration options
The destination name in the integrations object should match the name exactly as displayed in the RudderStack dashboard. It should not be the name that you assigned to the destination while setting it up in RudderStack.
The JavaScript SDK ignores any other format of the name specified in the integrations object.
The following examples highlight the correct and incorrect declaration of the destination names within the integrations object:
The below sample snippet loads only the Amplitude, Intercom, and ActiveCampaign destinations:
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.