How to Track Events in GA4 (Google Analytics 4) - Loves Data

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

In Google Analytics 4, you can use events to track any action or piece of information you like. From the pages people view (which are ... Courses Blog About Contact FreeAnalyticsCourse October7,2021 DigitalAnalytics BenjaminMangold GoogleAnalytics4EventTracking:YourCompleteGuide WiththeintroductionofGoogleAnalytics4(GA4),theteamatGooglealsointroducedanewdatamodel.Thisgivesyoumorecontrolandflexibilityoverthedatayoucollectaboutyouraudience,theiractions,andyourwebsite.Moreoptionsandgreaterflexibilityalsomeaneventscanbecomeconfusing.Fast.Solet’sunpackeventsinGoogleAnalytics4andmakesenseofwhattheyareandhowyoucanusethemtocollecttheinsightsyouneed.Oh,andifyou’vebeenusingGoogleAnalyticsforawhile,thenyou’reprobablyalreadyfamiliarwitheventtracking,whichhasbeenavailablesince2007.WewillstartbytalkingabouttheeventswecouldtrackinthepreviousversionofGoogleAnalytics(calledUniversalAnalytics)andcomparethemtotheneweventsinGoogleAnalytics4.Ifyouwouldprefertoskipaheadtoaparticulartopic,hereiswhatwe’regoingtocover:BeforeGoogleAnalytics4Hitsvs.EventsWhatcanyoutrackwitheventsinGoogleAnalytics4?EventParametersinGoogleAnalytics4AutomaticEventsinGoogleAnalytics4EnhancedMeasurementRecommendedEventsinGoogleAnalytics4CustomEventsinGoogleAnalytics4SendingEventstoGoogleAnalytics4CreatingNewEventsintheInterfaceModifyingEventsintheInterfaceSendingEventsUsingGoogleTagManagerReportingonYourEventsinGoogleAnalytics4ConversionsBasedonEventsMappingUniversalAnalyticsEventstoGoogleAnalytics4EventsLimitswithGoogleAnalytics4EventsSummaryofSettingupEventsAndhere’savideoversionifyouwouldprefertolearnonYouTube: Inahurry?Youcanalsodownloadthispost.GetmyGuidetoEventsinGoogleAnalytics4PDF. DownloadTheGuidetoEventsinGA4 BeforeGoogleAnalytics4BeforeGoogleAnalytics4,eventsweredesignedtotrackactionswithinyourwebsite’spages(orinyourapp).Forexample,ifyouwantedtotrackthenumberoftimespeopledownloadedafilefromyourwebsite,youwouldimplementeventtrackingandusetheeventreportstoseethenumberofdownloads.Thetwomainissueswiththepreviousversionofeventtrackingwerethelimitsontheamountofinformationyoucouldcollectandtheconstraintsaroundreporting.WhenyouimplementedeventtrackingwiththepreviousversionofGoogleAnalytics,youcouldnamethecategoryoftheevent,nametheaction,includeanoptionallabel(tocaptureadditionalinformation),andassignanoptionalvalue(likeadollarvalue).Here’sanexampleofaUniversalAnalyticseventtotrackavideo:Eventcategory:VideoEventaction:PlayEventlabel:https://www.youtube.com/watch?v=4nXYvFXzxV4Eventvalue:0Ifyouwantedtocaptureadditionalinformation,youwouldneedtoeitherreplaceoneoftheexistingvaluesorsqueezetheextrainformationin.Forexample,ifyouwantedtouseeventtrackingtoreportclicksondifferentpromotionalbanners,youmightdefinetheeventcategoryas‘promotion’,thentheeventactionas‘click’,andtheeventlabelas‘summerspecials’,likewecanseehere:Eventcategory:PromotionEventaction:ClickEventlabel:SummerSpecialsEventvalue:Butwhatifyouhadtwobannersforthepromotion?Youwouldthenneedtodecidewhichoftheeventparametersyouwouldrename.Forexample,youmighthaveoneeventlabelfor‘summerspecialstop’andanothereventlabelfor‘summerspecialssidebar’.Thisisokay,butitisn’tflexible,especiallywhenitcomestoreporting.Ifyouwanttoreportontheperformanceofthepromotion,youwouldneedtoincludebothlabels.Otherwise,youwouldbemissingdata.Onceyouimplementedeventtrackingonyourwebsite,alloftheeventswouldbeincludedintheeventreports. InGoogleAnalytics4,everythingissenttoyourreportsasanevent,notjustactionsyou’vetrackedwithinapage,sothere’spotentialformoreflexibilityinyourreporting.Wewilltalkmoreaboutreportinginamoment. Hitsvs.Events SoinUniversalAnalytics,eventsweredesignedfortrackingactionswithinapage.Incontrast,inGoogleAnalytics4,eventsareusedtosendalltypesofdatatoyourreports.Thisincludesactions,detailsaboutyourusers,andotherinformationaboutyourwebsite.IfwecomparethistoUniversalAnalytics,datawasalwayssentasa‘hit’.Andtherewerepredefinedtypesofhitsyoucouldsend,whichmeantthatyouwereoutofluckifyouwantedtocollectcustominformationthatdidn’tmatchoneofthepredefinedhittypes.ThehittypesinUniversalAnalyticswere:PageviewhitEventhitEcommercehitSocialinteractionshitExceptionhitUsertiminghitScreenhit(forapps)HitsarereplacedbyeventsinGoogleAnalytics4,whichmeansyoucancollectdataforanythingyoulike.You’renolongerrestrictedtothesepredefinedoptions.Thisbringsustoournexttopic. WhatcanyoutrackwitheventsinGoogleAnalytics4? InGoogleAnalytics4,youcanuseeventstotrackanyactionorpieceofinformationyoulike.Fromthepagespeopleview(whichareautomaticallytracked)tobuttonclicksoreveninformationyou’vecollectedinanotherplatform(likeyouremailmarketingplatformorCRM).YoucansendthedatatoGoogleAnalyticsusingevents.Wewillcoverdifferentwaysyoucanuseeventsinamoment,butherearesomeexamplesofwhatyoucantrackwithevents:PagespeopleloadonyourwebsiteActionspeopleperformwithinapageElementspeoplehaveclickedInformationfromtheURLofthepageTransactionandproductdetailsElementsthatarevisibleinthebrowserDetailsyou’vecollectedaboutauserThereareplentyofwaystouseevents,anditcomesdowntoyourbusiness,youraudience,yourobjectives,andthetypeofreportingandanalysisyouwanttoperform. EventParametersinGoogleAnalytics4 EventscanbesenttoGoogleAnalyticswithparameters.Parametersareextrapiecesofinformationthataretiedtotheevent.Forexample,thepage_vieweventissenttoyourreportswiththepage_locationandthepage_referrerparameters.Thepage_locationparameterletsyouseetheURLofthepagethatsomeoneviewed,andthepage_referrerparameterletsyouseetheURLofthepreviouspagetheyviewed.Here’swhatapage_vieweventlookslikeinGoogleAnalytics,alongwiththeparameters:  GoogleAnalyticswillautomaticallysendparameterswitheachevent.Thesecaninclude:Thega_session_idparameterincludestheuniqueidentifierassignedbyGoogleAnalyticsfortheuser’ssession.Thepage_locationparametersendstheURLofthepagecurrentlybeingviewed.Thepage_titleparametersendsthetitleofthepagecurrentlybeingviewed.Thepage_referrerparametersendstheURLthatsomeoneviewedbeforethecurrentpage.Thiscanincludeotherpagesonyourwebsiteorthird-partywebsites(ifsomeoneclickedthroughtoyourwebsitefromanotherwebsite).ForeventsautomaticallytrackedbyGoogleAnalytics,additionalparametersarealsosent.Thisbringsustoautomaticevents. AutomaticEventsinGoogleAnalytics4 WhenyouaddtheGoogleAnalytics4tagtoyourwebsite,itwillautomaticallytrackanumberofeventswhensomeoneviewsapage.Forexample,GoogleAnalyticswillautomaticallytrackaneventwhensomeonespendsatleast10secondsonyourwebsite.Eventstrackedautomaticallyinclude:Thefirst_visiteventiscollectedthefirsttimesomeonevisitsyourwebsite.Thiseventisalsousedtocalculatethe‘NewUsers’metricinyourreports.Thepage_vieweventisusedtoreportonthepagetheuserisviewing.Thesession_starteventisusedtodeterminewhentheuser’ssessionstarted.Anewsession_starteventistriggeredwhenthereisaperiodofinactivityof30minutes.Theuser_engagementeventcanbecollectedperiodicallyandisusedtoreportwhensomeonehasspentatleast10secondsonyourwebsite.Theseautomaticeventscan’tbeswitchedoffordisabled.TheyarethecriticalcomponentsneededforGoogleAnalytics,soyouwillfindtheminallGoogleAnalytics4properties. EnhancedMeasurement Apartfromtheautomaticeventswejustcovered,youalsohavetheoptionofusingtheEnhancedMeasurementfeaturetocollectadditionaldataautomatically.EnhancedMeasurementisconfiguredforeachdatastreamusedtosenddatatoGoogleAnalytics. ThebestwaytothinkaboutEnhancedMeasurementisthatitletsyoutrackoptionalautomaticevents(whiletheautomaticeventswecoveredpreviouslyaremandatory).SowithEnhancedMeasurement,youcanchoosetoturnparticularautomaticevents‘on’or‘off’dependingonwhatyouwouldliketoseeinyourreports.EnhancedMeasurementletsyouautomaticallytrackoneormoreofthefollowingactions:Scrollsforpeoplescrollingatleast90%ofapage.Outboundclicksfromyourwebsitetootherwebsites.Sitesearchforthekeywordsenteredintoyourwebsite’ssearchfunction.VideoengagementofpeoplewatchingembeddedYouTubevideos.Filesdownloadsforpeopledownloadingfilesfromyourwebsite.TheseactionsaretrackedusingthefollowingeventsinyourGoogleAnalyticsreports:Theclickeventiscollectedwhensomeoneclicksonanoutboundlink.Thefile_downloadeventiscollectedwhensomeoneclickstodownloadafilefromyourwebsite.Eventsaretriggeredforpopularfileformats,includingthefollowingfileextensions:pdf,xls,xlsx,doc,docx,txt,csv,key,ppt,pkg,zip,mov,mp4,mp3,wav,andmore.Thescrolleventiscollectedwhensomeonescrolls90%ofapage.Thevideo_starteventwhensomeonestartsplayinganembeddedYouTubevideo.Thevideo_progresseventwhen10%,25%,50%and75%ofthevideo’sdurationisplayed.Thevideo_completeeventwhenthevideoends.Theview_search_resultseventwhenpeopleviewapagewithaqueryparameterof‘q’,’s’,‘search’,‘query’,or‘keyword’.EnhancedMeasurementalsoprovidesadvancedsettingsfortheautomaticallycollectedpagevieweventsandsitesearchevents.Forpageviews,youcandisablethe‘Pagechangesbasedonbrowserhistoryevents’option.  Bydefault,thisoptionwillautomaticallytrackpageviewswhentheURLofthepagechangeswithoutthepagereloadingorifcontentisloadedintotheexistingpagewithoutthepagereloading.Forexample,ifJavaScriptisusedtoincludeadditionalcontentonapage.It’slookingforhistoryeventsinthebrowser.TheotheroptionyoucanadjustinEnhancedMeasurementistheconfigurationfortheSiteSearchevent.  Apartfromthedefaultqueryparameters,youcanalsoadjustthequeryparametersGoogleAnalyticsusestoidentifythekeywordspeopleareusingtosearchwithinyourwebsite.Andyoualsohavetheoptionofaddingadditionalqueryparameterstocollectfurtherinsights.Forexample,ifyoursearchfunctionletspeoplerefinetheirsearchbychoosingasearchcategory,youcouldaddthistothe‘AdditionalQueryParameters’.Ifyou’rejustgettingstarted,IrecommendwatchingmyhowtogetstartedwithGoogleAnalytics4videocoveringEnhancedMeasurement. RecommendedEventsinGoogleAnalytics4 Okay,we’vecoveredeventsthatareautomaticallytrackedintoyourreports,butwhatifyouwanttotracksomethingelse?Somethingalittlemore,well,custom?ThebestplacetostartisbyreviewingGoogle’slistofrecommendedevents.Google’slistofrecommendedeventsisdesignedtogiveyouastartingpointforanythingcustomyouwanttotrackintoGoogleAnalytics4.They’regroupedbyindustry,butyoucanuseanyrecommendedeventsthatfityourneeds.Recommendedeventsaregivenfor:EventsthatapplytoallpropertiesEventsforonlinesalesEventsforgamesForexample,ifwelookattherecommendationsforwebsites(andapps)thatsellthingsonline,wewillseegenerate_leadincludedinthelistofevents.However,wedon’tneedtoberunninganecommercewebsiteforthiseventtobeuseful.Anywebsiteaimingtocaptureleadsshouldbeusingthiseventtoreportonthenumberofpeopleenteringtheircontactdetails.Themainthingtorememberisthatyoucanuseanyoftheserecommendedeventsonyourwebsiteifthey’reappropriate.Mytoppicksfromthelistofrecommendedeventsinclude:Theselect_contenteventfortrackingactionswithinapageTheselect_promotioneventfortrackingthenumberoftimesaspecialofferwasclickedTheview_promotioneventtounderstandthenumberofimpressionsofaspecialofferThegenerate_leadeventtotrackthenumberofleadsyou’vecapturedTheview_itemeventtounderstandwhenpeopleviewparticularproductsTheadd_to_carteventtotrackpeopleaddingitemstotheirshoppingcartThepurchaseeventforsuccessfulecommercetransactionsAlongwithrecommendedeventnames,Googlealsoprovidesrecommendedparametersforeachoftheseevents.Onceyou’vefoundaneventnameforwhatyouneedtotrack,youcanthenchoosefromtherecommendedparameterstosendadditionaldetailstoyourreports.Ifyouwouldliketolearnmoreabouttherecommendedevents,watchmytutorialonclick,button,andformtracking.Inthevideo,Ishowyouhowtotracktheseelements,andyouwillseerecommendedevents(andparameters)beingconfiguredinGoogleTagManager. CustomEventsinGoogleAnalytics4 Ifyou’vereviewedtheeventsthatareautomaticallytracked(includingtheEnhancedMeasurementoptions),andyou’vecheckedthelistofrecommendedevents,thenthefinaloptionistocreatecustomevents.Thisiswhereyoudecidehowtonameyourevents.Youshouldaimforaconsistentnamingconvention.And,ideally,itshouldfollowGoogle’srecommendedeventnames.Thiswillhelpkeepthingsclearandlogicalinyourreports.Forexample,youmightletpeoplerateproductsonyourwebsite.Youcouldthencreateaneweventnamedproduct-ratingthatcollectspeople’sratingselections.Althoughyoucannameyoureventsanythingyoulike,it’sprobablybettertofollowGoogle’snamingconvention.Ifweheadbacktotherecommendedevents,wewillseethenamingconventionforproductsincludeview_itemandselect_item,soweseetheactionorbehaviorisusedfirst,followedbyanunderscore,then‘item’.Thisdoesn’tquitealignwithourcustomeventofproduct-rating.Instead,weshouldprobablyconsideracustomeventwiththenameofrate_itemtofollowasimilarnamingconventiontoothereventsthatarealreadyavailableinourreports.Youcanthenfollowasimilarapproachforanyparametersyousendwithyourcustomevent.Forexample,wewoulduserecommendedparameterslikeitemsanditem_idandacustomparameterrating(orsimilar)fortheactualratingpeopleselected.ThismeanswewouldendupsendingthefollowingeventtoGoogleAnalyticsforsomeonewhoratedaproductfiveoutoffive: EventName ParameterName ParameterValue rate_item items YellowRaincoat item_id SKU03873 rating 5 Andifyouwanttoseetheeventparametersinyourreports,youwillalsoneedtoregisterthemascustomdimensionsormetrics.Wewillcoverregisteringcustomdefinitionslaterinthispost. SendingEventstoGoogleAnalytics4 TherearedifferentwaysyoucancreateneweventsandsendthemtoGoogleAnalytics4.Thefirstoptioniscreatinganeweventbasedonanexistingevent.Forexample,ifyouwanttocreateaneventforpeopleviewingaspecificthankyoupageonyourwebsite.Youcancreateaneweventusingtheexistingpage_vieweventlikethis: Thisneweventwillbereportedeverytimethepage_locationparameterfromtheexistingpage_vieweventcontainsthank-you.Ifyou’renotabletobaseyourneweventononealreadybeingsenttoGoogleAnalytics,youcancreateneweventtagsinGoogleTagManager.Thisletsyousendneweventsforjustaboutanyactiontakingplaceonyourwebsite.Wewilllookatthisoptioninamoment.YoucanalsosendeventsbymodifyingtheGoogleAnalyticstrackingcode(gtag.js).However,IrecommendusingGoogleTagManagerforcustomevents.Thisgivesyouarobusttagmanagementsolutionthatwillputyouincontrolofyourtagsatasite-widelevelinsteadofhardcodingindividualevents.Forthisreason,we’regoingtoskipthetrackingcodeversionforevents,butyoucanseeoneexampleonGoogleDevelopers. CreatingNewEventsintheInterface Tocreateaneweventbasedonanexistingevent,you’llneededit-permissioninGoogleAnalytics.Youcanthennavigateto‘Events’andselect‘CreateEvent’onthetop-rightcorner. Afterselectingthedatastreamthatcontainstheexistingevent,youcanthennameyournewevent,entertheconditionsyouwanttouseformatching,andthenchooseifyouwanttocopy(ormodify)theparametersforyournewevent. Oncetheconditionsforyourneweventmatchanexistingincomingevent,youwillbegintoseeyourneweventinthe‘Events’report.Here’sanexample: Wecannowseethatthenewgenerate_leadeventisincludedinourreports. ModifyingEventsintheInterface Apartfromcreatingnewevents,youcanalsomodifyexistingevents.Thisoptionletsyoumodifyevents,parameters,andvaluesbeforethey’reavailableinyourreports.Tomodifyincomingevents,navigateto‘Events’andselect‘ModifyEvent’onthetop-rightcorner. You’llneedtoselectthedatastreamthatincludestheeventyouwanttomodify,namethemodification,enteryourconditions,andmakethemodifications.Inthefollowingexample,we’remodifyingtheclickevent,whichisautomaticallyusedtotrackoutboundlinks: Movingforward,theclickeventwillbereportedasoutbound_link. SendingEventsUsingGoogleTagManager ThebestwaytosendcustomeventstoGoogleAnalytics4isbyusingGoogleTagManager.Youcancreateanewtagusingthe‘GA4Event’tagtype: Youcanthennametheeventandaddtheparameters(andvalues)youwouldliketosendtoyourreports.Thisexamplewillsendaneventwhenpeopleclickonapromotionalbannerfeaturedonthewebsite:  Ifyouwouldliketolearnmoreaboutcreatingthesetypesoftags,IrecommendwatchingmyGoogleTagManagertutorialseriesonYouTubeandcheckingoutmyGoogleTagManagerCourse. ReportingonYourEventsinGoogleAnalytics4 Themostimportantthingtopointoutisthatifyouwanttoseethevaluesoftheparametersyou’vesentwithyourevents,youwillneedtoregistertheminGoogleAnalytics.Ifyoudon’tregistertheparameter,youwon’tseetheminyourreports.Toregisteraparameter,navigateto‘CustomDefinitions’,chooseeither‘CustomDimensions’or‘CustomMetrics’,andthenselect‘Create’. Customdimensionsaregenerallyusedtoreporttext-basedinformation.Forexample,thenameofaCountryortheURLofalinksomeonehasclicked.Incomparison,custommetricsareusedtoreportanumericalvalue,likeacountorapercentage.Forexample,ifyou’resendingadollarvalueasaparameter,youwouldregisterthisasametric.Foradimension,youwillneedtogiveitaname,chooseifyouwantittiedtotheindividualevent(orassignedtotheuser),enteradescription,andthenselectthenameoftheparameteryouwanttoregister.  Afteryourparameterisregistered,youwillfinditinyourGoogleAnalytics4reportsmovingforward.Andyouwillalsobeabletouseitwhencreatingcustomreports(under‘Analysis’andthen‘AnalysisHub’).WecoverthereportsinmoredetailinmyGA4coursesifyou’rekeentolearnmore. ConversionsBasedonEvents OnceeventsareavailableinGoogleAnalytics,youcanenablethemasaconversionintheinterface.Thisletsyoudefineimportantactionsasaconversion.Todothis,navigateto‘AllEvents’andthenusethe‘MarkAsConversion’toggleswitchontheright. Onceyou’vemarkedaneventasaconversion,itwillbeincludedinthe‘Conversions’report.Themainthingtohighlightisthattheeventwillbereportedasaconversionmovingforward.Andinsomecases,youmightneedtocreateaneweventbeforeenablingitasaconversion(aswecoveredearlierinthispostundercreatingevents).Forexample,ifyouwanttotrackanindividualthankyoupageonyourwebsiteasaconversion,thenenablingthe‘page_view’eventasaconversionwillmeanALLofyourpageswillbeconsideredaconversion.LearnmoreaboutconfiguringconversionsinGoogleAnalytics4forafullwalk-through,orwatchthistutorial: MappingUniversalAnalyticsEventstoGoogleAnalytics4Events Ifyou’realreadyusingeventtrackingwithUniversalAnalytics,thenIrecommenddocumentingthecurrentevents.Togetstarted,youcanchecktheeventsreportsinyourUniversalAnalyticspropertybynavigatingto‘Behavior’,then‘Events’,andthen‘TopEvents’. YoushouldthenchecktoseeifanyoftheseeventswillbereplacedbytheautomatictrackingavailableinGoogleAnalytics4(readthesectionwherewecoveredEnhancedMeasurement).IfallofyoureventsfromUniversalAnalyticsareautomaticallytracked,thenyouwillbegoodtogo.Forexample,ifyouimplementedUniversalAnalyticseventstotrackembeddedYouTubevideos,thenEnhancedMeasurementwilllookafterthisforyouautomatically.However,ifthereareeventsthatwon’tbetrackedautomatically,thenyou’llneedtocreatearecommendedeventoracustomevent.It’sessentialtospendtimethinkingabouthowyoutranslateyoureventsfromUniversalAnalyticstoeventsinGoogleAnalytics4.Forexample,youmighthaveimplementedeventstotrackachatwidgetonyourwebsite.Here’showyoumighthavenamedanevent:Eventcategory:ChatWidgetEventaction:WidgetOpenedEventlabel:Eventvalue:Andthenifsomeonesendsyouamessageusingthechatwidget,youmighthavesentanothereventfor:Eventcategory:ChatWidgetEventaction:WidgetClosedEventlabel:Eventvalue:IfweweretotranslatethistoeventsinGoogleAnalytics4,wehavegreaterflexibility.Forexample,wemightusethefollowingeventwhenpeopleopenthechatwidget: EventName ParameterName ParameterValue chat_start chat_current_time 0 page_location https://www.example.com/contact-us Andthiseventwhenpeoplecompletetheirchat: EventName ParameterName ParameterValue chat_complete chat_current_time 720 page_location https://www.example.com/contact-us agent_name JessicaJ. chat_rating 5 Thisisbetterthanreplicatingthepreviouscategory,action,andlabelstructurefromUniversalAnalytics.Thereisalsotheopportunitytocollectricherinsightsabouttheactionspeopletakeandtheirexperienceonyourwebsite. LimitswithGoogleAnalytics4Events TherearesomelimitswhenitcomestoGoogleAnalytics4events.MostpeopleusingGoogleAnalyticsprobablywon’treachtheselimits,butsinceeventsaresoflexible,it’sgoodtoknowtheconstraints.Eventlimits:Youcantrackupto500uniqueevents.Thenameofeacheventcanbeamaximumof40characters.Parameterlimits:Youcansendupto25parameterswitheachevent.Eachparameter’snamecanbeamaximumof40characters,andthevalueoftheparametercanbeamaximumof100characters.Youcanregisterupto50text-basedparametersandupto50numericalparametersfromyourevents.Youneedtoregisteraparameterforittobeavailableinyourreports.(Youcanalsoregisterupto25parametersthatareuser-scoped.)They’rethemostimportantlimitstobeawareofwhenitcomestoevents,butyoucanalsocheckoutGoogle’sfulllistofcollectionandconfigurationlimits. SummaryofSettingupEvents BeforeyoustartconfiguringneweventsinGoogleAnalytics4,Irecommendyoutakethetimetoreviewyourcurrentimplementationanddecidewhateventsyouneedtotrack.It’salwaysagoodideatotieyourGoogleAnalyticssetuptotheobjectivesofyourorganization.Herearesomeimportantquestionstoask:1.AreyoualreadytrackingeventsintoUniversalAnalytics?Ifyouare,thendocumenttheeventsthatarealreadybeingusedbeforeansweringthenextquestion.Andifyoudon’thaveaUniversalAnalyticspropertyinGoogleAnalytics,youcanjumpstraighttothenextquestion.2.Isautomaticeventtracking(includingEnhancedMeasurement)enough?Ifyouwanttotrackscrolls,outboundclicks,sitesearch,embeddedYouTubevideos,orfiledownloads,theycanallbetrackedautomatically.You’llneedtochecktheEnhancedMeasurementconfigurationforeachofyourdatastreamsinGoogleAnalytics.Ifthereareotherbehaviorsorinformationyouwanttoseeinyourreports,thenit’stimetoanswerthenextquestion.3.Dotherecommendedeventscoverwhatyouwanttotrack?Reviewtherecommendedeventssectioninthispost.Seeiftheeventyouwanttotrackcanuseoneoftherecommendednamingconventions.Ifoneoftherecommendedeventsworks,thenheadstraighttoquestionfive.Andifyoureventdoesn’tfitwithanyoftherecommendedevents,you’llneedtocomeupwithnamesforyourcustomeventsandthenheadtothenextquestion.4.DoyourcustomeventsfollowGoogle’snamingconvention?Ideally,yourcustomeventswillfollowGoogle’snamingconvention.Reviewthecustomeventssectioninthispostforanexample.Thenit’stimetoimplementeventtrackingonyourwebsite.5.CanyouuseexistingtriggersinGoogleTagManagertofireneweventtags?Onceyou’rehappywiththenamingforyoureventanditsparameters,it’stimetocreateyoureventtag.Inmostcases,youshouldaimtoimplementtheeventusingGoogleTagManager.Ifyou’veimplementedothertagsonyourwebsite,thenit’sworthtakingthetimetoseeifexistingtriggerscanbeusedwithyourneweventtag.6.Willtheeventyou’relookingtotrackprovidevaluableinsights?Finally,it’salwaysworthensuringthatwhatyoutrackalignswithyourobjectives.Youcantrackjustaboutanythingonyourwebsite(orinyourapp),sotakeamomenttoaskyourselfifthedatawillprovidevaluableinsights.Ifnot,thenconsiderskippingthatparticularevent. GettheGuidetoEventsinGoogleAnalytics4Inahurry?Youcanalsodownloadthispost.GetmyGuidetoEventsinGoogleAnalytics4PDF. DownloadTheGuidetoEventsinGA4 NewerPostHowtoLinkGoogleAnalytics4(GA4)withGoogleSearchConsoleOlderPostHowtoBecomeaGoogleAdsSpecialist LearnhowtosetupandusethelatestversionofGoogleAnalyticsinthiscomprehensivecourse. ViewCourse   LearnhowtouseGoogleTagManagertoimplementtrackingtagstomeasureyourusers. ViewCourse   LearnhowtobuilddashboardsandreportsinGoogleDataStudioquicklyandconfidently,usingdatafromGoogleAnalyticsandGoogleSheets. ViewCourse   LearnthebestwaystomanageyourGoogleAdscampaignstoachievemaximumimpact. ViewCourse Gettheinsidescoop.Subscribeforupdates.



請為這篇文章評分?