Merge pull request #32251 from henrymyers/segment-analytics-add-segmentopts-context

[segment-analytics] Add optional context property to SegmentOpts
This commit is contained in:
Benjamin Lichtman
2019-01-22 12:40:45 -08:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ declare namespace SegmentAnalytics {
interface SegmentOpts {
integrations?: any;
anonymousId?: string;
context?: object;
}
// The actual analytics.js object
@@ -13,6 +13,11 @@ var testProps = {
var testOpts = {
integrations: {
Mixpanel: true
},
context: {
campaign: {
name: 'Cheese Promo'
}
}
};