How to Disable Local Business Pro Functionalities Using URL Parameters
Last Updated: November 18, 2024
This step-by-step guide will walk you through how to disable two primary functionalities—outbound call logic and the chat widget—when you install the Local Business Pro chat script on your website. It will also show you how to verify that these functionalities are properly disabled using your browser’s developer tools. No developer experience is required.
Disabling Outbound Call Logic
If you want to disable the logic for sending form data that triggers outbound calls, follow these steps:
1. Modify the URL:
Add the following parameter to your URL:
Example
2. Reload the Page:
After modifying the URL, reload the page. This parameter tells Local Business Pro to disable outbound call logic.
3. Testing the Functionality:
Submit a form on the page. Without the parameter, Local Business Pro sends the form data to check if an outbound call should be triggered. With the parameter set to false
, no data will be sent.
4. Verification in Developer Tools:
- Right-click anywhere on the page and select Inspect (or press
Ctrl+Shift+I
on Windows orCommand+Option+I
on Mac). - Go to the Console tab.
- If outbound call logic is disabled, you’ll see the message:
- If you try to submit the form again, no data will appear in the console, confirming the logic is disabled.
Disabling the Chat Widget
To hide the Local Business Pro chat widget:
1. Modify the URL:
Add the following parameter to your URL:
Example
2. Reload the Page:
- After modifying the URL, reload the page. The chat widget will no longer appear on your website.
3. Testing the Functionality:
- Simply check your webpage visually. If the parameter is correctly applied, the chat widget will be hidden.
Disabling Both Functionalities Simultaneously
If you need to disable both outbound call logic and the chat widget at the same time:
1. Modify the URL:
- Add both parameters to your URL, separated by an
&
:
Example
2. Reload the Page:
- After modifying the URL, reload the page to disable both functionalities.
How to Use Developer Tools to Verify Functionality
Developer tools are built into modern browsers like Chrome, Edge, and Firefox. Follow these steps to inspect Local Business Pro script behavior:
1. Open Developer Tools:
- Right-click anywhere on the webpage and select Inspect.
- Click the Console tab in the Developer Tools panel.
2.Check Script Behavior:
- If the Local Business Pro script is running, you’ll see a message like:
- If a cookie is already set, the console may display:
3. Submit the Form Without URL Parameters:
- Go to a page with a form and submit it.
- The console will display the data being sent, such as:
4. Submit the Form With Parameters:
- Add
?lbp_load_form=false
to the URL and reload the page. - Submit the form again. This time, no data should be sent, and the console will confirm:
5. Preserve Console Logs:
Click the gear icon in Developer Tools and enable Preserve Log to keep logs when the page reloads. This helps track activity across page changes.
Common Issues and Troubleshooting
Conflicting Scripts: If you suspect conflicts with third-party scripts, use the steps above to isolate the issue. Disabling Local Business Pro functionalities temporarily can help identify compatibility problems.
Chat Widget Still Visible: Ensure the URL includes
?lbp_load_chat=false
and is correctly formatted. Reload the page after applying the parameter.
By following this guide, you can easily control and verify the behavior of Local Business Pro functionalities on your website without requiring technical expertise.
Index
Related Articles