Viewing 2 replies - 1 through 2 (of 2 total)
  • We are having issues with Ajax usage here.

    Ajax increases a lot when we have peaks of traffic as it runs on every page, and our server can’t handle it even with a very powerful setup.

    If anyone know any alternative while this suggestion is not developed yet, please share 🙂

    Plugin Author PixelYourSite

    (@pixelyoursite)

    I’ll try to explain what’s going on:

    When we send CAPi events, each event is sent twice, once for the browser and once for API. This pair of events has an unique Event ID that Facebook uses for deduplication. 

    Depending on the cache configuration, these IDs can be cached, creating some problems. That’s where the admin-ajax role comes in. 

    We do have an option to disable admin-ajax under Facebook ID settings, on the plugin’s main page.
    You can disable it, and check your events to make sure there is no cache impacting the Event ID: open the website in an incognito window, and use Pixel Helper Chrome extension to look for the PageView Event ID. Refresh the page, and check if the ID is different. If it is, you don’t have any issues, and you can keep admin-ajax out of the picture. 

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature request to use REST API for CAPI events’ is closed to new replies.