-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add custom device mode integrations support #2309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
saikumarrs
merged 15 commits into
develop
from
feature/sdk-3400-implementation-custom-device-mode-integrations
Aug 11, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5e76559
feat: custom integration interface and types (#2295)
MoumitaM e8e95a4
feat: add custom integrations api (#2299)
saikumarrs 2bc5227
fix: validate integration (#2310)
saikumarrs 3453b4a
chore: fix size limit configurations
8d3ed28
fix: integration name validation (#2311)
saikumarrs 1be8489
chore: improve slack messaging
6c50905
chore: update new loading snippet in all the apps
3bfa04d
feat: support custom device mode destination (#2350)
saikumarrs 00b3cc8
feat: update custom integrations init api (#2374)
saikumarrs 5d6ca30
chore: update snippet version to latest
saikumarrs e76d0f8
fix(plugins): allow disabled custom device mode in configured destina…
MoumitaM e834807
fix: update app state excludes list
saikumarrs 1e2218d
fix: custom integrations validations (#2417)
saikumarrs 576a9f1
chore: revert integration examples changes to avoid dependency
saikumarrs d9e8183
fix: correctly export destination config type (#2419)
saikumarrs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,46 +1,59 @@ | ||
| // Initialize rudderanalytics buffer | ||
| export const onClientEntry = () => { | ||
| if (typeof window !== 'undefined') { | ||
| (function() { | ||
| "use strict"; | ||
| window.RudderSnippetVersion = "3.0.60"; | ||
| var identifier = "rudderanalytics"; | ||
| (function () { | ||
| 'use strict'; | ||
| window.RudderSnippetVersion = '3.1.0'; | ||
| var identifier = 'rudderanalytics'; | ||
| if (!window[identifier]) { | ||
| window[identifier] = []; | ||
| } | ||
| var rudderanalytics = window[identifier]; | ||
| if (Array.isArray(rudderanalytics)) { | ||
| if (rudderanalytics.snippetExecuted === true && window.console && console.error) { | ||
| console.error("RudderStack JavaScript SDK snippet included more than once."); | ||
| console.error('RudderStack JavaScript SDK snippet included more than once.'); | ||
| } else { | ||
| rudderanalytics.snippetExecuted = true; | ||
| window.rudderAnalyticsBuildType = "legacy"; | ||
| var sdkBaseUrl = "https://cdn.rudderlabs.com"; | ||
| var sdkVersion = "v3"; | ||
| var sdkFileName = "rsa.min.js"; | ||
| var scriptLoadingMode = "async"; | ||
| var methods = [ | ||
| "setDefaultInstanceKey", "load", "ready", "page", "track", | ||
| "identify", "alias", "group", "reset", "setAnonymousId", | ||
| "startSession", "endSession", "consent" | ||
| window.rudderAnalyticsBuildType = 'legacy'; | ||
| var sdkBaseUrl = 'https://cdn.rudderlabs.com'; | ||
| var sdkVersion = 'v3'; | ||
| var sdkFileName = 'rsa.min.js'; | ||
| var scriptLoadingMode = 'async'; | ||
| var methods = [ | ||
| 'setDefaultInstanceKey', | ||
| 'load', | ||
| 'ready', | ||
| 'page', | ||
| 'track', | ||
| 'identify', | ||
| 'alias', | ||
| 'group', | ||
| 'reset', | ||
| 'setAnonymousId', | ||
| 'startSession', | ||
| 'endSession', | ||
| 'consent', | ||
| 'addCustomIntegration', | ||
| ]; | ||
| for (var i = 0; i < methods.length; i++) { | ||
| var method = methods[i]; | ||
| rudderanalytics[method] = function(methodName) { | ||
| return function() { | ||
| rudderanalytics[method] = (function (methodName) { | ||
| return function () { | ||
| if (Array.isArray(window[identifier])) { | ||
| rudderanalytics.push([ methodName ].concat(Array.prototype.slice.call(arguments))); | ||
| rudderanalytics.push([methodName].concat(Array.prototype.slice.call(arguments))); | ||
| } else { | ||
| var _methodName; | ||
| (_methodName = window[identifier][methodName]) === null || _methodName === undefined || _methodName.apply(window[identifier], arguments); | ||
| (_methodName = window[identifier][methodName]) === null || | ||
| _methodName === undefined || | ||
| _methodName.apply(window[identifier], arguments); | ||
| } | ||
| }; | ||
| }(method); | ||
| })(method); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| window.rudderanalytics.page('Sample Page Event'); | ||
| })(); | ||
| } | ||
| }; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.