Salesforce is a popular CMS. Here's how to use Osano with Salesforce.
In Osano, the "Get Code" button will become active after creating and publishing your configuration. This button will provide you with the osano.js.
In order to run effectively, however, Osano needs to be injected into the global <head> of the document. Read more about adding custom code to Salesforce here.
For compliance reasons, the Osano script should be the first script to execute in the <head> of your website.
Adding Markup to the Page Head
- Log in to the administrator portal of your Salesforce account.
- In the Scripts section of the Properties pane under the "Edit Head Markup" section, click Configure.
- Enter your Osano code in the Edit HTML Code dialog box.
User_id / Customer_id
- Click Save to apply your changes.
Once added and saved, run the application, inspect and check. You should see the script added inside the head tag.
Important: The Osano.js should be placed without any async or defer attributes. Compliance cannot be guaranteed when using the attributes above.