Vigyata.AI
Is this your channel?

Python and Google Analytics 4 Tutorial | Most Popular Posts

20.6K views· 459 likes· 21:03· May 17, 2023

🛍️ Products Mentioned (9)

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 ** Web Developer - https://geni.us/jBigBd Software Engineer - https://geni.us/AbMxjrX Machine Learning - https://geni.us/GporLlT Python Developer - https://geni.us/tv2FJBU DevOps Engineer - https://geni.us/MgHtJ ** My Coding Blueprints ** Learn to Code Web Developer Blueprint - https://geni.us/HoswN2 AWS/Python Blueprint - https://geni.us/yGlFaRe ** I write regularly ** https://travis.media ** FREE EBOOKS ** 📘 https://travis.media/ebooks LET'S CONNECT! 📰 LinkedIn ➔ https://www.linkedin.com/in/travisdot... 🐦 Twitter ➔ https://twitter.com/travisdotmedia​ 🙋🏼‍♂️ Website ➔ https://travis.media #googleanalytics4 #pythonprogramming #devops ** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you.

🎬 More from Travis Media