pathfora.install Plugin

Download and install the Pathfora SDK automatically

pathfora.install plugin

Download and install the Pathfora SDK.

Pathfora install
namespace pathfora.install
SDK installer
disabled by default

Configuration

pathfora: {
  install: {
    disabled: true,
    sdk: {
      disabled: true,
      loaded: false,
      src: 'https://c.lytics.io/static/pathfora.min.js'
    },
    css: {
      disabled: true,
      loaded: false,
      src: undefined
    }
  }
}

pathfora.install.disabled

  • Type boolean
  • Optional
  • Defaults to true

Set disabled to false to enable this plugin.

pathfora.install.sdk.disabled

  • Type boolean
  • Optional
  • Defaults to true

Set disabled to false to automatically install the Pathfora JavaScript SDK.

pathfora.install.css.disabled

  • Type boolean
  • Optional
  • Defaults to true

Set disabled to false to automatically install the Pathfora Stylesheets.

Advanced options

Advanced options generally do not need to be configured.

pathfora.install.sdk.src

  • Type string
  • Optional
  • Defaults to "https://c.lytics.io/static/pathfora.min.js"

The location of the source code for the Pathfora JavaScript SDK.

pathfora.install.css.src

  • Type string
  • Optional
  • Defaults to undefined

The location of the source code for the Pathfora Stylesheets.

Learn more about configuration

Mechanism

This plugin works by appending script or link elements to the document and firing events notifying readiness of the requested resources.

Events

EventFires whenPayload
pathfora.install.succeededthe install completed successfullynone
pathfora.install.sdk.succeededthe Pathfora JavaScript SDK is readynone
pathfora.install.css.succeededthe Pathfora stylesheets are readynone
pathfora.install.doneafter pathfora.install.succeedednone

Learn more about events