To integrate Dashly Conversational platform for business to your Gatsby website, you need to have an account with Dashly. Sign up
With Dashly you can:
- Collect your users through all the channels including messengers. All users in one inbox, all channels in one user profile.
- Engage with every user on their terms. Chat, messengers, e-mail are in one user profile.
Never lose track of conversation with your customer - Save time for you team, create an automated customer service FAQ chatbot and knowledge base
- Accelerate growth throughout the customer lifecycle and engage more people with the help of communication tools
- Qualify leads and focus your sales team on hot ones. Provide the other with self-service
yarn add gatsby-plugin-dashly
or
npm install --save gatsby-plugin-dashly
To integrate Live chat and Chatbots to your Gatsby site, you need to have an account with Dashly. Sign up.
Upon obtaining your DASHLY_ID
, you need to modify your gatsby-config.js
as follows:
// In your gatsby-config.js
module.exports = {
plugins: [
{
resolve: "gatsby-plugin-dashly",
options: {
dashlyId: "DASHLY_ID",
mobileDelay: 2000, // Optional. Delay for mobile devices.
desktopDelay: 500, // Optional. Delay for other devices.
},
},
],
};
// In your gatsby-browser.js
const isEnabledDashly = () => typeof dashly === `object`;
exports.onRouteUpdate = ({ location }) => {
if (isEnabledDashly()) {
if (location.href.indexOf("/blog/") > -1) {
dashly.track("Visited blog", {
URL: location.href,
});
} else {
dashly.track("Visited landing", {
URL: location.href,
});
}
}
};