Facebook conversion API errors and how to fix it - Stape.io's

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

For example, for the PageView events, send the same event ID and event name from Facebook pixel and FB CAPI. To test event ID, open the Facebook ... BlogFacebookFacebookconversionAPIerrorsandhowtofixitAuthorStapePublishedSeptember07,2021commentsJointheconversationAlsoavailableinESRUDEFRPTSettinguptheFacebookconversionAPImaybeconfusing.ButafteryoudidthetremendousjobofmovingFBtrackingtotheserverandhopethateverythingisok,youmightlogintoyoureventsmanagerthenextdayandseeredandyellowwarningsfortheeventssentfromtheserver. I'vefacedthisproblemmanytimeswhilesettingupFBCAPIforclients.SoIdecidedtocreateanarticlewithsomehelpfultips.Inthisblogpost,IwilldescribethemostpopularFacebookconversionAPIerrorsandwarnings.Plus,sharesometipsonhowtofixthem. HowtocheckifthereareanyFacebookpixelorConversionAPIerrorsCopylinktothissectionFacebook'sEventsTestingToolisapowerfulnewtoolthatallowsyoutodebugandresolveissueswithyourFBpixelsorserverevents.Ifthereareerrors,theywillbedisplayedintheDiagnosticstabonthetoolbarsoyoucanreviewthemmoreclosely. Errorsmarkedredusuallyrequireaquickreactionandshouldbefixedrightaway.Theyellowerrorsarenon-criticalwarningsyoushouldpayattentiontoandlookintoeventually.Facebookallowstomarkissuesasresolvedorignorethem.Ifyoumarkanerrorasresolvedandthiserrorrepeats,Facebookwillshowitagainin3days.Incomparison,theignoredproblemsgototheIgnoredsectionandstaythere. WhenyoufixanyissueswithyourFBtracking,Isuggestmarkingthemasresolved.Thisway,youwillnotifyFacebookthattheproblemswerefixed,andyouwillhearfromtheplatformiftheseissuesrepeat. WhatarethemostpopularFacebookpixelandconversionAPIerrors,andhowtofixthem?Copylinktothissection1.NewDomainsSendingDataCopylinktothissectionYoucanseealldomainsthataresendingdatatoyourFacebookpixel.IfFBnoticestrafficfromanewsubdomainordomain,theplatformwillsendyouthiswarning.Youcanwhitelistorblacklistthedomains.Withthehelpofthisfeature,youcanblocktrafficfromyourtestingsitesortechnicalURLs. Mostlikely,youwillalsoseethetrafficfromgtm-msr.appspot.com.Itcanhappenwhenyourunadebugging/publishcontaineroruserscometoyoursitewithdisabledjs(somebots). Tocreatethedomainalloworblocklists,opentheeventstoolintheBusinessManager->Clicksettings->ScrolldowntoTrafficPermissions. 2.EventMissingSomeDeduplicationParametersCopylinktothissectionThatisthesecondmostpopularFacebookCAPIerrorfrommyexperience.Thiserrormeansthatyouarenotsendingsomededuplicationkeysforyourserverevents.Facebookusesthesededuplicationkeys:eventname,eventID,_fbpandexternalID. Frommyexperience,EventIDparametersarecausingthiserror80%ofthetime.CheckifyouaresendinganeventIDforFacebookpixelandFacebookconversionAPI.ThiseventIDshouldbethesameforthebrowserandserverevent.Inthiscase,FBwillseethesameeventnameandeventIDandstartdeduplication. Forexample,forthePageViewevents,sendthesameeventIDandeventnamefromFacebookpixelandFBCAPI. TotesteventID,opentheFacebookeventtestingtool.Ifeverythingiscorrect,youshouldseesomethingsimilartothescreenshot.ThatishowFBshowsitrecordedPageVieweventsfrombothbrowserandserver.TheseeventshadthesameeventID.Sotheyprocessedbrowsereventsanddeduplicatedserverevents.Buttheremightbeanothersituationwhereyouseebrowserandservereventsrandomlytriggered.Inthiscase,checktheFBeventID.Mostlikely,eventIDsarenotidentical.Speakingofwhich,youcanuseourcustomvariableforthewebcontainertosetupFacebookeventID.  WealsohaveanarticleonhowtosetupFacebookeventdeduplication. SometimesthiserrorcanbecausedwhenyoudidnotremoveFacebooktestIDandpublishFBCAPItagstotheproductionenvironment.IrecommendsettingupTestIDasalookuptablevariablethatworksonlywhendebugmodeistruetofixthisissue. 3.ServerSendingInvalidMatchKeyParametersforPageViewEventCopylinktothissectionHere,Facebookwantstonotifyyouthatthevaluesyouaresendingfromtheserverarenotuniqueorformattedcorrectly.Forexample,youcansenduserIPthatincludessymbolsandnotonlynumbers.Ormaybeyou’vesimplyselectedthewrongvariablelikesendingaphonenumberintheemailfield. Tocheckwhatiswrong,openthepreviewmodeoftheGoogleTagManagerserverandwebcontainer(ofcourse,ifyouusedGTMtosetupFacebookconversionAPI).YoushouldseewhatuserparametersweresenttoFacebookandiftheywereformattedcorrectly.Testtheevent,clickonthetaginthedebugmode,andselectvalues. Thiserrorcanalsomeanyoumighthaveforgottentoincludeaparameteroritisincorrectlyformatted.Forexample,Ihadaclientwhowantedtosendtheusercounty,citybasedontheIPaddress.FacebookexpectstoseeactualuseraddressdetailstheyenteronthesiteandnottheonesyouautomaticallyextractedfromtheIP.Thissetupalsosentanerroraboutinvalidkeyparameters.Ormaybeyoutriedtocheatandsendthesameusernameforalleventstoincreasethequality.4.PotentiallyViolatingPersonalDataSenttoFacebookCopylinktothissectionThiserrorusuallyrelatestothebrowsereventsandmeansthatFacebookdetecteduserdataintheURL.SomeCMSandothertoolslikeCalendlyorPayPalsenduserdetailsintheURLaftertheyregisteredormadeapurchase. Thiserrorishardtofix,andthatisataskforyourdevelopers.TheyshouldimprovetheURLqueryparametersandremovealltheuserinformationfromtheURL.Alternatively,youcanfollowinstructionsfromthisGitHubpost andtrytofixtheissueinsidetheGTM.Anotherwayistoswitchtoserver-sideFacebooktrackingonly.ThiswayyoucanmodifytheURLbeforesendingittoFacebook.5.IncreaseeventmatchQualityCopylinktothissectionForeachservereventthatyousendtoFB,therewillbetheeventmatchqualityscore.ThisscoredependsonthenumberofuserdatayousendtoFB.Ifyouuseacustomsubdomainforyourtaggingserver,onlyUserIP,browserID,_fbp,and_fbcaresenttoFBCAPI.Ifyousendonlytheseuserparameters,thematchqualitywillbearound4outof10. Tohavehighqualityscore,itisprettyimportanttosendasmanyparametersaspossible.FBusesthesedatatomatchusersonyoursitetotheonesintheirdatabase.Butbeforedoingit,youshouldcheckifsendinguserdatatoFBcomplieswiththeprivacypolicyrulesindicatedonyoursiteandotherregulationsfirst.Buttechnically,it’sgoodtosendmoreparameters.Itmeansthattheaudienceandconversiondatawillbemoreaccurate,Facebookalgorithmswillhavemorespecificdataaboutyourusers,andcampaignswillperformbetter. Howcanyouincreasetheeventmatchqualityscore?Theanswerissimple:youneedtosendmoreuserdata.Buttheimplementationremainsacomplexprocess.Hereishowitworks:Istartbycheckingifthedatalayerisimplementedonyoursiteandwhetherithasalluserdata.Forexample,iftheusercanlogintoyoursite,youneedtocheckifuserdetailsaresenttothedatalayerwhenusersareloggedin. Ifthedatalayerisnotimplemented,thenassignataskofsettingituptoyourdevelopers.  Afterthat,makesurethatyoupassalluserparametersfromthewebtotheservercontainer. AnotherthingthatwillhelpyouincreasethematchqualityisanewfeaturefromtheDataTag.Weaddedtheabilitytostoreuserdata.Forexample,iftheusersubmittedacontactformonthesite,youcanusetheDatatagtostoreuserdatainthelocalstorageandthenuseitonotherpages.Youcanreadmoreaboutthisfeaturehere.6.SameEventIDReceivedforManyEventInstancesCopylinktothissectionIfyouaretrackingFacebookeventsfrombothbrowserandserver,thenFacebookrequiresyoutosendauniqueeventIDforeveryevent.Forthematchingevents,Facebookpixeleventnameshouldbeexacttotheservereventsname.SamefortheeventID,thesameeventsfromtheFBpixelshouldmatchFBserverevents.Thisiswhendeduplicationhappens. ThiserrorhappenswhenyousendthesameeventIDformanyevents.Forexample,auserlandedontheproductpage.Itmeansthattwoeventsshouldtriggeronthispage:PageViewandViewContent.YoushouldsendauniqueeventIDforeachoftheevents.ItmeansthatFBeventsandeventIDsshouldlooklike:FBbrowser:PageView,eventID:‘69’ FBserver:PageView,eventID:'69'FBbrowser:ViewContent,eventID:'79' FBserver:ViewContent,eventID:'79'EventhoughtheseeventstriggeronthesamepageandmightusethesametriggerintheGoogleTagManagerwebandservercontainer,youshouldsendauniqueeventIDforbothofthem. SameEventIDReceivedforManyEventInstanceswilloccurifyou’llhavethissituation:FBbrowser:PageView,eventID:‘69’ FBserver:PageView,eventID:'69'FBbrowser:ViewContent,eventID:'69' FBserver:ViewContent,eventID:'69'Inthisexample,wearesendingeventID69forbothPageViewandViewContentevents.ButFacebookexpectstoseeauniqueeventIDforthesetwoevents. Solution:addFacebooktestID,openthepreviewmodeofwebandservercontainers,andtestthesetup.Afteryoufindoutwhenthiserrorhappens,wecandomoretofixtheissue. WecreatedacustomvariablethatgeneratesauniqueeventID.IsuggestusingthisvariabletosetupFBeventdeduplication.YoucanaddaneventnametothisvariabletoensurethattheeventIDisunique,Justlikeyouseeinthescreenshotbelow.Inthiscase,evenifyoureventswillusethesametrigger,theeventIDwillbeuniquesinceitconsistsofevent_name_eventID.YoucanreadmoreaboutFacebookeventdeduplicationinthisarticle.  ConclusionCopylinktothissectionSettinguptheFacebookconversionAPImayseemcomplicatedand,attimes,confusing.Butit’sworththetimeandeffort.Afteryou'vedoneallthathardworkofmovingFBtrackingtotheserver,thequalityoftrackingandaudiencewillimprove. However,youmightfacesomeissuesifthereareerrorswithinthisnewintegrationprocess.Simplyput,youmightseeredandyellowwarningsintheeventsmanager. Thegoodnewsismostoftheseproblemsaren'tastrickyastheymightseemandnotexpensivetofix.IhopethisarticlewillhelpyoudealwiththemostcommonFacebookconversionAPIerrorsandwarnings.Taggedwith:GTMFacebookRelevantpostsAugust20,2021Third-partycookiesareabouttoexpire.Willserver-sidetrackinghelp?Bytheendof2024,ChromeandChrome-basedbrowserswillbedonewiththird-partycookies.SafariandFirefoxalreadyimplementedIntelligentTrackingAlgorithmsthatcanblocktrackers.Thatleadstothenextpoint:digitaladvertisingmethodsthatrelyonthird-partycookiestotargetconsumersmightbecomeineffectiveorevenstopworkingaltogether. Thischangeinhowadvertiserstrackuserswillhurtmanypublishersandadnetworksthatrelyonthesethird-partycompaniestodisplayadsandcollectdatafromsitevisitorstounderstandtheiraudience. Inthisblogpost,Iwillexplainwhatathird-partycookieis,whyitmatters,andhowserver-sidetrackingcanhelpbusinessestransittotheworldwithoutthird-partycookies.August16,2021FacebookEventMatchQuality–WhatitisandhowtoincreaseitUsingFacebookconversionAPI,youcansendeventsfromyourservertotheFacebookserver.Server-sidetrackingwithconfiguredcustomsubdomainhelpstobypassadblockers,ITPs,andiOS14restrictions.HostyourGTMserveratStapeTryforfreeBysigningupyouagreetoStape’sTermsofUseandPrivacyNotice



請為這篇文章評分?