Follow the steps in Set up API access to enable the Data Manager API and generate credentials.
Use Field mappings to convert your Measurement Protocol requests to Data Manager API requests.
Send events to your Google Analytics property using the Data Manager API.
Verify the results using diagnostics or in Google Analytics using one of the following methods:
- Check the Realtime report.
- Monitor the events in DebugView.
Steps to upgrade
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 2026-05-07 UTC.