středa 12. července 2017

Setting of Google Analytics API

This tutorial will lead you through setting of Google Analytics API.

1. Go to the Google API dashboard and in the left corner click on Select a project.





2. If you don´t have any, let´s create one with the plus button on the right side.


3. You can create up to 12 projects. Give it a name and create it. It will get unique ID.


4.  Now you have to select the Analytics API for your project. On the Dashboard you can find it in Other popular APIs, or use search tool. Click on it. 


5. Now you have to Enable Analytics API. Dashboard will warn you, that your API won´t work without creating Credentials. Let´s do it. 




6. On the left side select Credentials.




7. Now just select OAuth Client ID. APIs manager warn you, that you have to Create consent screen. Click on the button. 



8. Now APIs manager filled in your email address and you have to just specify your Product name and if you want to add Homepage, Product page and other things. 




9. If you have created Consent screen, now you can create Client ID. From Application type select Other and specify name of your Client. 





10. Now you can see your client in APIs manager Credentials. If you want to view your Client ID and Client Secret, click on the Edit button on the right side. 




11. Now you can copy your Client ID and Secret or download it as a .json file to your computer. 


Žádné komentáře:

Okomentovat