You can manually integrate Efilli Web CMP into your website by adding the JavaScript code directly into your HTML.
This method is recommended if you are not using Google Tag Manager (GTM).
How to Do It
1. Get the Efilli JavaScript Code
You can obtain the script from:
The âJavaScript Codesâ section in the Efilli panel
Insert the script tag inside the <head> section of your HTML. It must be placed before any other scripts.
Example â Before:
<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><title>Example Site</title></head><body><h1>Welcome to My Website</h1></body></html>
Example â After:
â ď¸ The script must be placed in the <head> section, and before all other scripts.
3. Correct vs Incorrect Usage
â Correct:
â Incorrect:
Do not use async or defer. Efilli may not function correctly if the script is loaded asynchronously.
4. Verify That the Script Works
After integration, follow these steps to confirm itâs working:
Open your website in a browser
Open the Developer Console (F12 > âConsoleâ tab)
Check for any errors
Verify the presence of:
Ensure the banner or popup is visible and loading correctly
5. If You Encounter Issues
If something doesnât work:
Contact the Customer Success team
Check the documentation in your Efilli panel
Review any errors in your browserâs developer console
Summary
By following these steps, the Efilli CMP script will function properly on your website.
Need help? Donât hesitate to contact our Customer Success team for support.