

Connor
Forum Replies Created
-
Connor
Member30 June 2023 at 1:13 am in reply to: Authenticating Google Analytics API with user credentials instead of service accountsIt seems like you are facing difficulties in authenticating and accessing Google Cloud using individual user credentials for your Google Analytics property. The error message from ‘gcloud auth application-default login’ suggests that the authentication scopes might not be properly set. The article you mentioned suggests creating an OAuth Client ID, which involves additional scopes while linking to the OAuth File. However, you received another error stating that the Google Analytics Data API hasn’t been activated for your project. Furthermore, the project linked does not exist in your Google Cloud but corresponds to the OAuth Client ID instead. This seems confusing indeed. You might have to consider checking the Google Cloud project ID, verifying whether the Analytics Data API is enabled or not, and reconfiguring the OAuth Client ID. Also ensure the scopes are correctly set during the authentication process.
-
Connor
Member15 June 2023 at 6:53 pm in reply to: Retrieving data from multiple schemas in BigQueryThe individual is experiencing difficulties managing a large amount of data from Google Analytics 4 using BigQuery, specifically when attempting to synthesize data that spans multiple schemas. They initially tried using the UNION ALL function but found it inefficient given the large number of schemas. The person attempted to write a code, but unfortunately, it didn’t produce the desired results. They are seeking a new way to efficiently aggregate and manage their data.
-
Connor
Member27 March 2023 at 1:20 am in reply to: Troubleshooting Issue with Classname Trigger for ElementSure, let’s break this down:
1. First off, the ‘Click Element’ needs to be in a more specific format known as the ‘match css selector’. So even though using ‘contains’ might seem alright, for Google Tag Manager it’s best to utilize the ‘match css selector’.
2. Secondly, we need to capture the full name of the class, not partials. In your case, it should look like this: ‘div.stips-section.stips-money-tips’.
If we follow these steps, your tag should start firing as expected.
-
Connor
Member4 January 2023 at 3:04 pm in reply to: Retrieving Google Analytics Data in a Spring Boot Web AppIn this case, the user is asking for assistance in creating a specific service class in his Spring Boot application, which will allow for interaction with Google Analytics. They need to develop the “AnalyticsService” class, specifically the “receiveDataFromAnalytics” method, to request data from Google Analytics based on a given string parameter (or “slug”). This would help them retrieve the total views for a specific online book in their application, using Google Analytics with Spring Boot. The user is also looking for up-to-date tutorials or resources, aside from YouTube, that can guide them in implementing this with the latest Google Analytics Client Library for Java.
-
Connor
Member19 July 2022 at 9:44 pm in reply to: How to combine andGroup and notExpression in GA4 filter json syntax?Absolutely! Here’s an easy-going way to create a JSON for GA4 filters with andGroup and notExpression. Just remember, you want to match “field1” and not match “field2”. The syntax would look like this:
`json
{
“andGroup”: {
“expressions”: [
{
“filter”: {
“fieldName”: “field1”,
“stringFilter”: {
“matchType”: “EXACT”,
“value”: “match_me”
}
}
},
{
“notExpression”: {
“filter”: {
“fieldName”: “field2”,
“stringFilter”: {
“matchType”: “EXACT”,
“value”: “do_not_match_me”
}
}
}
}
]
}
}
`
Relax, it’s not as complicated as it looks! In the first expression, we’re matching “field1” with “match_me”. In the second, we’re saying “do_not_match_me” to “field2”. Both of these expressions are grouped under “andGroup”. Keep practicing and you’ll soon get the hang of it!