Facebook conversion API errors and how to fix it - Stape.io's
文章推薦指數: 80 %
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
延伸文章資訊
- 1The most common errors with the Conversion API event
Every event ID is unique that is used to identify deduplicated events received from your pixel an...
- 2About Deduplication for Facebook Pixel and Conversions API ...
We deduplicate pixel events with identical event and eventID parameters. Redundant server events....
- 3How do I send event_id with Facebook pixel? - Stack Overflow
To add an event_id parameter to the events you're sending through your pixel, go into your websit...
- 4Facebook Pixel Tag Setup Guide - Tealium Learning Center
To make Facebook Pixel Event IDs available as server-side attributes, set Generate Event ID to tr...
- 5Facebook Conversions API (CAPI) - Facebook Pixel FAQ
These changes will affect how Facebook receives and processes conversion events from tools such a...