Socket
Book a DemoInstallSign in
Socket

@integraflow/web

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@integraflow/web

Integraflow provides tools to redefine customer experience with organic feedback and behavioural data in real-time.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
3
Created
Source

Integraflow Web SDK

npm package MIT License

Integraflow provides tools to redefine customer experience with organic feedback and behavioural data in real-time. Enjoy intuitive designs, open source surveys, advanced analytics, seamless collaboration on the go.

Get Started with CDN

Start by adding the following snippet to your website:

<script>
  (function(w,p){w[p]=w[p]||function(){w[p].q=w[p].q||[];w[p].q.push(arguments)}})(window,"Integraflow");

  Integraflow('init', {
    surveys: [],
    debug: true,
    onAudienceChanged(audience) {
      // ...
    },
    onEventTracked(payload) {
      // ...
    },
    onSurveyDisplayed(surveyId) {
      // ...
    },
    onQuestionAnswered(surveyId, questionId, answers) {
      // ...
    },
    onSurveyCompleted(surveyId) {
      // ...
    },
    onSurveyClosed(surveyId) {
      // ...
    },
  });
</script>
<script src="https://unpkg.com/@integraflow/web/dist/web-bundle.js" async></script>

For more information on integrating the Web SDK with your project, please see the Integraflow developer guide.

Get Started with NPM

Start by adding the package dependency to your project:

npm install --save @integraflow/web

After installation, import and initialize the SDK in your application code:

import Integraflow from '@integraflow/web';

const integraflowClient = Integraflow.init({
  surveys: [],
  debug: true,
  onAudienceChanged(audience) {
    // ...
  },
  onEventTracked(payload) {
    // ...
  },
  onSurveyDisplayed(surveyId) {
    // ...
  },
  onQuestionAnswered(surveyId, questionId, answers) {
    // ...
  },
  onSurveyCompleted(surveyId) {
    // ...
  },
  onSurveyClosed(surveyId) {
    // ...
  },
});

For more information on integrating the Web SDK with your project, please see the Integraflow developer guide.

Contributing

Pull requests are welcome for any improvements you might wish to make. If it's something big and you're not sure about it yet, we'd be happy to discuss it first. You can either file an issue or drop us a line to dev@useintegraflow.com.

To get started with development, simply clone this repo and open the project to kick things off.

License

This project is licensed under the MIT license. See our LICENSE file and individual source files for more information.

Keywords

Integraflow

FAQs

Package last updated on 10 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts