简体   繁体   中英

How to send a page link as a parameter in google analytics API and retrieve the report data using C#

I am new in Google Analytics .

I need to pass a page url**(localhost/controller/action)** to Google Analytics by using the Google Analytics API .

I have been unable to find the correct way of doing this in the Google Analytics API documentation. How do I pass a page URL to that API.

Any suggestion or answer is highly appreciable.

The Google Analytics API is only for Reading information you don't actually uploaded anything to it. With the exception of daily uploads which I suspect isn't what you are after.

I think what you are looking for is the measurement protocol which will allow you to add data to Google analytics in a similar way that the JavaScript Web Tracking snippet does. Unfortunately Google hasn't released a client library to help you do this with C#. Its not that hard to work out its a simple http POST or GET and the info is up.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM