Storage data encryption now uses Base64 by default.
Existing persisted data is automatically migrated to the latest version unless specified otherwise.
New load API options for encryption configuration are introduced:
storage:{migrate:true,encryption:{version:'v3',}}
Important storage encryption considerations
If you have implemented the JavaScript SDK in multiple sites sharing the same top-level domain and cookies and have different major SDK versions across these sites, then RudderStack recommends the following actions:
All GET type methods from the loading snippet (getAnonymousId, getGroupTraits, etc.) are removed. These methods were not functional before the SDK loaded, making their presence unnecessary.
Default page call removed
The default page call is removed from the loading snippet. You must now explicitly make a page call, if required.
Source configuration changes
The default source configuration host has changed from rudderlabs.com to rudderstack.com. If you’re using a proxy for the source configuration host, update it to forward https://api.rudderstack.com instead of https://api.rudderlabs.com.
Consent management updates
The consent management configuration structure is updated in v3:
Empty and non-string event names are not allowlisted anymore.
Event name comparison is now case-sensitive.
Changes in integrations options
The destination names in the integrations object must exactly match the names displayed in the RudderStack
dashboard. Custom names assigned during destination setup are no longer supported.
The SDK will ignore any destination names that don’t match exactly as shown in the dashboard.
The following examples highlight the correct and incorrect declaration of the destination names within the integrations object:
The below sample snippet loads the SDK with the Amplitude, Intercom, and ActiveCampaign destinations only:
Declaring the destination name in the integrations object in the following manner will not work anymore:
// Incorrect usage - will not work
rudderanalytics.track("Order Completed",{revenue:30,currency:"USD",user_actual_id:12345},{integrations:{All:false,"AM":true}});
Ad blocker detection changes
The ad blocker detection logic is updated.
Dependency on the Google AdSense script is removed.
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.