Skip to content

loadIntegrations option to enable/disable loading of code for destinations in segment#500

Open
jasonbekolay wants to merge 1 commit intoDavidWells:masterfrom
jasonbekolay:segment/disable-destination-on-load
Open

loadIntegrations option to enable/disable loading of code for destinations in segment#500
jasonbekolay wants to merge 1 commit intoDavidWells:masterfrom
jasonbekolay:segment/disable-destination-on-load

Conversation

@jasonbekolay
Copy link

The integrations config option will disable a destination that is configured in Segment, but the destination's code is still loaded. If you have a Segment destination and a plugin for this library configured for the same service, that will cause it to be loaded twice. In the case of Customer.io, this causes errors.

The loadIntegrations option added here allow you avoid this by disabling a Segment destination when analytics.load is called.

Thank you for this library and for reviewing my PR! I'm happy to integrate any feedback you may have.

@jasonbekolay jasonbekolay force-pushed the segment/disable-destination-on-load branch from 19c7c5d to 2c69403 Compare October 31, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments