WebSettings | GTM - GA
GTM & GA data fieds are defined as GtmId(ContainerID) & GaId(MeasurementID) at WebSettings entity.
GTM(Google Tag Manager)
Google Tag Manager is a tag management system (TMS) that allows you to quickly and easily update measurement codes and related code fragments collectively known as tags on your website or mobile app.
GTM Container ID is required to integrate with the tag manager. GtmId(ContainerID)
GA(Google Analytics)
Google Analytics lets you measure your advertising ROI as well as track your Flash, video, and social networking sites and applications.
GA Measurement ID is required to integrate with the tag manager. GaId(MeasurementID)
Add or Update GTM ContainerID or GA MeasurementID
With this PATCH endpoint, all WebSettings properties can be updated separately.
REQUEST: {BASE_URL}/v2.0/webSettings/{appId}
METHOD: PATCH
AUTHORIZATION: Bearer token
SAMPLE REQUEST:
{
"gtmId": "GTM-XXXXX",
"gaId": "GTM-ZZZZZ"
}
SAMPLE RESPONSE:
{
"success": true,
"data": {
"appId": "98564160-8a98-4933-9263-a2e53b881b32",
"theme": "None",
"subdomain": "test",
"allowIndexing": false,
"updateDate": "2023-02-24T14:37:34.5858414Z",
"createDate": "2022-08-16T10:42:07.645Z",
"gtmId": "GTM-XXXXX",
"gaId": "GTM-ZZZZZ"
}
}