---
updatedAt: 2025-11-06T18:09:01.000Z
agentTools:
  projectIndex: https://developer.marchex.io/llms.txt
---

# Updating a Google Analytics 4 Configurations

Using the PUT method with the Users endpoint will allow you to Update an existing User

**Updating a Google Analytics 4 configuration will replace the entire configuration with the specified message body, so it is critical to specify the new configuration in its entirety. Updates to individual parameters with an incomplete payload will overwrite the existing configuration**

**PUT[https://edgeapi.marchex.io/marketingedge/v5/api/users/\<integrationconfigurationid>](https://edgeapi.marchex.io/marketingedge/v5/api/users/)**

```json Request
{
  "configuration_name": "GoogleAnalytics4 Integration Name",
  "configuration": {
    "measurement_id": "5244322e-083f-4574-bdea-64c824831ca4",
    "api_secret": "secret-key"
  },
  "config_data": {
    "session_based_dni_upload_criteria": "All",
    "events": [
      {
        "name": "Name",
        "call_criteria": "AllMatchedCalls",
        "min_duration_value": 0
      }
    ],
    "event_parameters": [
      {
        "name": "Name",
        "static_value": true,
        "value": "1"
      }
    ],
    "user_parameters": [
      {
        "name": "Name",
        "static_value": true,
        "value": "1"
      }
    ]
  },
  "domain_access": {
    "billing_groups": [
      "4455",
      "4456"
    ],
    "group_owners": [
      "33344",
      "44433"
    ]
  },
}
```

If the request is handled successfully, the following response will be returned:

```json Response
{
  "integration_configuration_id": "7d58c388-2acf-40a4-9836-54b770270677",
  "configuration_name": "GoogleAnalytics4 Integration Name",
  "type": "GoogleAnalytics4",
  "configuration": {
    "measurement_id": "5244322e-083f-4574-bdea-64c824831ca4",
    "api_secret": "secret-key"
  },
  "config_data": {
    "session_based_dni_upload_criteria": "All",
    "events": [
      {
        "name": "Name",
        "call_criteria": "AllMatchedCalls",
        "min_duration_value": 0
      }
    ],
    "event_parameters": [
      {
        "name": "Name",
        "static_value": true,
        "value": "1"
      }
    ],
    "user_parameters": [
      {
        "name": "Name",
        "static_value": true,
        "value": "1"
      }
    ]
  },
  "status": "enabled",
  "domain_access": {
    "billing_groups": [
      "4455",
      "4456"
    ],
    "group_owners": [
      "33344",
      "44433"
    ]
  },
  "created_datetime": "2023-04-06T13:35:07.931Z",
  "modified_datetime": "2023-04-06T13:35:07.931Z"
}
```

***

### Fields that are used when creating a GA4 Integration Configuration

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Details
      </th>

      <th>
        Other
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        configuration\_name
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Required
      </td>
    </tr>

    <tr>
      <td>
        configuration -> measurement\_id
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Required
      </td>
    </tr>

    <tr>
      <td>
        configuration -> api\_secret
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>
        Required
      </td>
    </tr>

    <tr>
      <td>
        config\_data -> session\_based\_dni\_upload\_criteria
      </td>

      <td>
        string
      </td>

      <td>
        * All  
        * Session-Matched  
        * Google Client ID
      </td>

      <td>
        Required
      </td>
    </tr>

    <tr>
      <td>
        events
      </td>

      <td>
        array
      </td>

      <td>
        Array of Events\
        Min = 1\
        Max = 10
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        events -> name
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        events -> call\_criteria
      </td>

      <td>
        string
      </td>

      <td>
        * All Matched Calls  
        * Min Duration  
        * Call Tag
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        events -> min\_duration\_value
      </td>

      <td>
        int
      </td>

      <td>

      </td>

      <td>
        Required If call\_criteria is set to Min Duration
      </td>
    </tr>

    <tr>
      <td>
        events -> call\_tag
      </td>

      <td>
        string
      </td>

      <td>
        call\_tag\_id
      </td>

      <td>
        Required If call\_criteria is set to Call Tag
      </td>
    </tr>

    <tr>
      <td>
        event\_parameters
      </td>

      <td>
        array
      </td>

      <td>
        Array of Event\_Parameters\
        Min = 0\
        Max = 25
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        event\_parameters -> name
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        event\_parameters -> static\_value
      </td>

      <td>
        boolean
      </td>

      <td>
        true, false
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        event\_parameters -> value
      </td>

      <td>
        string
      </td>

      <td>
        static = true, user provided value\
        static = false, see below for valid options
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        user\_parameters
      </td>

      <td>
        array
      </td>

      <td>
        Array of User\_Parameters\
        Min = 0\
        Max = 25
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        user\_parameters -> name
      </td>

      <td>
        string
      </td>

      <td>

      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        user\_parameters -> static\_value
      </td>

      <td>
        boolean
      </td>

      <td>
        true, false
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        user\_parameters -> value
      </td>

      <td>
        string
      </td>

      <td>
        static = true, user provided value\
        static = false, see below for valid options
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        domain\_access
      </td>

      <td>
        object
      </td>

      <td>

      </td>

      <td>
        Minimum of one billing\_group or group\_owner
      </td>
    </tr>

    <tr>
      <td>
        domain\_access -> billing\_groups
      </td>

      <td>
        array
      </td>

      <td>
        Array of billing\_group\_id
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        domain\_access -> group\_owners
      </td>

      <td>
        array
      </td>

      <td>
        Array of group\_owner\_id
      </td>

      <td>

      </td>
    </tr>
  </tbody>
</Table>

### List of supported Values for event\_parameters and user\_parameters

* [Google Analytics 4 Values](https://developer.marchex.io/docs/google-analytics-4-values)