← Back

Connect Your Google Cloud Website to Agent & LLM Analytics

Overview

This integration uses Google Cloud Pub/Sub and Cloud Logging to send analytics events to Dark Visitors from your Google Cloud CDN. Please contact us if you need help getting set up.

Step 1: Create a Pub/Sub Topic

Step 2: Create a Subscription

https://api.darkvisitors.com/logs/google-cloud

Step 3: Register Your Service Account

Step 4: Create a Log Sink

Step 5: Configure Log Filters

resource.type="http_load_balancer"
resource.labels.forwarding_rule_name="YOUR_FORWARDING_RULE_NAME"
resource.labels.url_map_name="YOUR_URL_MAP_NAME"
resource.type="http_load_balancer"
(resource.labels.forwarding_rule_name="YOUR_FIRST_FORWARDING_RULE_NAME"
 AND resource.labels.url_map_name="YOUR_FIRST_URL_MAP_NAME")
OR
(resource.labels.forwarding_rule_name="YOUR_SECOND_FORWARDING_RULE_NAME"
 AND resource.labels.url_map_name="YOUR_SECOND_URL_MAP_NAME")

Step 6: Test Your Integration

If your website is correctly connected, you should see visits from the Dark Visitor agent in the realtime timeline within a few minutes.