--- title: Add a UserActions component to the Coveo Insight Panel Classic Component (Deprecated) slug: '1101' canonical_url: https://docs.coveo.com/en/1101/ collection: coveo-for-salesforce source_format: adoc --- # Add a UserActions component to the Coveo Insight Panel Classic Component (Deprecated) [.version.no-link.classic] Salesforce Classic > **Deprecated** > > This feature is still available, but no longer supported as of the August 2023 release of Coveo for Salesforce version [5.2](https://docs.coveo.com/en/n5bj0150#august-2023-release-v5-2-initial-release). > **Note** > > For the Coveo Insight Panel Lightning Component, see [Add the UserActions component to the Coveo Insight Panel Lightning Component](https://docs.coveo.com/en/3129/). You can take advantage of the `UserActions` component to allow agents to see the actions performed by the end user before or after the creation of a case within the Salesforce console (see [UserActions Component](https://docs.coveo.com/en/1216/)). When creating a case, the unique `VisitId` of the session is stored in the case in the `VisitId__c` custom field. With that information, the [UserActions Component](https://docs.coveo.com/en/1216/) retrieves all actions from [Coveo Analytics](https://docs.coveo.com/en/182/) that have been performed by the end user in that session so that agents can easily refer to the information in the Coveo Insight Panel Classic Component. To implement the `UserActions` component . In Salesforce, access your Coveo Insight Panel Classic Component. . In the Coveo Insight Panel Classic Component, select **Customize Panel** to access the Interface Editor. . Add code to get your user `VisitId` from Coveo UA. > **Important** > > Go to step 4 if you're using Coveo for Salesforce v2.6 or higher. .. In the Interface Editor, check the **Advanced Mode** box, and select **Code**. .. Add a `script` tab with the following code: ```javascript $(".CoveoAnalytics").coveo().client.getCurrentVisitIdPromise().done(function(visitId) { $("#{!$Component.VisitId}").val(visitId); // Assuming that you have an element with "VisitId" as id. }); ``` . Add the `UserActions` component. .. In the Interface Editor, select the **Code View** tab at the top of the page, or check the **Advanced Mode** box and select **Code** when using an older version of Coveo for Salesforce. .. Locate the `coveo-box-popups-section` div of your component. .. In this div, add the following divs: ```xml
``` .. Save the page by selecting **Save**. Your page should now have a User actions button under your tabs. ![Coveo for Salesforce Lightning search page showing search bar and article results](https://docs.coveo.com/en/assets/images/coveo-for-salesforce/attachments/27885607/37103205.png)