Google Analytics - Tracker | Ga | Datacadamia - Data and Co

文章推薦指數: 80 %
投票人數:10人

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



請為這篇文章評分?