Sending event data via measurement protocol in Google ...
文章推薦指數: 80 %
Sending event data via measurement protocol in Google Analytics ... POST https://www.google-analytics.com/collect?payload_data. For example:. Home About Testimonials Services GoogleAnalytics>MConsulting DigitalAnalyticsTraining Blog Books DigitalAnalyticsTraining Contact SendingeventdataviameasurementprotocolinGoogleAnalytics measurementprotocol,crossdevicetracking LastUpdated:December9,2021 ThisarticleisrelatedtomeasurementprotocolinGoogleAnalytics. Ifyouarebrandnewtomeasurementprotocol,thenreadthisarticlefirst:UnderstandingGoogleAnalyticsmeasurementprotocol. Inthisarticle,Iwillshowyou,howtosendevent dataviathemeasurementprotocol. Inordertosendeventtrackingdataviameasurementprotocol,usethefollowingprotocolparameters(inadditiontothe4requiredparameters)inthepayloaddata: #1Eventcategory Eventcategoryisdenotedby‘ec’parameter. ThevalueofthisparametershouldbeanURLencodedtextstring Example:ec=videos Asin: v=1&t=event&tid=UA-1500844-34&cid=98880ed4-c224-4b3c-b2e2-35a491373751&ec=videos&ea=play&el=spider%2520man&ev=100 #2EventAction EventActionisdenotedby‘ea’parameter. ThevalueofthisparametershouldbeanURLencodedtextstring Example:ea=play Asin: v=1&t=event&tid=UA-1500844-34&cid=98880ed4-c224-4b3c-b2e2-35a491373751&ec=videos&ea=play&el=spider%2520man&ev=100 MyStep-By-StepBlueprint(30+Pages)ForGettingStartedWithMeasurementProtocol GetTheOnlyEbookOnGoogleAnalyticsMeasurementProtocolEverPublished(30pages) YesIwanttheFREEebook #3Eventlabel Eventlabelisdenotedby‘el‘parameter. ThevalueofthisparametershouldbeanURLencodedtextstring Example:el=spider%20man Asin v=1&t=event&tid=UA-1500844-34&cid=98880ed4-c224-4b3c-b2e2-35a491373751&ec=videos&ea=play&el=spider%2520man&ev=100 #4Eventvalue Eventvalueisdenotedby‘ev‘parameter. Thevalueofthisparametershouldbeanintegervalue. Example:ev=100 Asin v=1&t=event&tid=UA-1500844-34&cid=98880ed4-c224-4b3c-b2e2-35a491373751&ec=videos&ea=play&el=spider%2520man&ev=100 Onceyouhavecreatedthepayloaddata,askyourdevelopertowriteanapplication(program)whichmakethefollowingsimilarHTTPPOSTrequesttotheGAserver: User-Agent:user_agent_stringPOSThttps://www.google-analytics.com/collect?payload_dataForexample:User-Agent:Mozilla/5.0(WindowsNT6.3;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/30.0.1599.69Safari/537.36POSThttps://www.google-analytics.com/collect?v=1&t=event&tid=UA-1500844-34&cid=98880ed4-c224-4b3c-b2e2-35a491373751&ec=videos&ea=play&el=spider%2520man&ev=100 ThisHTTPPOSTrequestwillsendthepayloaddata(whichcontainstheeventhitdata)toGoogleAnalytics. Otherarticlesonmeasurementprotocol SendingpageviewdataviameasurementprotocolinGoogleAnalyticsSendingcampaigndataviameasurementprotocolinGoogleAnalyticsSendingecommercedataviameasurementprotocolinGoogleAnalyticsSendingsocialinteractionsviameasurementprotocolinGoogleAnalyticsCreatingandvalidatingmeasurementprotocolrequeststhroughpostmanUnderstandingmeasurementprotocolvalidationserver RegisterfortheFREETRAINING... "HowtouseDigitalAnalyticstogeneratefloodsofnewSalesandCustomerswithoutspendingyearsfiguringeverythingoutonyourown." Here’swhatwe’regoingtocoverinthistraining… #1Whydigitalanalyticsisthekeytoonlinebusinesssuccess. #2Thenumber1reasonwhymostmarketersarenotabletoscaletheiradvertisingandmaximizesales. #3WhyGoogleandFacebookadsdon’tworkformostbusinesses&howtomakethemwork. #4Whyyouwon’tgetanycompetitiveadvantageinthemarketplacejustbyknowingGoogleAnalytics. #5Thenumber1reasonwhyconversionoptimizationisnotworkingforyourbusiness. #6HowtoadvertiseonanymarketingplatformforFREEwithanunlimitedbudget. #7Howtolearnandmasterdigitalanalyticsandconversionoptimizationinrecordtime. MybestsellingbooksonDigitalAnalyticsandConversionOptimization MathsandStatsforWebAnalyticsandConversionOptimization Thisexpertguidewillteachyouhowtoleveragetheknowledgeofmathsandstatisticsinordertoaccuratelyinterpretdataandtakeactions,whichcanquicklyimprovethebottom-lineofyouronlinebusiness. MastertheEssentialsofEmailMarketingAnalytics Thisbookfocusessolelyonthe‘analytics’thatpoweryouremailmarketingoptimizationprogramandwillhelpyoudramaticallyreduceyourcostperacquisitionandincreasemarketingROIbytrackingtheperformanceofthevariousKPIsandmetricsusedforemailmarketing. AttributionModellinginGoogleAnalyticsandBeyondSECONDEDITIONOUTNOW! Attributionmodellingistheprocessofdeterminingthemosteffectivemarketingchannelsforinvestment.Thisbookhasbeenwrittentohelpyouimplementattributionmodelling.Itwillteachyouhowtoleveragetheknowledgeofattributionmodellinginordertoallocatemarketingbudgetandunderstandbuyingbehaviour. AttributionModellinginGoogleAdsandFacebook ThisbookhasbeenwrittentohelpyouimplementattributionmodellinginGoogleAds(GoogleAdWords)andFacebook.Itwillteachyou,howtoleveragetheknowledgeofattributionmodellinginordertounderstandthecustomerpurchasingjourneyanddeterminethemosteffectivemarketingchannelsforinvestment. AbouttheAuthor HimanshuSharma Founder,OptimizeSmart.com Over15yearsofexperienceindigitalanalyticsandmarketing Authoroffourbest-sellingbooksondigitalanalyticsandconversionoptimization NominatedforDigitalAnalyticsAssociationAwardsforExcellence Runsoneofthemostpopularblogsintheworldondigitalanalytics Consultanttocountlesssmallandbigbusinessesoverthedecade error:Alert:Contentisprotected!! Weusecookiesonourwebsitetogiveyouthemostrelevantexperiencebyrememberingyourpreferencesandrepeatvisits.Byclicking“AllowCookies”,youconsenttotheuseofALLthecookies.However,youmayvisit"CookieSettings"toprovideacontrolledconsent.CookieSettingsAllowCookiesManageconsent Close PrivacyOverview Thiswebsiteusescookiestoimproveyourexperiencewhileyounavigatethroughthewebsite.Outofthese,thecookiesthatarecategorizedasnecessaryarestoredonyourbrowserastheyareessentialfortheworkingofbasicfunctionalitiesofthewebsite.Wealsousethird-partycookiesthathelpusanalyzeandunderstandhowyouusethiswebsite.Thesecookieswillbestoredinyourbrowseronlywithyourconsent.Youalsohavetheoptiontoopt-outofthesecookies.Butoptingoutofsomeofthesecookiesmayaffectyourbrowsingexperience. Necessary Necessary AlwaysEnabled Necessarycookiesareabsolutelyessentialforthewebsitetofunctionproperly.Thesecookiesensurebasicfunctionalitiesandsecurityfeaturesofthewebsite,anonymously. CookieDurationDescriptioncookielawinfo-checkbox-analytics11monthsThiscookieissetbyGDPRCookieConsentplugin.Thecookieisusedtostoretheuserconsentforthecookiesinthecategory"Analytics".cookielawinfo-checkbox-functional11monthsThecookieissetbyGDPRcookieconsenttorecordtheuserconsentforthecookiesinthecategory"Functional".cookielawinfo-checkbox-necessary11monthsThiscookieissetbyGDPRCookieConsentplugin.Thecookiesisusedtostoretheuserconsentforthecookiesinthecategory"Necessary".cookielawinfo-checkbox-others11monthsThiscookieissetbyGDPRCookieConsentplugin.Thecookieisusedtostoretheuserconsentforthecookiesinthecategory"Other.cookielawinfo-checkbox-performance11monthsThiscookieissetbyGDPRCookieConsentplugin.Thecookieisusedtostoretheuserconsentforthecookiesinthecategory"Performance".viewed_cookie_policy11monthsThecookieissetbytheGDPRCookieConsentpluginandisusedtostorewhetherornotuserhasconsentedtotheuseofcookies.Itdoesnotstoreanypersonaldata. Functional functional Functionalcookieshelptoperformcertainfunctionalitieslikesharingthecontentofthewebsiteonsocialmediaplatforms,collectfeedbacks,andotherthird-partyfeatures. Performance performance Performancecookiesareusedtounderstandandanalyzethekeyperformanceindexesofthewebsitewhichhelpsindeliveringabetteruserexperienceforthevisitors. Analytics analytics Analyticalcookiesareusedtounderstandhowvisitorsinteractwiththewebsite.Thesecookieshelpprovideinformationonmetricsthenumberofvisitors,bouncerate,trafficsource,etc. Advertisement advertisement Advertisementcookiesareusedtoprovidevisitorswithrelevantadsandmarketingcampaigns.Thesecookiestrackvisitorsacrosswebsitesandcollectinformationtoprovidecustomizedads. Others others Otheruncategorizedcookiesarethosethatarebeinganalyzedandhavenotbeenclassifiedintoacategoryasyet. Save&Accept
延伸文章資訊
- 1Sending events | Measurement Protocol for Google Analytics 4
This guide explains how to format and send requests to the Google Analytics Measurement Protocol....
- 2How Google Analytics Collects Data - AnalyticsMarket
The information is sent in a request to https://www.google-analytics.com/collect. This file is re...
- 3Google Analytics
Google Analytics lets you measure your advertising ROI as well as track your Flash, video, and so...
- 4Measurement protocol V2 Google analytics Apps+Web
https://www.google-analytics.com/g/collect?v=2&_dbg=1&tid=G-EYPV5EM8S1&cid=1487972805.1593070957&...
- 5[GA4] Data collection - Analytics Help - Google Support