I wish to extract (via the Analytics Core Reporting API) all the transactions made TODAY by users that had a specific ga:eventCategory few weeks ago. I'm looking to see the date of a transaction and all dated of event that are related to that transaction. If GA was sql I would join by the ga user and take in the dimension both his transactions date and his dimension update date... Thanks. Noam.
How can I query Google Analytics condition on TWO different dates?
334 Views Asked by NoamZ At
1
There are 1 best solutions below
Related Questions in GOOGLE-ANALYTICS
- Loading Google Analytics after the user consents to cookie usage
- Google Analytics doesnt register events when redirected in a second page
- Remix App - Error: Minified React error #418 / #423 - on Google Analytics gtag script
- Google Analytics 4 does not show data (realtime/debugview)
- Google Analytics API - requesting all deviceId for particular UTM-marker
- Firebase analytics data not accurate
- GA Preview Says Tags are Working on Ngrok But Not on Production?
- link_url is truncating URL after 100 character in GA4
- more_than_30_sec event in GA4 strange behavior
- Rest arguments not working for gtag setup
- Retrieve visitor's Google query, pass it to the URL parameters and collect it for analytics purposes
- how do i do to configure user consent in ngx-google-analytics?
- How do I create a GA4 report showing event count when the events have unique/custom names?
- Google Analytics API error - User does not have sufficient permissions for this profile
- Events transmitted through the Measurement Protocol with the user_id are not received in GA4
Related Questions in GOOGLE-ANALYTICS-API
- Google Analytics API - requesting all deviceId for particular UTM-marker
- Bug in GA4 Data API: DimensionFilter Fails with Full-Width Characters in Event Names
- Google Analytics API error - User does not have sufficient permissions for this profile
- Is there any method to download tables from tableau for further using?
- Do Google Cloud API Libraries support Oauth2 on behalf of other users?
- Can we fetch ga:users and ga:newusers in single fetch?
- GA runReport get crashFreeUsersRate by special app
- Namespaces not properly working after using php-scoper
- What dimensions and metrics can replace GA 3 properties in GA 4 (GA - Google Analytics)
- GA4 Service Account: User does not have sufficient permissions for this profile
- No results with dimensions and metrics
- Different totals for queries with multiple dimensions in Google Analytics data using googleanalyticsR
- inquiry regarding clientid retrieval with _ga cookie disabled
- how to calculate the time spent on each page with googleAnalyticsR
- Google analytics admin api : The caller does not have permission
Related Questions in UNIVERSAL-ANALYTICS
- Extracting hit-level data from Google Analytics
- Universal analytics backup & story to big-queary
- How to Track E-mail read receipts using google analytics-4 , via image pixel tracking technique?
- Need help recreating a UA advanced segment in BigQuery
- I'm new to GA4. Is there any best way for fetching data from GA4?
- Discrepancies in universal analytics and GA4 analytics data
- UA to GA4 transition - APOS live data gateway
- Can't complete Universal Analytics -> GA4 migration
- How to make Google Analytics send requests only from the main page of the site
- Google Analytics UA to GA4 migration
- Google Analytics (UA): How the hell is it possible that the number of 'New Visitor' users is greater than the number of 'New Users'?
- Universal Analytics Java API zero results but API explorer has results with the same parameters
- GA4 - gtag set behaviour
- How to define Content Group in GA4 with Javascript (ie: using gtag instead of Tag Manager)
- Python API call sampling issue
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Like I have indicated in my comment you can segment the data to include only those users who have the specific event. Segmentation works fine with the core reporting API.
Your segment defintion would look like this:
(where obviously the thing in [brackets] is a placeholder that needs to be substituted for the event category name). The "users::" prefix means you are segmenting by user scope (as opposed to sessions), so this will include all sessions in the selected timeframe for users who had the event at least in one of their session (even if the event was outside the selected timeframe).
Select transactionId as dimension and some metric (revenue) and todays date and you are done. Or you would be done if this was actually going to work, but there are at least two caveats:
Google Analytics does not work in realtime, so it's unlikely that TODAYs transactions are fully available (Google says it's 24 hours until the data is processed - actually it might happen faster, but you cannot rely on it).
If a user has deleted his or her cookie she won't be recognized as a recurring user and GA will be unable to segment her out. The longer the interval between the event and the transaction the less likey it is that the GA cookie is still present.
So even with a technically correct query it might be that you won't get the data you need.