← Back

Send Visit Events From Your Google Cloud Website

Step 1: Create a Pub/Sub Topic

Step 2: Create a Subscription

https://api.knownagents.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 a test agent in the realtime timeline within a few seconds.

MCP Calls and Agentic Commerce Interactions

This integration only sends pageview events. If you also want to send MCP calls and agentic commerce interactions, send those events through the REST API. For example, you can use the Cloudflare Worker alongside this integration. Otherwise, use the Cloudflare Worker guide as an example of how to send only MCP calls and agentic commerce interactions without duplicating pageview events.