filmov
tv
Python and Google Analytics 4 Tutorial | Most Popular Posts
Показать описание
In this video, we'll imagine a mock scenario where the Developer team needs you to query Google Analytics to get the most popular posts from the past 24 hours, using Python, and writing that data to a JSON file, where the dev team can then apply it to the website's trending posts.
We'll learn
- How to set up a Google project and correct permissions to access the Google Analytics Data API
- How to interact with the Google Analytics 4 API with Python
- How to effectively read documentation
- How to retrieve the 5 most popular posts from Google Analytics using Python
- How to write this data to a file
I'll prompt you with opportunities to write the code and find the solution, yourself.
Timestamps
00:00 Intro
00:30 The scenario
01:14 Visual example and explanation
02:08 Set up Python environment
03:16 Google Analytics API documentation
03:42 Enable the API
05:36 Add service account to property
06:57 Configure authentication
07:48 Install client library
08:21 Make API call
09:59 Writing Python script
13:55 Your turn - pseudocode
16:02 My solution
18:33 Write data to file
20:18 Want to see the automation?
** Career Path Coding Tracks **
** My Coding Blueprints **
** I write regularly **
** FREE EBOOKS **
LET'S CONNECT!
#googleanalytics4 #pythonprogramming #devops
** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you.
We'll learn
- How to set up a Google project and correct permissions to access the Google Analytics Data API
- How to interact with the Google Analytics 4 API with Python
- How to effectively read documentation
- How to retrieve the 5 most popular posts from Google Analytics using Python
- How to write this data to a file
I'll prompt you with opportunities to write the code and find the solution, yourself.
Timestamps
00:00 Intro
00:30 The scenario
01:14 Visual example and explanation
02:08 Set up Python environment
03:16 Google Analytics API documentation
03:42 Enable the API
05:36 Add service account to property
06:57 Configure authentication
07:48 Install client library
08:21 Make API call
09:59 Writing Python script
13:55 Your turn - pseudocode
16:02 My solution
18:33 Write data to file
20:18 Want to see the automation?
** Career Path Coding Tracks **
** My Coding Blueprints **
** I write regularly **
** FREE EBOOKS **
LET'S CONNECT!
#googleanalytics4 #pythonprogramming #devops
** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you.
Комментарии