Try the MCP server for Google Analytics. Install from
GitHub, and see the
announcement for more details.
Client Libraries Reference
Stay organized with collections
Save and categorize content based on your preferences.
See the Quick start guide for examples of using the
client libraries.
Go
go get google.golang.org/genproto/googleapis/analytics/data/v1beta
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[[["\u003cp\u003eThis page provides quick access to client libraries for Google Analytics Data API in various programming languages including Java, PHP, Python, Node.js, .NET, Ruby and Go.\u003c/p\u003e\n"],["\u003cp\u003eFor each language, you can find installation guides, reference documentation, public artifacts, source code, and samples to help you get started.\u003c/p\u003e\n"],["\u003cp\u003eThese libraries allow developers to easily integrate Google Analytics data into their applications using their preferred language.\u003c/p\u003e\n"],["\u003cp\u003eConsult the quick start guide for practical examples of utilizing these libraries.\u003c/p\u003e\n"]]],["Client library information for Google Analytics Data is provided for Java, PHP, Python, Node.js, .NET, Ruby, and Go. Each language section includes links for installation, reference documentation, public artifacts, client library source code, and code samples. The Go section provides a command to get the code along with links to documentation, artifact and the library source code. A quick start guide with more examples is available.\n"],null,["# Client Libraries Reference\n\nSee the [Quick start guide](/analytics/devguides/reporting/data/v1/quickstart-client-libraries) for examples of using the\nclient libraries. \n\n### Java\n\n-\n [Java client library installation guide](https://github.com/googleapis/google-cloud-java/blob/main/java-analytics-data/README.md)\n\n- [Reference documentation](https://googleapis.dev/java/google-analytics-data/latest/index.html)\n\n- [Public artifact](https://search.maven.org/artifact/com.google.analytics/google-analytics-data)\n\n- [Client library source code](https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-data)\n\n- [Samples](https://github.com/googleanalytics/java-docs-samples/tree/main/google-analytics-data)\n\n### PHP\n\n-\n [PHP client library installation guide](https://github.com/googleapis/php-analytics-data#installation)\n\n- [Reference documentation](https://cloud.google.com/php/docs/reference/analytics-data/latest)\n\n- [Public artifact](https://packagist.org/packages/google/analytics-data)\n\n- [Client library source code](https://github.com/googleapis/php-analytics-data)\n\n- [Samples](https://github.com/googleanalytics/php-docs-samples/tree/main/google-analytics-data)\n\n### Python\n\n-\n [Python client library installation guide](https://github.com/googleapis/google-cloud-python/blob/main/packages/google-analytics-data/README.rst#installation)\n\n- [Reference documentation](https://googleapis.dev/python/analyticsdata/latest/index.html)\n\n- [Public artifact](https://pypi.org/project/google-analytics-data/)\n\n- [Client library source code](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-analytics-data)\n\n- [Samples](https://github.com/googleanalytics/python-docs-samples/tree/main/google-analytics-data)\n\n### Node.js\n\n-\n [Node.js client library installation guide](https://googleapis.dev/nodejs/analytics-data/latest/index.html#installing-the-client-library)\n\n- [Reference documentation](https://googleapis.dev/nodejs/analytics-data/latest/index.html)\n\n- [Public artifact](https://www.npmjs.com/package/@google-analytics/data)\n\n- [Client library source code](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-data)\n\n- [Samples](https://github.com/googleanalytics/nodejs-docs-samples/tree/main/google-analytics-data)\n\n### .NET\n\n-\n [.NET client library installation guide](https://www.nuget.org/packages/Google.Analytics.Data.V1Beta#package-manager)\n\n- [Reference documentation](https://googleapis.dev/dotnet/Google.Analytics.Data.V1Beta/latest/api/Google.Analytics.Data.V1Beta.html)\n\n- [Public artifact](https://www.nuget.org/packages/Google.Analytics.Data.V1Beta)\n\n- [Client library source code](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Analytics.Data.V1Beta)\n\n- [Samples](https://github.com/googleanalytics/dotnet-docs-samples/tree/main/analytics-data)\n\n### Ruby\n\n-\n [Ruby client library installation guide](https://github.com/googleapis/google-cloud-ruby/tree/main/google-analytics-data-v1beta#installation)\n\n- [Reference documentation](https://googleapis.dev/ruby/google-analytics-data-v1beta/latest/index.html)\n\n- [Public artifact](https://rubygems.org/gems/google-analytics-data-v1beta)\n\n- [Client library source code](https://github.com/googleapis/google-cloud-ruby/tree/main/google-analytics-data-v1beta)\n\n### Go\n\n\n```\ngo get google.golang.org/genproto/googleapis/analytics/data/v1beta\n```\n\n\u003cbr /\u003e\n\n- [Reference documentation](https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/data/v1beta)\n\n- [Public artifact](https://pkg.go.dev/google.golang.org/genproto/googleapis/analytics/data/v1beta)\n\n- [Client library source code](https://github.com/googleapis/go-genproto/tree/main/googleapis/analytics/data/v1beta)"]]