--- url: "https://developers.google.com/analytics/devguides/collection/ga4" titulek: "Google Analytics for developers | Google for Developers" h1: "Google Analytics for developers Stay organized with collections Save and categorize content based on your preferences." popis: "" jazyk: "en" kanonicka: "https://developers.google.com/analytics/devguides/collection/ga4" drobecky: ["Google Analytics", "Google Analytics for developers"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 21:47:51" znaku: 4379 slov: 532 kodovani: "iso-8859-2" sha256: "ec721208c0c7fd9650b9ab1db3a889ac48f0b23f77048f1433dfaada8309fd49" --- Google Analytics for developers Stay organized with collections Save and categorize content based on your preferences. Before using the Google Analytics APIs, set up your account, property, and data stream by following the steps in the Get started guide. Measurement setup guides are available for tagging websites, tagging apps, and measuring ecommerce. Google Analytics offers several developer products to automate your solution, including the Data API, Admin API, Measurement Protocol, and User Deletion API. If you are new to Google Analytics, consider taking the Google Analytics Certification course on Skillshop or watching the training videos on YouTube. Before using the Google Analytics APIs and developer products, make sure you've followed the steps in [Get started with Google Analytics](//support.google.com/analytics/answer/9304153) to set up your account, create a property, and add a data stream. **Terms of Service:** By using Google Analytics, you agree to the Google Analytics [Terms of Service](//marketingplatform.google.com/about/analytics/terms/us/). Review these terms carefully. Set up measurement For more details on setting up Google Analytics, see the following developer guides: **Tag a website**: [The Google Tag and Tag Manager](/analytics/devguides/collection/ga4/tag-options) **Tag an app**: [Set up app measurement](/analytics/devguides/collection/app) **Measure ecommerce**: [Set up a purchase event](/analytics/devguides/collection/ga4/set-up-ecommerce) **Verify & troubleshoot**: [Verify and troubleshoot setup](/analytics/devguides/collection/ga4/troubleshoot) Automate your Analytics solution Google Analytics offers the following developer products that you can use to manage your Google Analytics integration at scale: Run reports and export audiences using the [Data API](/analytics/devguides/reporting/data). Configure your accounts, properties, and data streams with the [Admin API](/analytics/devguides/config/admin). Send events for server-to-server and offline interactions with the [Measurement Protocol](/analytics/devguides/collection/protocol/ga4). Process deletions of data associated with a given user identifier with the [User Deletion API](/analytics/devguides/config/userdeletion/migration). You are responsible for complying with all applicable privacy laws and regulations, including obtaining necessary user consent for data collection and usage. Google Consent Mode provides a way to adjust your Google tags' behavior based on the consent choices of your users. Implementing Consent Mode is essential for respecting user privacy preferences while still enabling valuable measurement and analytics. To understand how Consent Mode works and its benefits, read the [Consent mode overview](/tag-platform/security/guides/consent?consentmode). Consent mode is typically implemented using a Consent Management Platform (CMP) or a custom consent banner. Detailed instructions are available for: [Consent mode on websites](/tag-platform/security/guides/consent?consentmode) [Consent mode for apps](/tag-platform/security/guides/app-consent?consentmode) We recommend that you consult with your legal team to ensure your consent mechanisms meet all regulatory requirements. Learn about Google Analytics If you're new to Google Analytics, we recommend starting with the [Google Analytics Certification on Skillshop](//skillshop.docebosaas.com/learn/courses/14810/google-analytics-certification). The certification course offers videos and training modules to help you learn about Google Analytics and how you can get the most out of it for your business. You can also watch a subset of these training videos on our [YouTube channel](//youtube.com/playlist?list=PLI5YfMzCfRtZNBRmhTEJkcHYvN_x_wpxM&si=BXTMQPzi6xJEL7Fm). For information about the Google Analytics property, see [Meet the next generation of Google Analytics](//support.google.com/analytics/answer/10089681). Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2026-09-10 UTC.