Miss any of our Open RFC calls?Watch the recordings here! »

gatsby-plugin-smartertrack

1.2.2 • Public • Published

Build Status Coverage Status Known Vulnerabilities

gatsby-plugin-smartertrack

Unofficial GatsbyJS plugin to embed HTML/JavaScript code for a live chat widget and who's on tracking feature provided by SmarterTools SmarterTrack into a website generated by GatsbyJS.

Install

npm install --save gatsby-plugin-smartertrack

How to use

In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-smartertrack`,
      options: {
        fqdn:
          "www.my-smartertrack-server.com" /* <string: fully qualified domain name> - REQUIRED */,
        port: 443 /* <number: port> - OPTIONAL: default = 443 */,
        liveChat: {
          isEnabled: true /* <boolean> - OPTIONAL: default = true */,
          options: {
            elementId:
              "chattab" /* <string: HTML element ID> - OPTIONAL: default = 'chattab' */,
            configNum: 0 /* <number: SmarterTrack 'Live Chat Link' config> - OPTIONAL: default = 0 */
          }
        },
        whosOn: {
          isEnabled: true /* <boolean> - OPTIONAL: default = true */,
          options: {
            virtualPage:
              "" /* <string: SmarterTrack virtual page> - OPTIONAL: default = empty string */
          }
        }
      }
    }
  ]
};

Notes

Tested with SmarterTools SmarterTrack v13.x and v14.x

Install

npm i gatsby-plugin-smartertrack

DownloadsWeekly Downloads

3

Version

1.2.2

License

MIT

Unpacked Size

48.1 kB

Total Files

36

Last publish

Collaborators

  • avatar