1. Follow the steps in [Set up API access](https://developers.google.com/data-manager/api/devguides/quickstart/set-up-access) to enable the
   Data Manager API and generate credentials.

2. [Install a client library](https://developers.google.com/data-manager/api/devguides/quickstart/install-library).

3. Use [Field mappings](https://developers.google.com/data-manager/api/devguides/events/analytics/measurement-protocol/upgrade/field-mappings) to convert your Measurement Protocol requests to
   Data Manager API requests.

4. [Send events](https://developers.google.com/data-manager/api/devguides/events/analytics/recommended-custom-events/send-events) to your Google Analytics property using the Data Manager API.


   > [!NOTE]
   > **Note:** The Data Manager API uses a [fast-fail
   > model](https://developers.google.com/data-manager/api/devguides/concepts/understand-errors#fast-fail), where *all* records in a request fail if *any* record has an error. The fast-fail model of the Data Manager API differs from the error model of the Measurement Protocol, which only reports errors for test requests sent to the [validation server](https://developers.google.com/analytics/devguides/collection/protocol/ga4/validating-events).

   <br />

5. Verify the results using [diagnostics](https://developers.google.com/data-manager/api/devguides/diagnostics) or in Google Analytics using
   one of the following methods:

   - Check the [Realtime report](https://support.google.com/analytics/answer/9271392).
   - Monitor the events in [DebugView](https://support.google.com/analytics/answer/7201382).