How to use the segmentio-facade.Page function in segmentio-facade

To help you get started, we’ve selected a few segmentio-facade examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github segmentio / analytics.js-core / lib / analytics.js View on Github external
options.context.page = overrides;
  }

  var msg = this.normalize({
    properties: properties,
    category: category,
    options: options,
    name: name
  });

  // Add the initialize integrations so the server-side ones can be disabled too
  if (this.options.integrations) {
    defaults(msg.integrations, this.options.integrations);
  }

  this._invoke('page', new Page(msg));

  this.emit('page', category, name, properties, options);
  this._callback(fn);
  return this;
};
github segmentio / analytics.js-integrations / integrations / totango / lib / index.js View on Github external
Totango.prototype.initialize = function(page) {
  page = page || new Page({});

  /* eslint-disable */
  window.totango = {
    go:function(){return -1;},
    setAccountAttributes:function(){},
    identify:function(){},
    track:function(t,o,n,a){window.totango_tmp_stack.push({activity:t,module:o,org:n,user:a}); return -1;}};
  /* eslint-enable */

  window.totango_options = {
    allow_empty_accounts: false,
    service_id: this.options.serviceId,
    disable_heartbeat: this.options.disableHeartbeat,
    module: page.category()
  };

segmentio-facade

Providing common fields for analytics integrations

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages