Google Analytics - Tracker | Ga | Datacadamia - Data and Co
文章推薦指數: 80 %
in Google analytics Tracker objects (also known as “trackers”) are objects that can collect and store data and then send that data to Google Analytics. ataCadamia Subscribe SearchTerm GoogleAnalytics(ga)13pagesClientId(cid)-AnonymousIdCookiesGatheringDataHit(Event)OutboundLinkTrackingMeasurementProtocolQuery(Reporting|Dashboard)CommandQueue(q)TrackerUserUserIdentificationUtmaCookieUtmbcookie Home Marketing Analytics Ga Tracker GoogleAnalytics-Tracker TableofContents GoogleAnalytics-Tracker About ArticlesRelated Management Create Initialization Get GetName Getproperties Setproperties List Exist Send Documentation/Reference About TrackerinGoogleanalytics Trackerobjects(alsoknownas“trackers”)areobjectsthatcancollectandstoredataandthensendthatdatatoGoogleAnalytics. ArticlesRelated GoogleAnalytics(ga) GoogleAnalytics-UserIdentification Management Create doc //Queuesanamedtrackerobjectforcreation. ga('create','UA-XXXXX-Y','auto','myTracker'); where: UA-XXXXX-Yisthetrackingid(propertyid) autodefinesthecookiedomainwhichspecifieshowcookiesarestored(autoistherecommendedvalue) myTrackeristhenameofthetracker(defaulttotracker).Seeworking_with_multiple_trackers More…seeCreatefieldreference Initialization Ifacookiedoesnotexistforthespecifieddomain,aclientIDisgeneratedandstoredinthecookie. thetrackerwillgatherthebrowsingcontext(page,url,screen,…) Get Gettingareferencetoatrackerobjectrequireswaitinguntilafterthecreatecommandhasbeenexecutedwiththereadycallback Whenusingonlyonetracker(default) ga(function(tracker){ console.log(tracker); }); whenusingmorethanone ga(function(){ console.log(ga.getByName('myTracker')); }); GetName Thedefaulttrackersaregiventhename“t0”. ga(function(tracker){ console.log(tracker.get('name')); }); Getproperties byname ga(function(tracker){ console.log(tracker.get('name')); console.log(tracker.get('clientId')); console.log(tracker.get('referrer')); }); where: nameisthenameofthetracker clientIdistheclientid referreristheHTTPreferrer byiddefinedinthemeasurementprotocol ga(function(tracker){ console.log(tracker.get('&dt')); }); //sameas ga(function(tracker){ console.log(tracker.get('title')); }); where: &isaprefixthatdefinethetypeofthepropertiestoaparameteroftheprotocol dtisthedocumenttitleasyoucanseekn Setproperties Onthedefaulttracker ga('set',{ page:'/about', title:'AboutUs' }); //or ga(function(tracker){ tracker.set('page','/about'); }); onanamedtracker ga('myTracker.set','page','/about'); List ga('create','UA-XXXXX-Y','auto','tracker1'); ga('create','UA-XXXXX-Z','auto','tracker2'); ga(function(){ //Logsanarrayofalltrackerobjects. console.log(ga.getAll()); }); Exist Whenthereisnodefaulttracker,thefirstargumentofthereadycallbackisundefined ga(function(tracker){ console.log(tracker);//Logs`undefined`. }); Send Eachtimethesendcommandiscalled,analytics.jsexecutesasequenceoftaskstovalidate,construct,andsendameasurementprotocolrequestfromtheuser'sbrowsertoGoogleAnalytics. See: Thetablethatdescribeseachofthesetasks,intheordertheyareexecuted. howtoadd,abort,setatask Documentation/Reference https://developers.google.com/analytics/devguides/collection/analyticsjs/accessing-trackers https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers RecommendedPages GoogleAnalytics(ga) fromGooglega()istrackingsnippet.It'simplementedasajavascriptglobalfunctionknownasthecommandqueueErrorhandlingIfthega()commandqueuereceivesacommanditdoesn'trecognize,its"... GoogleAnalytics-UserIdentification inGoogleAnalyticsforaArticlesRelatedTypeNamedTheuseridisthenamedid(theidofyourapplication)Youcanspecifyauseridwhencreatingatracker.from Sharethispage: Followus: Data(State) Data(State) DataBase DataProcessing DataQuality DataStructure DataType DataWarehouse DataVisualization DataPartition DataPersistence DataConcurrency DataScience DataAnalysis Statistics DataScience LinearAlgebra Mathematics Trigonometry Modeling Process LogicalDataModeling RelationalModeling DimensionalModeling Automata DataType Number Time Text Collection Relation(Table) Cube Tree Key/Value Graph Spatial Color Log MeasureLevels Order Nominal Discrete Distance Ratio Code Compiler LexicalParser Grammar Function Testing Debugging Shipping DataType Versioning DesignPattern Infrastructure OperatingSystem Monitoring Cryptography Security FileSystem Network Process(Thread) Computer InfraAsCode Marketing Advertising Analytics Email Web Html Dom Http Url Css Javascript Selector Browser WebServices OAuth Contact [email protected] PrivacyPolicy Status PoweredbyComboStrap
延伸文章資訊
- 1Tracker | Google Play services
Composes and sends hits to Google Analytics. You can get an instance of this class by calling new...
- 2Analytics Tracker - Google Sites
Analytics Tracker · Google Analytics is a service that collects data when any user visits a websi...
- 3What is Google Analytics and how does it work? - TechTarget
Google Analytics is used to track website performance and collect visitor insights. It can help o...
- 4Analytics Tracker
This extension allows you to track the data that your webpage is logging to the analytics server ...
- 5Welcome to AnalyticsTracker - GitHub
AnalyticsTracker is a utility aimed at making it easier to track data from ASP.NET applications t...