Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
141 views
in Technique[技术] by (71.8m points)

python - Automating Google analytics service

I need to develop a project where in i need to get the google analytic account credentials from users and display their stats on my project using google analytics 4 API (GA4). Is it possible to automate the complete process of adding the user's account to my service account? I have tried documentation given by about google analytics 4. API call code is not straight forward.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can ask the users to add your account to their Google Analytics account or property. GA4 Admin highlight User Management

My advice would be to grant access on property level because you can have multiple properties under one account. By granting access on property level, you only access the properties you need to pull data from.

Also, look into GA4 and the BigQuery link. You might build one query that can pull the data from GA and export it to your project.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...