许多 Google Cloud Marketplace 产品都可以推动客户使用 Google Cloud基础设施和资源。您可以将标签集成到产品中,以便 Google 了解产品在相关客户 Google Cloud 使用方面的影响,Google 可以利用这些信息来展示影响并指导市场推广 (GTM) 投资。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[],[],null,["# Track your SaaS products' associated consumption with labels\n\nMany Google Cloud Marketplace products drive customer usage of Google Cloud\ninfrastructure and resources. You can integrate labels into your products that\ngive Google insights into your products' impact in terms of their associated\ncustomer Google Cloud usage, which Google can use to showcase impact and\nguide go to market (GTM) investments.\n\nThis document describes how to set up partner consumption tracking for\nintegrated software as a service (SaaS) products that you offer through\nCloud Marketplace.\n| **Note:** Partner consumption tracking is optional for most types of SaaS products, but it's required for SaaS products with a *hybrid architecture*, in which a data plane running in your customer's Google Cloud project connects to a control plane running in your Google Cloud project.\n\nLabel schema\n------------\n\nLabels are key-value pairs that you can assign to Google Cloud resources.\nFor more information about labels, see the\n[Overview of labels](/resource-manager/docs/labels-overview).\n\nWhen you use labels for partner consumption tracking, your labels use the\nfollowing format: \n\n goog-partner-solution = \u003cvar translate=\"no\"\u003eSOLUTION_URN\u003c/var\u003e\n\n### Find your product's consumption tracking label\n\nFor each product that you offer through Cloud Marketplace, you can find its\nassociated consumption tracking label in Producer Portal. To find the\nlabel, take the following steps:\n\n1. In Producer Portal, visit the **Overview** page.\n2. In the list of your products, find the product whose consumption you want to track.\n3. Copy and save the value listed for **Consumption tracking label**.\n4. When you integrate your product's consumption tracking, use the consumption tracking label that you saved.\n\nThe direct link to the Producer Portal **Overview** page is: \n\n```\nhttps://console.cloud.google.com/producer-portal?project=YOUR_PROJECT_ID\n```\n\nIntegrate the consumption tracking label with your SaaS product\n---------------------------------------------------------------\n\nTo integrate the consumption tracking label with your SaaS product, you must set\nup your product to add the label to Google Cloud resources as it deploys\nthem.\n| **Note:** Your product must add the label at the resource level, instead of at the project level.\n\nYou can use any of the following methods to add the consumption tracking label\nto the resources that your product deploys:\n\n- Terraform\n- The Google Cloud console\n- Google Cloud CLI\n- REST API\n- Cloud Deployment Manager\n\nWe recommend that you use Terraform, an infrastructure-as-code tool created by\nHashiCorp, because it lets you add a default label at the Google provider level\nthat applies to all Google Cloud resources that Terraform deploys. For\nmore information about using default labels with Terraform, see the\n[Google Cloud Provider Configuration Reference](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#default_labels)\nin the official Terraform documentation.\n\nFor information about adding labels by using the Google Cloud console,\nGoogle Cloud CLI, or the REST API, see\n[Create resources with labels](/compute/docs/labeling-resources#create_resources_with_labels).\n\nFor information about adding labels by using Deployment Manager,\nsee\n[Adding labels to a deployment](/deployment-manager/docs/creating-managing-labels)."]]