Skip to content

Unofficial GatsbyJS plugin to embed SmarterTools SmarterTrack HTML/JavaScript code for live chat and who's on tracking features

License

Notifications You must be signed in to change notification settings

lfurzewaddock/gatsby-plugin-smartertrack

Repository files navigation

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

About

Unofficial GatsbyJS plugin to embed SmarterTools SmarterTrack HTML/JavaScript code for live chat and who's on tracking features

Resources

License

Stars

Watchers

Forks

Packages

No packages published