Facebook Conversion API on WordPress using PixelYourSite
文章推薦指數: 80 %
Learn how to send pixel events to Facebook servers bypassing browsers' limitations and ad blockers using PixelYourSite WordPress plugin. Close Weuseinformationcollectedthroughcookiesandsimilartechnologiestoimproveyourexperienceonoursite,analysehowyouuseitandformarketingpurposes.PrivacyPolicy Allowall VerifiedbyConsentMagic Close Yourprivacysettings Weandourpartnersuseinformationcollectedthroughcookiesandsimilartechnologiestoimproveyourexperienceonoursite,analysehowyouuseitandformarketingpurposes.Becausewerespectyourrighttoprivacy,youcanchoosenottoallowsometypesofcookies.However,blockingsometypesofcookiesmayimpactyourexperienceofthesiteandtheservicesweareabletooffer.Insomecases,dataobtainedfromcookiesissharedwiththirdpartiesforanalyticsormarketingreasons.Youcanexerciseyourrighttoopt-outofthatsharingatanytimebydisablingcookies. PrivacyPolicy Allowall ManageConsentPreferences Necessary AlwaysON Thesecookiesandscriptsarenecessaryforthewebsitetofunctionandcannotbeswitchedoff.Theyareusuallyonlysetinresponsetoactionsmadebyyouwhichamounttoarequestforservices,suchassettingyourprivacypreferences,logginginorfillinginforms.Youcansetyourbrowsertoblockoralertyouaboutthesecookies,butsomepartsofthesitewillnotthenwork.Thesecookiesdonotstoreanypersonallyidentifiableinformation. Analytics Thesecookiesandscriptsallowustocountvisitsandtrafficsources,sowecanmeasureandimprovetheperformanceofoursite.Theyhelpusknowwhichpagesarethemostandleastpopularandseehowvisitorsmovearoundthesite.Allinformationthesecookiescollectisaggregatedandthereforeanonymous.Ifyoudonotallowthesecookiesandscripts,wewillnotknowwhenyouhavevisitedoursite. EmbeddedVideos ThesecookiesandscriptsmaybesetthroughoursitebyexternalvideohostingserviceslikeYouTubeorVimeo.Theymaybeusedtodelivervideocontentonourwebsite.It’spossibleforthevideoprovidertobuildaprofileofyourinterestsandshowyourelevantadvertsonthisorotherwebsites.Theydonotstoredirectlypersonalinformation,butarebasedonuniquelyidentifyingyourbrowserandinternetdevice.Ifyoudonotallowthesecookiesorscriptsitispossiblethatembeddedvideowillnotfunctionasexpected. Marketing Thesecookiesandscriptsmaybesetthroughoursitebyouradvertisingpartners.Theymaybeusedbythosecompaniestobuildaprofileofyourinterestsandshowyourelevantadvertsonothersites.Theydonotstoredirectlypersonalinformation,butarebasedonuniquelyidentifyingyourbrowserandinternetdevice.Ifyoudonotallowthesecookiesandscripts,youwillexperiencelesstargetedadvertising. Confirmmychoices Allowall VerifiedbyConsentMagic Home Strategies Videos Articles Contact Cart MyAccount Menu Home Strategies Videos Articles Contact Cart MyAccount PixelYourSiteProfessional Features FacebookPixel GoogleAnalytics GoogleAdsRemarketing ANYScript Changelog Add-ons PinterestTagAdd-On BingTagAdd-On TheSuperPack FacebookConversionAPI(CAPI) VerifyingyourDomainonFacebook HowtoaddthePinterestTag CartFlowsandPixelYourSite ProductCatalogs ProductCatalogFeedforWooCommerce VideoTutorials SmartOpenGraph EasyDigitalDownloadsProductCatalogFeed WordPressFeedforFacebookDynamicProductAds WooCommerceCostofGoods BundleDeal Menu PixelYourSiteProfessional Features FacebookPixel GoogleAnalytics GoogleAdsRemarketing ANYScript Changelog Add-ons PinterestTagAdd-On BingTagAdd-On TheSuperPack FacebookConversionAPI(CAPI) VerifyingyourDomainonFacebook HowtoaddthePinterestTag CartFlowsandPixelYourSite ProductCatalogs ProductCatalogFeedforWooCommerce VideoTutorials SmartOpenGraph EasyDigitalDownloadsProductCatalogFeed WordPressFeedforFacebookDynamicProductAds WooCommerceCostofGoods BundleDeal FacebookConversionAPI(CAPI) SendthepixeleventsdirectlytoFacebook’sservers,bypassingbrowserlimitationsoradblockers HowtosetupCAPIeventswithPixelYourSiteandhowtotestthem BuythePixelYourSiteProfessionalplugin or GettheBundle ConversionAPI(CAPI)ConversionAPIallowsyourwebsitetosendeventsdirectlytoFacebook’sservers.TheseeventsarelinkedtoyourpixelandareprocessedbyFacebooklikebrowserevents.ThemainadvantageofCAPIeventsisthattheywillbypassbrowsers’limitationsoradblockers. HowtoconfigureCAPIwithPixelYourSiteGetthetokenGotoEventsManagerSelectthepixelyouwanttoconfigureandclickonSettings. Scrolldownuntilyousee“ConversionAPI”andclickon“GenerateAccessToken”.Copythetokenbyclickingonit. AddthetokentoPixelYourSiteOpenyourPixelYourSitepluginandaddthetokeninthededicatedfieldunderthePixelID.ChecktheoptiontosendCAPIevents,scrollthepage,andSAVE. PixelYourSitewillstarttosendCAPIeventsalongwiththebrowserevents.Asafinalstep,youshoulddeleteanycachethatmightbepresentonthewebsite.Thiswillensurethatthelatestversionofthecodeisservedimmediatelytoyourusers. HowtotestCAPIeventsTotestCAPIevents,goinsideyourEventsManager.ClickonTestEventsandcopytheTestCode. OpenthePixelYourSitepluginandaddthetextcodeinthededicatedfieldbelowthepixelID.Scrollthepage,andsave.Ifyouhaveacacheplugin,deleteyourcache. Startbrowsingyourwebsitetofireevents. Makesureyoudon’ttestwithanexcludedrole.Youhavethisoptionontheplugin’smainpage. GobacktoEventsManager,andyouwillseeeventsreportedunderTesting. You’llstarttoseepairsofbrowserandserverevents,withtheservereventsdeduplicated. ClickontheeventtoseeitsparametersoritsEventID.OnlybrowsereventsfiredinthebrowserwindowwheretheEventsManagerisopenarereportedundertesting.Ifyoubrowseyourwebsiteinanincognitowindoworinadifferentbrowser,browsereventsarerecorded,butnotreported.Inthiscase,youwillseeonlythededuplicatedserverevents.Toseeactiveserverevents,installanadblockerandbrowseyourwebsite.Facebookwillgetonlytheserverevents,soitwon’tdeduplicatethem.It’spossibletoseewarningsfromtimetotime.Someofthesewarningscanbefalsepositives.Wenoticedwarningsrelatedtomissingtravelparametersforeventsthathavenothingtodowithtravel.Whenyouaredonetesting,removethetestingcodefromPixelYourSite. CAPIeventsareabackupforthebrowsereventsConversionAPIeventsdon’treplacebrowserevents,theyworkasabackup.Ifforsomereasonthebrowsereventsdon’twork,FacebookwillusetheCAPIevents.Itmeansthateveryeventisinfactsenttwice,onceusingthebrowser,onceusingConversionAPI.DeduplicatingeventsInordertokeepyoureventsreportingaccurate,Facebookisdeduplicatingservereventswhenabrowsereventissent.Deduplicationmeansthatwhenbothbrowserandservereventsarereceived,thebrowsereventisprocessed,andtheservereventisdropped.EventIDWhendeduplicatingevents,Facebookusestwoimportantsignals:theeventnameandtheEventID.WhenapairofserverandbrowsereventshavethesamenameandthesameID,theservereventisdeduplicated.PixelYourSitealwaysadsanuniqueEventIDforeverypairofbrowser-serverevents. DeduplicateeventsandcacheThekeyelementofeventdeduplicationistheEventID.thismustbeuniquetoeachpairofbrowser/serverevents. CacheproblemSometimescachepluginswillstorethefullcodeofapage,includingtheEventID.Itmeansthatwhenthepageisvisitedbydifferentusers,thesameeventIDswillbedeliveredagainandagain.ForFacebook,theseeventsmightlookconnected,anddisregardedassuch. ThesolutionToovercomethisproblemPixelYourSiteuseradmin-ajax,bypassingcachesthisway. Youcanenableordisabletheuseofadmin-ajaxfromtheplugin’smainpage.Ifyoudisableadmin-ajax,it’sbesttocheckiftheEventIDisindeeduniquetoeachpairofevents. TesttheEventIDYoucandoitusingthePixelHelperChromeextension,ortheEventsManagertestingtool Openapageinanincognitowindow.CheckaneventwithPixelHelperandlookforitsEventID.Refreshthepageandcheckthesameevent.IftheEventIDisdifferent,youarefine.ItmeansthattheEventIDisnotcachedanddeduplicationworkscorrectly.RememberthatPixelHelperonlyshowsthebrowserevents,butforthistest,thisisenough.Downonthispage,youwilllearnhowtotestservereventstoo. CAPIeventsdataParametersWhensendingCAPIevents,PixelYourSitetriestosendthesamesetofeventsparametersasforbrowserevents.Theonlyparameterswecan’tcollectarerelatedtothevisitor’sbrowsertime,sothesearesentforbrowsereventsonly.MatchKeyandUserDataKeysCAPIeventsalsosendadditionalinformationthathelpsFacebookmatchtheusertoaFacebookaccount.BrowserID,FacebookClikID(FBC),FacebookBrowserID(FBP)arecollectedusingFacebook’sownlibrary.ThesearecalledMatchKeys.Whenpossible,theeventsalsohavedataaboutyouruser,likeEmail,FirstName,IPAddress,LastName,Phone,CityState,ZIPcode.ThesearecalledUserDataKeys.TheplugincansendUserDataKeyswhenthevisitorisloggedonyourwebsite,andthereisdataassociatedwiththeWordPressaccount.WooCommerceandEasyDigitalDownloadsPurchaseeventcantakeitfromtheorder’sdetails.EventMatchQualityUsingMatchKeysandUserDataKeys,FacebooktriestomatcheventstoaFacebookaccount.BecausePurchaseeventshaveaccesstobetterUserDataKeys,youcanexpectabetterMatchingScoreforthem.Eventsfiredbynon-logged-invisitorscanhavealowerscore. DiagnosticsFromtimetotime,youwillseesomeerrorsrelatedtoCAPIeventsreportedundertheDiagnosticstab. Sometimestheseerrorsarefalsepositivesorcanbeignored.ServerSendingInvalidMatchKeyParametersforEventYourserverissendinganinvalidfbp,ip_address,user_agentparametersvalueforyourevent.Thismaybebecausetherewasanerrorintheparametervalue.Thismaycauseissueswiththeattributionanddeliveryoptimizationofadcampaignsthatareusingthisevent.We’veseenthiserrorfromtimetotime.It’sprobablycausedbybotstriggeringthepixel,wherethescriptcan’tcorrectlyidentifyfbp,ip_address,user_agentvalues.It’smarginal,andyoucanignoreit.SameEventIDReceivedforManyEventInstancesYou’resendingthesameeventIDformanyinstancesofyourevents.EventIDsareuniqueidentifiersthatareusedtodeduplicateidenticaleventsreceivedfromyourpixelandtheConversionsAPIsothey’renotcountedtwice.ToensureFacebookisaccuratelycountingyourevents,eachuniqueeventinstanceneedsitsownuniqueeventID.Thismaycauseissueswiththemeasurementofyoureventsandtheattributionofyouradcampaigns.Thiscanbeindeedrelatedtothecacheissueexplainedbefore.Testyoureventsandmakesureeachbrowser/servereventhasauniqueEventID.Anotherpossibleexplanationisthatthepagesourcewascopiedandservedbyotherwebsites.ThiscanbeGoogle’scache,GoogleTranslate,orsomethingelse.YoucanrestrictthepixeltofireonyourdomainonlyfromtheEventsManagerSettingspage.LookforTrafficPermissionsandcreateanAllowList.Itcanalsobejustafalsepositive.TestandconfirmthatEventIDisuniquetoeachpairofbrowser/servereventsandrestrictthepixeltoyourdomainonly.Onceyoudothese,youcanignoretheproblem. NewDomainsSendingDataYourpixelrecentlystartedsendingeventsfromthesedomainsThismightormightnotbeanerror.ThesolutionistocreateanAllowListwithdomainsthatcanusethepixel.GotoEventsManager,clickonSettings,lookforTrafficPermissions,andcreateanAllowList. iOS14privacyupdateandyourFacebookPixel Clickhere LearnaboutFacebookAggregatedEventMeasurement Clickhere LearnaboutPixelYourSiteV8 Clickhere VerifyingyourDomainonFacebookusingPixelYourSite Clickhere TheSignalevent&FacebookCustomAudiencesorCustomConversions Clickhere TheSignalevent&AggregatedEventMeasurement Clickhere FacebookConversionAPI(CAPI) Clickhere Ourplugins TheBundleDeal PixelYourSiteProfessional ProductCatalogFeedforWooCommerce SmartOpenGraph WordPressfeedforDPA WooCommerceCOG BingTagadd-on PinterestTagadd-on TheSuperPack iOS14 iOS14andyourFacebookPixel FacebookAggregatedEventMeasurement iOS14andPixelYourSiteV8 VerifyyourdomainonFacebook TheSignalevent SignalCustomConversion FacebookCAPI Helpsections PixelYourSiteProfessionalHelp ProductCatalogFeedforWooCommerceHelp WordPressFeedforFacebookDynamicProductAdsHelp WooCommerceCOGHelp Usefulpages: UpgradetotheBundleDeal Articles Contact&Support MyAccount Becomeanaffiliate Legal: Privacypolicy Termsofservice Softwarelicenseagreement Refundandcancelation ©PixelYourSite.com.ThissiteismanagedbyMinimalWorkSRL,RO35964491,J38/337/14.04.2016,Bujoreni,Olteni145,Valcea,Romania
延伸文章資訊
- 1About Conversions API | Facebook Business Help Center
The Conversions API is designed to create a direct connection between your marketing data and the...
- 2Facebook廣告像素、轉換API設定及網域驗證- WACA 支援中心
就在今年,FB除了像素之外,更推出了轉換API (Conversion API),能將網頁事件從WACA伺服器直接傳送到Facebook,伺服器事件與像素搭配,可以幫助商家 ...
- 3將WordPress 帳號連結至Facebook
將您的WordPress 帳號連結至Facebook,深入瞭解用戶與您商家互動的情況。您可以分享事件,藉此將Facebook 廣告的目標設定及投遞最佳化,進而帶來更多業務成果。
- 42021 Facebook 下廣告秘密武器- 轉換API 行銷人必讀!
使用Facebook 轉換API 並不困難,特別是如果您使用的是現有架站平台,例如Shopify 或是Wordpress等. Facebook 轉化API 追蹤什麼? Facebook 轉化AP...
- 5【網絡營銷知識庫】比Facebook 像素更強的秘密武器
轉換API 可以理解為強化版的Pixel,記錄顧客在網店的行為,用作Facebook 廣告追蹤的基礎。而轉換API 可以發送比像素更多的網站行為或事件,協助Facebook ...