How it works
Before you begin
You need:- Access to the GCP project that manages the domain’s Cloud DNS zone
- Permission to edit Cloud DNS records, load balancers, Cloud Logging sinks, Pub/Sub topics, Pub/Sub subscriptions, and service accounts
- An origin that Google can proxy to, such as Webflow, a docs platform, or your own web server
- Access to Agent Analytics > Integrations > Google Cloud DNS in Lightsage
Configure the integration
1
Open the Google Cloud DNS integration in Lightsage
In Lightsage, go to Agent Analytics > Integrations > Google Cloud DNS.Copy the Push endpoint shown in the setup screen. You will use it as the Pub/Sub push endpoint after you create the log export.
2
Create a Google external Application Load Balancer
In the GCP Console, create a Google external Application Load Balancer for the domain or test subdomain you want to track.Configure the load balancer with:For Webflow, point the internet NEG at the Webflow-hosted origin and validate the setup on a test subdomain before changing production DNS.
- A frontend for the tracked hostname
- A managed certificate or certificate that covers the tracked hostname
- A backend that points to your origin
INTERNET_FQDN_PORT endpoint for your origin hostname, such as your-site.webflow.io:443, and attach it to the backend service.Internet NEGs require the Premium network service tier. On a global external Application Load Balancer, the internet NEG holds a single endpoint and cannot be combined with other backend types. When you use an
INTERNET_FQDN_PORT endpoint, Google validates the origin’s certificate against public CAs, so the origin must serve a valid publicly trusted certificate.3
Point Google Cloud DNS to the load balancer
In Cloud DNS, update the tracked hostname so it points to the load balancer frontend instead of pointing directly to your origin.The load balancer frontend uses a global anycast IP address, so point the tracked hostname at that IP with an Wait for DNS propagation, then verify the hostname serves the same site through the load balancer.
A record, whether it is an apex domain or a subdomain:4
Enable load balancer logging
In the load balancer backend service, enable logging and set the sample rate to
1.0 while validating the integration.A sample rate of 1.0 exports every request handled by the load balancer. You can lower it later if your organization wants to reduce log volume, but Lightsage will then only receive the sampled fraction of requests.5
Create a Pub/Sub topic
In the GCP Console, open Pub/Sub > Topics.Click Create topic and use a clear name, such as:Keep the topic in the same project as the load balancer logs.
6
Create a push service account
Create or select a service account for authenticated Pub/Sub delivery.A recommended name is:Copy the service account email. You will paste this email into Lightsage so Lightsage can verify that push requests came from your GCP project.
If Pub/Sub cannot sign push requests with this account, grant the Pub/Sub service agent the Service Account Token Creator role on the push service account.
7
Create a Pub/Sub push subscription
Open Pub/Sub > Subscriptions and click Create subscription.Configure the subscription:
Keep retry and retention settings at your organization’s defaults unless you need a specific retention policy.
8
Add a subscription transform
In the subscription configuration, click Add a transform.Use this function name:Paste this transform:Click Validate. The transform removes fields Lightsage does not need before the message is delivered.
9
Create a Cloud Logging sink
In the GCP Console, open Logging > Log Router.Click Create sink. Give the sink a name, such as:For Sink destination, choose Cloud Pub/Sub topic and select the topic you created.
10
Filter the sink to your load balancer
In Choose logs to include in sink, add a filter for your load balancer.Replace the placeholder values with your forwarding rule and URL map names:If you export logs from multiple load balancers, include each pair explicitly:Click Create sink.
11
Save the service account in Lightsage
Return to Agent Analytics > Integrations > Google Cloud DNS in Lightsage.Paste the push service account email into GCP service account and click Save.Lightsage uses this email to verify authenticated Pub/Sub push requests.
12
Verify log delivery
Send a test request through the tracked hostname:Check Agent Analytics after a few minutes. The tracked domain should appear after Lightsage receives the first matching request log.
Webflow domains
For Webflow sites, the common starting point is:Cloud CDN
Cloud CDN is not required for this integration. If you do not already use a CDN, leave it disabled; the load balancer still logs every request, which is all Lightsage needs. You can enable Cloud CDN on the load balancer later if you want Google to cache content at the edge. Cache hits are still logged by the load balancer, so agent analytics keeps working.Troubleshooting
After Cloud DNS points to the load balancer and the sink and push subscription are active, Google request logs should appear in Lightsage Agent Analytics within a few minutes.