-
Trouble obtaining Access Token from Google API
Hey there, me again, the newbie on the GTM+GA block. So, here’s the thing, I’m playing around trying to display Google Analytics (GA4) reports on my webpage. To do so, I’ve set up the OAuth Client Id in the Google Cloud console. Also took care of a few other setups there. I’m in the process of getting the access token from Google Api via a javascript code I’ve cooked up. However, funny story, I’m getting an exception. Here, check it out:
Once the authentication hurdle is out of the way, the plan’s to integrate GA reports with my web page. Now, you’re probably curious, so here’s the javascript code I’ve been tinkering with – it’s supposed to get me that access token:
[Add JavaScript code here]
Alright, I’ve got to run. But if you can help out or know a guru who can, let me know! How can we bust this issue?
Cheers,
Prabhash
Log in to reply.