On this page

Install PLuG widget on your website

To get the PLuG widget to appear on your website and web app, copy and paste the snippet below on every page where you want the widget to appear for website visitors.

Make sure to replace the app ID with your app ID which identifies your PLuG widget. You can access your app ID from your DevRev account by following these steps.

  1. In DevRev, go to Settings > Support > PLuG Settings through the settings icon in the top-left corner.
  2. Click Enable PLuG Widget if it isn't already enabled.
  3. Copy your Unique App ID from the Configuration tab.

Setup for HTML

1 // Place this code in the head of your HTML page
2 <script
3 type="text/javascript"
4 src="https://plug-platform.devrev.ai/static/plug.js"
5 ></script>
6
7 // Place this code in the body of your HTML page
8 <script>
9 window.plugSDK.init({
10 // Please ensure you replace the app_id with your unique app id
11 app_id: "<your_unique_app_id>",
12 });
13 </script>

Setup for React

1 // Place this in public/index.html file, inside the body tag of your HTML page
2 <script
3 type="text/javascript"
4 src="https://plug-platform.devrev.ai/static/plug.js"
5 ></script>;
6
7 // Place this code inside the react component where you want to render the widget
8 // Typically you should do it as top level component like App.js
9 useEffect(() => {
10 window.plugSDK.init({
11 // Please ensure you replace the app_id with your unique app id
12 app_id: "<your_unique_app_id>",
13 });
14 }, []);

You should now have PLuG widget installed on your website. Facing some issues? Reach out to us through our own PLuG widget from the bottom right of your screen.

Once the widget is installed on your website, every user who visits your website is considered an anonymous user. Anonymous users are the users that come to your site and haven't yet logged in or shared any information.

We understand the importance of making your engagement more personalized and contextual with your customers. Learn how to identify your customers and update their information.