FAQs

1) How can I integrate with Lightbeam as CDN.

To integrate Lightbeam as your CDN, follow these steps:

  1. In the UI, locate the provided script tag.

  2. 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.

2) How can I integrate my own system as CDN?

If you choose to use Your Own System as the CDN, follow these steps:

  1. Provide S3 Bucket Details:

  2. 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.

  3. 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.

  4. 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.

Last updated