FAQs
Last updated
To integrate Lightbeam as your CDN, follow these steps:
In the UI, locate the provided script tag.
Copy this script tag and insert it at the very top of the <head>
section on your website.
This script tag will automatically fetch the latest version of the necessary files from Lightbeam’s CDN.
Placing the script at the beginning of the <head>
section ensures optimal loading and functionality.
If you choose to use Your Own System as the CDN, follow these steps:
Provide S3 Bucket Details:
In the Settings section, select Your Own System.
Enter the S3 bucket details and the necessary credentials to allow Lightbeam to access this bucket.
Please add the following bucket permissions in your bucket
Script Upload and Versioning:
Lightbeam will upload a versioned folder of scripts and configuration files to the specified S3 bucket.
Each time you make changes to a domain, a new version is created, and Lightbeam automatically uploads an updated folder to the same S3 bucket.
Integrating Scripts into Production:
To integrate a specific version of the script on your website, use the script tag provided in the UI.
Replace <host_url>
in the script tag with the actual URL pointing to the production location where the scripts are hosted.
Note: If the S3 bucket specified in Settings is not your production bucket, you will need to manually upload the scripts from this S3 location to your production server, preserving the folder structure. The Lightbeam Cookie Consent solution relies on this structure to function correctly.
Setting Content-Type Headers:
Ensure that the correct Content-Type headers are configured on your server when these files are requested by browsers:
JavaScript files: text/javascript
CSS files: text/css
JSON files: application/json
Following these steps will help you set up and maintain the Cookie Consent scripts, whether hosted on Lightbeam's CDN or your own system.