Passing date in custom GA4 event - google-analytics-4

I want to start passing dates in my custom Google Analytics 4 events so they can be interpreted in reports. However I could not find a reference in the docs on how to format this date. Is this functionality supported by GA4 custom events, and if so, what format should I use?

The field will be interpreted as a string, however you can export the data to BigQuery and manage it there in a custom way.

Related

Can anyone suggest how can I translate the dynamic data to different language which comes from remote API?

I am using flutter_localozation for localizing my app creating .arb files for different languages. However, I am not able to localize the data coming from API, how can I do so?
I am not aware of this kind of translation but I would like to suggest you - If possible try to add one parameter in api - which represents selected language and based on that you will get response from API. For this you have to implement translation in database as well. For some static strings you can manage it from app side and for dynamic response it will be manage using database.
According to me if possible, get translated JSON response based on the selected language from Backend.
Because by doing this, you can reduce translating stuff from the App side.

Google Analytics Embed Api - Compare To Past

I can't see a way in the embed api to implement a chart comparison between two date ranges. There doesn't seem to be anything in the options object to achieve this.
I've found two posts:
Comparing Date Ranges in Google Analytics API
Which suggests querying the first date range, then the second. I'm assuming the idea is to superimpose one ato the other, but am not sure how to achieve this.
Using Google Analytics APIs to create charts comparing data across date ranges
This one suggests OP found a solution with the same approach, but no tips on how to implement it. If anyone can point me at existing sample code, I'd be grateful.
You can do it with Embed API Third Party Visualizations:
You can recreate the demo from documentation: https://ga-dev-tools.appspot.com/embed-api/third-party-visualizations/

How to extract view meta data from tableau

I need to extract metadata from view. When I was reading tableau rest API documentation there is no ways mention in the rest api for sheet metadata and also not mention measure and dimension API extraction. If anyone knows the way how to extract data please help me
Take a look at the Tableau Javascript API...specifically the getData method.
The Rest API is used for automating Tableau Server tasks (add users, create schedules, set permissions, etc).
You can embed a hidden extension into your dashboard that can access worksheet, field and filter information. See the docs on extensions here.
Here is a good example of one that could get you started on pulling the worksheet and field information.
Use the Tableau Metadata API - https://help.tableau.com/current/api/metadata_api/en-us/index.html
You can find sample scripts here - https://github.com/tableau/metadata-api-samples

Google analytics API missing data?

I am trying to access data via the analytics reportingv4 API. I am using the.net version in visual studio. I can get it to return data but just not the data I want.
I am using a specific account that only has one view attached to it. If I try to view the data I'm looking for, using the web interface, it works, by filtering it using the search box. For example, there is currently 20 page hits for today. If I try the same, using the API, no data is returned. If I remove the filter, from my code, data is returned but none of the pages that I am looking for.
Any ideas?
Thanks
I was being silly. I eventually noticed that I was supplying a date range for the year 2017! The processing which

API Call Returns Numerous Sheets but None That I Need

My use case at high level is - get the sheet out of Smartsheet via API (with GET), transform data in a ETL tool and load into a relational db for further manipulation and reporting.
All I'm trying to do is retrieve data for sheets that have been shared with me (a couple as Viewer, 2 as Editor (cannot edit), 2 as Editor (can edit) and 2 as Owner). I'm making a pretty basic API call to get a list of sheets https://api.smartsheet.com/2.0/sheets (with auth token and other header attrs) and the problem is that I'm getting all kinds of sheets back (~18,000) in the results but none are the ones I need (see above).
What am I doing wrong?
Thank you!
P.S. Using specific sheet IDs is not going to be feasible as I won't know them when extracting data anyways. Another thing - I will be filtering out the sheets I don't need with the ETL tool's help anyways, just need to understand why the ones I'm after aren't coming back since I'm using the token of that user.
The command https://api.smartsheet.com/2.0/sheets?includeAll=true will return every sheet that you can access.