• I set up a redirect as a way to count downloads of a PDF file, we point at a redirect /issue/yyyy-mm-dd and it redirects to a pdf file yyyymmdd.pdf.

    A recent Constant Contact email campaign shows 450+ clicks to the /issue/yyyy-mm-dd link but in redirection only about 25 hits are registered.

    I tested the link directly from the email and it’s correct and forwards to the PDF but it didn’t increment the counter.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ImageJohn Godley

    (@johnny5)

    The plugin always counts hits that come through WordPress. However, if a request is made that doesn’t come through WordPress then it won’t be counted. This request could go through a cache, for example.

    Thread Starter ImageBrian – TGL

    (@w411)

    How would I make sure that a redirect is not being cached?

    Is there a flag that I could include in the link like a ?no-cache=1 etc?

    • This reply was modified 3 months, 2 weeks ago by ImageBrian - TGL.
    Plugin Author ImageJohn Godley

    (@johnny5)

    Caching is something that happens outside of Redirection, so I can’t really provide an answer to that. You will need to look at your site and whatever caching is being provided and use the tools provided by those systems.

    Thread Starter ImageBrian – TGL

    (@w411)

    Makes sense, I added a cache bypass rule in Cloudflare and a cache bypass rule at the server level with the host. If I open an incog window and paste the redirect link it get’s counted, but pasting the link again in the same open incog window doesn’t count a new hit . . . is that expected behaviour?

    Plugin Author ImageJohn Godley

    (@johnny5)

    Again this is something that happens outside of Redirection, and it’s impossible for me to say. Maybe the browser is caching it.

    Thread Starter ImageBrian – TGL

    (@w411)

    I understand that caching is external, I am just trying to be sure of how Redirection is designed to operate . . . So if one of our subscribers clicks the Redirection link 10 times in the email within 30 seconds, Redirection SHOULD register 10 hits (not a visitors vs page views scenario)?

    Plugin Author ImageJohn Godley

    (@johnny5)

    I’m not trying to be difficult, but just trying to be accurate. I can only tell you what Redirection will do and how it is designed to operate, which is record a hit each time a request comes through to WordPress – this it will always do. What happens before that is something I can’t tell you, and I can’t really answer your question. It depends very much on your set up and situation. This applies to any request, not just Redirection.

    If you disable all caches, and set the URLs to return a no cache header then you might be able to get a one-to-one request/hit.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.