analytics

Is there any way to post events to Google Analytics via server-side API? [closed]

我只是一个虾纸丫 提交于 2019-11-26 06:14:08
问题 I\'m trying to use Google Analytics from our backend system by posting events to it. Is there any way to do this with GA\'s API on server-side? 回答1: It is now possible (and easy) to track Analytics data from the server-side. With the launch of Universal Analytics, you can now use the Measurement Protocol to post data to the GA servers. Code samples here 回答2: using System; using System.Collections.Generic; using System.Web; using System.Net; using System.IO; using System.Text; public class

Track event in google analytics upon clicking form submit

给你一囗甜甜゛ 提交于 2019-11-26 03:41:34
I need to track an event in google analytics when someone fills out a form and clicks submit. The resulting page that comes up is a standard dashboard-type page, so in order to track the event on that page I'd have to pass in the event in the url and then read the url and output the google analytics event tracking javascript code based on it. This is a frequently bookmarked page though and page that is reloaded, clicked back to, etc. So I'd really rather not pass tracking events in the URL and screw up the analytics. Instead, I'd much rather do something like the following jQuery code on the

Track event in google analytics upon clicking form submit

时光总嘲笑我的痴心妄想 提交于 2019-11-26 01:14:13
问题 I need to track an event in google analytics when someone fills out a form and clicks submit. The resulting page that comes up is a standard dashboard-type page, so in order to track the event on that page I\'d have to pass in the event in the url and then read the url and output the google analytics event tracking javascript code based on it. This is a frequently bookmarked page though and page that is reloaded, clicked back to, etc. So I\'d really rather not pass tracking events in the URL