New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Google Tag container lookup and destinations list REST data points #6078
Comments
Hi @hussain-t when you are back next week, please could you prioritise this IB as it is blocking 6080 which is ready to go in the EB (It's also blocking 6079 which I can see you are also working on). Thanks! |
IB ✅ |
QA Update:
|
Thanks, @wpdarren; my bad; there was a typo in the QAB. It should be
|
QA Update: ✅@hussain-t thank you for your help! Verified:
|
REST data point wrappers for the new Tag Manager API endpoints for container lookup and listing destinations need to be implemented, as part of the
Analytics_4
module, to get information on the Google Tag configuration for the GA4 web data stream.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
gteSupport
should be added to Site Kit.GET:container-lookup
should be added to theAnalytics_4
module class.GET:container-destinations
should be added to theAnalytics_4
module class.gteSupport
feature flag is enabled, theAnalytics_4
module should, going forward, require thehttps://www.googleapis.com/auth/tagmanager.readonly
scope.Implementation Brief
gteSupport
tofeature-flags.json
.Analytics_4::get_scopes()
, add thehttps://www.googleapis.com/auth/tagmanager.readonly
scope if thegteSupport
feature flag is enabled.Analytics_4::get_datapoint_definitions
:GET:container-lookup
with the value of the array containingservice
with the valuetagmanager
.GET:container-destinations
with the value of the array containingservice
with the valuetagmanager
.Analytics_4::create_data_request
:GET:container-lookup
with the following:get_service( 'tagmanager' )::AccountsContainers::lookup
method call.destinationID
if it is set in$data['destinationID']
.GET:container-destinations
with the following:accountID
andcontainerID
parameters. If either is missing, return an error.get_service( 'tagmanager' )::AccountsContainersDestinations::listAccountsContainersDestinations
method call.parent
parameter using theaccountID
andcontainerID
parameters like:accounts/{account_id}/containers/{container_id}
and pass it to the method call.Analytics_4::parse_data_response
:GET:container-lookup
that should return theContainer
object of the response.GET:container-destinations
that should return theListDestinationsResponse
collection of the response.Test Coverage
Analytics_4::test_get_datapoints
test to include the new data points.QA Brief
gteSupport
feature flag is available.container-lookup
endpoint from the browser console and verify it returns the container object if available.destinationID
with yours. It can be obtained from the GTM console.container-destinations
endpoint from the browser console and verify it returns the destination array if available. Otherwise an empty array.accountID
andinternalContainerID
with yours. It can be obtained from the GTM console.Changelog entry
The text was updated successfully, but these errors were encountered: