Skip to content

Add options object for the analytics.load call #65

@mzogheib

Description

@mzogheib

There doesn't appear to be a way to provide options for the load call. See here.

Similar to page options, how about something like this?

var snippet = require('@segment/snippet');

var contents = snippet.max({
  host: 'cdn.segment.com',
  apiKey: '03fwkuu3',
  page: {
    category: 'Docs',
    name: 'Integrations',
    properties: {
      foo: 'bar'
    }
  },
  load: {
    integrations: {
      All: false,
      AdRoll: true
    }
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions