Skip to main content
Use the Google Cloud DNS integration when your domain records are managed in Google Cloud DNS and you want Lightsage to track AI agent visits without installing application middleware. Google Cloud DNS manages the records that send traffic to your site. To collect agent analytics, route those DNS records to a Google external Application Load Balancer first. The load balancer produces the HTTP request logs that Lightsage receives through Cloud Logging and Pub/Sub.
Google Cloud DNS alone does not produce request logs. DNS records do not include request paths, user agents, status codes, or client IP addresses. This setup uses Google Cloud DNS for routing and Google Cloud Load Balancing for request logging.

How it works

Lightsage only requires the load balancer request logs. Google Cloud CDN is optional and covered in Cloud CDN below.

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
Start with a test subdomain, such as agent-test.example.com, before moving production traffic.

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:
  • A frontend for the tracked hostname
  • A managed certificate or certificate that covers the tracked hostname
  • A backend that points to your origin
You enable backend logging in a later step.Because your origin lives outside Google Cloud, the backend must point to an internet network endpoint group (internet NEG) rather than a Google Cloud instance group. Create an internet NEG with an 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.
For Webflow, point the internet NEG at the Webflow-hosted origin and validate the setup on a test subdomain before changing production DNS.
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 A record, whether it is an apex domain or a subdomain:
Wait for DNS propagation, then verify the hostname serves the same site through the load balancer.
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.
After you create the sink, grant its writer identity the Pub/Sub Publisher role (roles/pubsub.publisher) on the destination topic. Cloud Logging configures this automatically only when you create the sink from the console with Owner access to the topic’s project. Otherwise, copy the writer identity email from the sink details and grant the role manually. Without this permission, logs route into the sink but never reach the topic, and no error is shown.
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:
That setup does not produce Google HTTP request logs. To use this integration, update the path to:
Validate the load balancer on a test subdomain before moving production traffic. Confirm that pages, assets, redirects, forms, cookies, and canonical-domain behavior still work.

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.