How to Add Google Analytics Tracking to a Website - Chartio
文章推薦指數: 80 %
There are a few ways to add Google Analytics tracking code to your website. Adding Google Analytics to your website enables you to track the number of ... DataTutorials WhatisChartio? Close ThereareafewwaystoaddGoogleAnalyticstrackingcodetoyourwebsite.AddingGoogleAnalyticstoyourwebsiteenablesyoutotrackthenumberofvisitorstoyoursite,thesearchkeywordstheyusetofindyoursite,thetimespentonyoursite,goalconversionandmuchmore. Afewhousekeepingitemsbeforewemoveforward,thistutorialassumesthatyoualreadyhaveaStandardGoogleAnalyticsaccountandnotaGoogleAnalytics360account.Second,thatyouhavealreadysetupapropertyinGoogleAnalytics,whichallowsyoutogenerateatrackingID(moreonthislater). Withthatsettled,we’llexploretwowaystoaddGoogleAnalyticscodetoyourwebsite. GoogleAnalyticsTrackingCode Thefirststepyou’llneedtodoisfindyourtrackingID,whichisauniqueIDcreatedforyourGoogleAnalyticsaccount. TogetyourtrackingID,followthesesteps: LogintoyourGoogleAnalyticsaccount Onthebottomleft-handsideofthepage,clickAdmin FromtheleftcolumntitledAccount,selectanaccountfromthedropdownmenu FromthemiddlecolumntitledProperty,selectapropertyfromthedropdownmenu UnderthePropertycolumn,clickTrackingInfo>TrackingCode Yourwebsite’suniquetrackingIDisshownatthetopofthepageunderTrackingIDandstartswithUA Onceyou’veidentifiedyourtrackingID,you’llneedtogetyourtrackingcodesnippet,whichcanbefoundonthispageastheGlobalSiteTag(gtag.js).Thegtag.jsisthetrackingcodeforthisspecificpropertyandyou’llneedtocopyandpastethiscodetoeverywebpageyouwanttotrackonyourwebsite. Tocopyandpasteyourgtag.js,followthesesteps: Copythegtag.jsshownonthepage(exampleshownbelow) ReplacetheGA_TRACKING_IDwithyouruniquetrackingIDprovidedbyGoogleAnalytics Pastethecodesnippetrightafterthe
tagoneachpageofyoursitethatyou’dliketotrackinGoogleAnalytics Keepinmindthatgtag.js(launchedin2017)isanewer,moreexpandedversionofanalytics.js. GoogleTagManager YoucanalsouseGoogleTagManagertoaddtheGoogleAnalyticscodetoyourwebsite.GoogleTagManagerisafreetoolandisusefulforwebsitesthatusemultipleanalyticsoradvertisingperformancetoolsfrommultiplecampaigns. ToinstallGoogleAnalyticscodeviaGoogleTagManager(GTM),followthesesteps: (Source:GoogleAnalyticsDocumentation) InGTM,selectCreateTagandchooseGoogleAnalytics ThenselectUniversalAnalytics Nameyourtag,preferablysomethingrelatedtoGoogleAnalytics(likeGA).AddyourGoogleAnalyticspropertyIDorgaPropertyvariable. ChoosetheTrackType(i.e.PageView) ChooseyourfiringtriggerssuchasAllPages,whichthetagwillfirethetrackeroneverypageofyourwebsite Gtag.jsorGoogleTagManager? IfyourwebsiteisalreadyusingGoogleTagManager,thengtag.jsisnotnecessaryandcontinuetouseGTM.SinceGTMinherentlycombineseventdatafromGoogleAnalyticsandGoogleAdwords,it’sbesttokeepitrunningifit’salreadyinplace. However,ifyouhaven’tinstalledGTMandarenotplanningoninvestinginGoogleAdwords,usingthegtag.jsmaybebeneficialtoyourwebsite.Thegtag.jstagmakesthetrackingprocesseasierby: StreamliningtheinstallationprocesstogetGoogleAnalyticscodeonyoursitefaster Allowingyoutosendeventdatatomultipletoolsasonce Keepingalltrackingtagsinonceplaceinyourwebsitecode Eitherway,werecommendthatyouaddGoogleAnalyticstoyourwebsite,soyoucankeeptrackofallyoureventdata. Contents GoogleAnalyticsTrackingCode GoogleTagManager Gtag.jsorGoogleTagManager? Freedownload similararticles CohortAnalysisPrimer Onewayofdiggingdeeperintoyourdataisthroughacohortanalysis.Inthisarticle,youwilllearnwhatcohortsareandhowtheycanbeusedtogenerateinsights. WhataretheMostUsefulGoogleAnalyticsReportsforE-Commerce GoogleAnalyticsisaverypowerfulwebanalyticstoolthatcanhelpyouunderstandmanyfacetsofyourbusiness.ThistutorialwillgooverthemostusefulGoogleAnalyticsreportsforane-commerceorganization. WhatisMarketingAnalytics Marketinganalyticsisthepracticeofcollecting,managing,andmanipulatingdatatoprovidetheinformationneededformarketerstooptimizetheirimpact. GetademoofChartio Inthis15minutedemo,you’llseehowyoucancreateaninteractivedashboardtogetanswersfirst. Learntheimportanceofagreatdatastack. Downloadourfreeclouddatamanagementebookandlearnhowtomanageyourdatastackandsetupprocessestogetthemostourofyourdatainyourorganization. DiscoverwhyourcustomersrateChartio#1 Signupfora14-dayfreetrial 14dayfreetrial Nocreditcardrequired SOC2compliant 25+directdatasourceconnections延伸文章資訊
- 1Analytics Tracker
This extension allows you to track the data that your webpage is logging to the analytics server ...
- 2Google Analytics - Tracker | Ga | Datacadamia - Data and Co
in Google analytics Tracker objects (also known as “trackers”) are objects that can collect and s...
- 3Welcome to AnalyticsTracker - GitHub
AnalyticsTracker is a utility aimed at making it easier to track data from ASP.NET applications t...
- 4What 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...
- 5Analytics Tracker - Google Sites
Analytics Tracker · Google Analytics is a service that collects data when any user visits a websi...