How to install LiveSession on Gatsby site?

LiveSession and Gatsby integration

LiveSession provides a plugin that lets you install script even easier.

In your project run

npm i @livesession/gatsby-plugin-livesession


yarn add @livesession/gatsby-plugin-livesession

Go to gatsby-config.js file and add plugin, everything what you need is trackID:

// gatsby-config.js
 plugins: [
        resolve: '@livesession/gatsby-plugin-livesession',
        options: {
          trackID: YOUR_LIVESESSION_TRACKID, // Required, string
          keystrokes: true || false, // Optional, default to false
          rootHostname: '', // Optional

If you want to know more about options you can pass into config, go to LiveSesion Developers page.

Didn’t find an answer?

Try using the search engine or just contact us

hello@livesession.ioChat with us

Start using LiveSession for free now.

Free 14-day trial

No credit card required

Easy setup