In this tutorial, we are going to see how to use Google analytics with PHPDS. Last tutorial we have created APIs for our Data App. To do this tutorial you need to do the Tutorial 1 and Tutorial 2.
1. First of all we need to create a Google Analytics account. Please follow below tutorial and obtain a tracking code which is started like UA-*******
2. Got to your Data Apps -> APIs and edit the API.
Check Enable Analytics check box and Add your Google Analytics tracking ID and save it
3. That’s All. Now you can see your API’s analytics in the Google Analytics Dashboard. (Go to Real Time Analytics and check)