<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PowerQuery to access Google Analytics API Data in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2207829#M65366</link>
    <description>&lt;P&gt;thanks for the reply&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199176" data-lia-user-login="v-yingjl" class="lia-mention lia-mention-user"&gt;v-yingjl&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We did tried that article, but when we tried below URL using our clientid and codes, it do not work.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://accounts.google.com/client_id=YourClientID
&amp;amp;response_type=code
&amp;amp;redirect_uri=urn%3aietf%3awg%3aoauth%3a2.0%3aoob
&amp;amp;approval_prompt=force
&amp;amp;scope=https%3a%2f%2fwww.googleapis.com%2fauth%2fanalytics.readonly
&amp;amp;access_type=offline&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Nov 2021 13:57:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-25T13:57:14Z</dc:date>
    <item>
      <title>PowerQuery to access Google Analytics API Data</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2199309#M65071</link>
      <description>&lt;P&gt;We are tryign to build PowerQuery to access Google Analytics API Data using below syntax.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are keep getting error that client unauthorized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we try to create the Cliendid information using google cloud platform and got refresh toekn using Google developer OAuthplayground console.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We may not be gettting these 3 parameters incorrect. there might be a better way to get authentication using the powerquery.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any one can share what we are doing wrong, that would help. We&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
clientId = "client_id=fdgdfsgdsgdfgdfgdfgdfsgdfgdsfgdsfg.apps.googleusercontent.com",
addSecret = clientId &amp;amp; "&amp;amp;client_secret=ghdfghfg76tr8ghfjnmnt7rut7",
addRefreshToken = addSecret &amp;amp; "&amp;amp;refresh_token=1//04SFLj9n4wHgaCgYIARAAGAQSNwF-L9Ir5QOoHwSzGR3Ics2SAeb58gTnqxRDYwO87zTyZz3TLDbmpg1BfbQ0PEhS7GCi8XsLW-s",
url = addRefreshToken &amp;amp; "&amp;amp;grant_type=refresh_token",
GetJson = Web.Contents("https://accounts.google.com/o/oauth2/token",
[
Headers = [#"Content-Type"="application/x-www-form-urlencoded"],
Content = Text.ToBinary(url)
]
),
FormatAsJson = Json.Document(GetJson),
access_token = FormatAsJson[access_token]
in
access_token&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 22:50:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2199309#M65071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-19T22:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: PowerQuery to access Google Analytics API Data</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2199338#M65074</link>
      <description>&lt;P&gt;Hi I'm having the same issue. Has anyone figured this out yet?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 23:37:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2199338#M65074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-19T23:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: PowerQuery to access Google Analytics API Data</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2201570#M65134</link>
      <description>&lt;P&gt;Any one Have tried this above route to acceess Google Analytics API data using PowerQuery instead of Google Analytics connector?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 13:03:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2201570#M65134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-22T13:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: PowerQuery to access Google Analytics API Data</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2203123#M65183</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Since Google Analytics uses OAuth2 authentication method, please try to refer this document about OAuth autentication in Power Query:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-query/handlingauthentication#implementing-an-oauth-flow" target="_self"&gt;Implementing an OAuth Flow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simliar Blog:&amp;nbsp;&lt;A href="https://kohera.be/power-bi/how-to-get-google-analytics-data-in-power-query/" target="_self"&gt;HOW TO GET GOOGLE ANALYTICS DATA IN POWER QUERY&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yingjie Li&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 07:53:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2203123#M65183</guid>
      <dc:creator>v-yingjl</dc:creator>
      <dc:date>2021-11-23T07:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: PowerQuery to access Google Analytics API Data</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2207829#M65366</link>
      <description>&lt;P&gt;thanks for the reply&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199176" data-lia-user-login="v-yingjl" class="lia-mention lia-mention-user"&gt;v-yingjl&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We did tried that article, but when we tried below URL using our clientid and codes, it do not work.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://accounts.google.com/client_id=YourClientID
&amp;amp;response_type=code
&amp;amp;redirect_uri=urn%3aietf%3awg%3aoauth%3a2.0%3aoob
&amp;amp;approval_prompt=force
&amp;amp;scope=https%3a%2f%2fwww.googleapis.com%2fauth%2fanalytics.readonly
&amp;amp;access_type=offline&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 13:57:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/2207829#M65366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: PowerQuery to access Google Analytics API Data</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/3616433#M118779</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;were&amp;nbsp;you able to find a solution? I used the GA native connector but had some issues with my data sometimes. As a workaround, maybe you can try to test your connection with a 3rd party connector.&amp;nbsp;I've tried&amp;nbsp;windsor.ai, supemetrics and funnel.io. I stayed with windsor because it is much cheaper so just to let you know other options.&amp;nbsp;In case you wonder,&amp;nbsp;to make the connection&amp;nbsp;first&amp;nbsp;search for the GA connector in the data sources list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, just grant access to your GA account using your credentials, then on&amp;nbsp;&lt;STRONG&gt;preview and destination&lt;/STRONG&gt;&amp;nbsp;page you will see a preview of your GA fields:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There just select the fields you need. Finally, just select PBI as your data destination and finally just copy and paste the url on&amp;nbsp;&lt;STRONG&gt;PBI --&amp;gt; Get Data --&amp;gt; Web --&amp;gt; Paste the url.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 20:43:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerQuery-to-access-Google-Analytics-API-Data/m-p/3616433#M118779</guid>
      <dc:creator>QueryWhiz</dc:creator>
      <dc:date>2024-01-04T20:43:15Z</dc:date>
    </item>
  </channel>
</rss>

