How can I show my google analytics traffic report via asp.net or classic asp? - asp.net

How can I show my google analytics traffic report (AKA 'View Report') via asp.net or classic asp?

There are several APIs for querying data from Analytics. For example in both JavaScript and C#. See the developer guide for more information.
I don't think there is an easy way to just include their report into an existing page. You would have to use the APIs.

you can use the google data APIs to pull feed data as xml look at this tool it lets you run text queries and see the results
then make a call to data feed and parse with Server.CreateObject("MSXML2.DomDocument.3.0") to output the results
im writing an article on how to do it right now ill post here when im done...

Related

Embedding website in Google Calendar

I have a question regarding google calendar. i am new to it so not sure if i am asking correct question.
I want to integrate google calendar appointments with one of my application. what i want to do is
I should be able to integrate a web application with in google
calendar. Basically there should be some sort of button on appointment window which will take user to a webpage
Whenever user creates an appointment user should be able to set some
custom props on appointment
Webapp should be able to set location with in google calendar
As soon as user saves appointment all of the relevant information
should be saved in database.
i want to know if its possible at all. actually i want to achieve something similar like outlook addins.
First of all try reading the Get Started with the Calendar API:
The Calendar API lets you display, create and modify calendar events as well as work with many other calendar-related objects, such as calendars or access controls. This document describes how to use RESTful calls and client libraries for various programming languages (Java, PHP, .NET, JavaScript, NodeJs, Ruby, Python, Go, Android, iOS).
All your question is possible and will all depend on your implementation. You might want to check this tutorial - Google Calendar API with JavaScript, this will help you develop a web application to create or display Calendar data.
Hope this helps.

How would you go about writing a custom script that grabs the Adobe or Google Analytics image request?

If I wanted to build a scraper that pings each URL on a site and stores the adobe (or Google) image request, how would I go about this? I.e. I just want something that grabs all the parameters in the URL posted to Adobe in a csv or something similar. I'm familiar with how to build simple web scrapers, but how do I grab the URL I see in for example Fiddler that contains all the variables being sent to the Analytics solution?
If I could do this I could run a script that lists all URLs with the corresponding tracking events that are being fired and it would make QAing much more manageable.
You should be able to query the DOM for the image object created by the tag request. I am more familiar with the IBM Digital Analytics (Coremetrics) platform and you can find the tag requests using accessing the following array document.cmTagCtl.cTI in the Web Console on a Coremetrics tagged page. I used this method when building a Selenium WebDriver test case and wanted to test for the analytics tags.
I don't have the equivalent for Adobe or GA at the moment since it depends in the library implementation am trying the do the same as you for GA.
Cheers,
Jamie

How can I update a data table from an apps script?

I have data in a Google Spreadsheet that I would like to add to a data table in Google Map Engine. Related to this, I have two separate questions:
Is there any way to do that with an apps script in the spreadsheet?
I have looked at the Server to Server Authentication (service
accounts) help page a little. Will I need to set that (or some
such thing) up to work with my apps script, or is the fact that it
is my spreadsheet and my map enough to authenticate the script by
itself? If I do need to set that up, where can I find sample
JavaScript code to accomplish the tasks they have shown in their
sample code on the help page?
Quote:
You can create and populate a new table by uploading data files
through the API
Table Upload
Quote:
To upload a file, send a POST request to the following URL
Upload Table Files
You can make a POST request with Apps Script using urlFetchApp:
urlFetchApp.fetch
Scroll down one or two screens in that documentation to see the parameters for urlFetchApp.fetch
There are various ways you could trigger the Apps Script to run. You could add a custom drop down menu to your spreadsheet that ran the data upload when the user choose a menu item.
Custom Menus in Google Apps
The Apps Script can be bound to your Google Sheet. So, I'm quite sure this can be done.

Does calling wordpress's json api affect the page view in google analytics?

I have a page in wordpress. And I developed an android application that calls to word press's rest api , to retrieve existing pages in json format. Then I parse json and display in application.
My question is that, does my requests to rest api, affect page view in google analytics?
Regards
Ceyhun
The answer to your question is: NO.
the reason is as simple as the fact the there is no html being loaded when you make a JSON request.
the analytics api is a javascript code that is being loaded with the page in your site but JSON pages are just pages with a string inside of them.
so there is no real HTML being loaded > the analytics code is not activated.
If you want users to count in your analytics you should use the Analytics SDK

Share my google drive data using a website in asp.net

I have some files and folders in my Google Drive.And I have a website.
I want to show my Google drive content in one page of my website.Any body can view the those data.
I tried this since morning.Using javascript I did that.But in that case it only show the data when I login using that Google account.But from other machine or with out sign in using my account it's not show any data.I checked from firebug it's giving a error like login required.
Can any one help me to solve the problem.I will like to do that using asp.net.
Thanks in advance.
Share a folder with public Internet, use an API key to query the files under that folder with an API key.
gapi.client.setApiKey(API_KEY_HERE);
gapi.client.drive.files.get({
'q': '"<publicFoldersId>" in parents'
}).execute(callback);
Obtain an API key from API Console by generating a key for browsers [1].
Note: I'm using the JavaScript client library, available on [2].
[1] https://developers.google.com/console/help/#generatingdevkeys
[2] https://developers.google.com/api-client-library/javascript/

Resources