• Resolved atMaarten

    (@atmaarten)


    Hi Anton!

    Is there any plan to implement some sort of analytics to see how many images you’ve delivered through Cloudflare? Cloudflare basically told me they haven’t got those analytics, so i’m currently looking into another solution. Would it be possible for you to add this in the future?

    A simple no is also an answer, just checking what your thoughts are on this. ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @atmaarten,

    I just checked my account, I can see “Images delivered” and “Images stored” stats on the Images Overview page. Or are you talking about some different stats?

    Best regards,
    Anton

    Thread Starter atMaarten

    (@atmaarten)

    Hi @vanyukov,

    Ah sorry, i meant to say that we use multiple websites / domains and we can’t get hold of the “Images delivered” per domain / website. I asked around in the Cloudflare community, but they said they haven’t got those analytics. Which is very disturbing, as you pay around 1 dollar per 100,000 delivered images, and if one of our websites gets a load of bot traffic then you will be paying a huge sum.

    What i currently did to have ‘some’ analytics, is add a counter to the get_attachment_image_src() method after succesful retrieval of a Cloudflare Image URL. Which works fine just to get some sort of analytics per domain.

    Plugin Author Anton Vanyukov

    (@vanyukov)

    Unfortunately, I don’t think you’ll be able to get accurate stats via the plugin, not all images go through get_attachment_image_src, the results will be skewed.

    Did you get any responses from the Cloudflare community on how to get these stats? Maybe, using a Cloudflare Worker you could track the calls, log those out into a KV or D1 database, and have some sort of query that gives you a breakdown?

    Thread Starter atMaarten

    (@atmaarten)

    I figured it won’t be accurate, but at least it’s something compared to Cloudflares analytics. I asked the Cloudflare community here: https://community.cloudflare.com/t/see-detailed-usage-cloudflare-images/560056/7 but the response they provided didn’t give me any useful insights.

    I also get what you are saying, but i’m not familiar with Cloudflare API’s; so i don’t really know how i would track incomming calls to the images API. For now my solution would suffice, even though the results are skewed.

    Thanks for your answer and insights! ??

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @atmaarten, I’m testing a new analytics module. Is this something you’d be interested in piloting on your sites?

    Best regards,
    Anton

    Thread Starter atMaarten

    (@atmaarten)

    @vanyukov Ofcourse i’d be willing to test this! Hit me up ??

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @atmaarten,

    I’ve sent you a message in WordPress slack, but you did not respond. Anyways, I’ve moved this to a public beta, so you can test the following way:

    1. Install the plugin beta from https://github.com/av3nger/cf-images/releases/tag/1.7.0-beta.1
    2. If not already, create an account at https://getfuzion.io
    3. Login to the account, go to Cloudflare and follow the instructions to set everything up. Where it asks you to add a “Custom Image Path”, it should be a string, for example, images – this is what the image URL will use instead of that weird looking cdn-cgi/imagedelivery string.
    4. In the plugin, make sure you have a custom domain set up, go to Pro features, enable the custom images URL module, add the string from the step above.

    And you should be good to go.

    One last thing – the feature is behind a paywall, so please send me your email, I’ll make sure you have access.

    Best regards,
    Anton

    Thread Starter atMaarten

    (@atmaarten)

    Hi Anton!

    Thanks for your reply, this is not my personal WordPress account; so i didn’t even this account was associated with the WordPress slack. My e-mailadres is [email protected], please let me know when you added this account so i can test this functionality. ??

    Have a great day!

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @atmaarten,

    Done. Might take a few minutes to get deployed, but should be good to go. Just in case something is not working – disabling the module on the plugin will revert everything back. I’ve been running this on all my sites for a couple of days now and I haven’t had any issues so far.

    Best regards,
    Anton

    Thread Starter atMaarten

    (@atmaarten)

    @vanyukov

    Thanks! I still cannot use the Cloudflare option on getfuzion.io. Am i doing something wrong?

    Plugin Author Anton Vanyukov

    (@vanyukov)

    I’ll mark this as resolved, we can continue discussing via email.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Image analytics’ is closed to new replies.