• Resolved ronny84

    (@ronny84)


    Hi guys,

    first thank you for your great plugin!

    I have read the documentation but found no answer. I am planning an marketing campaign in print, where visitors can scan an QR Code. To track the clicks and how good it works I wondered if Koko Analytics will count htaccess redirects if I send by QR Code to url/print (url dont exist) and then redirect to url? Or do I better have to create an existing landing page?

    Thank you for your help.

    Kind Regards

    ronny

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hello Ronny,

    By default, Koko Analytics works by tracking existing pages using a piece of client-side code (JavaScript), so a server-side redirect will not be counted. You have several options though:

    • Send the QR Code to an existing URL and then perform the redirect in JavaScript (after everything has fully loaded and Koko Analytics tracked the pageview).
    • Perform the redirect through PHP but call the koko_analytics_track_pageview($post_id) function before doing the redirect. This will instruct Koko Analytics to count a pageview for the post with the given $post_id.

    I hope that gives you some ideas on how to tackle this. Let me know if you’d like me to elaborate.

    Best,
    Danny

    Thread Starter ronny84

    (@ronny84)

    Thank you very much for the fast reply / help! 😉

    Than I will check other options for me.

    Kind Regards

    ronny

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

The topic ‘Counting Redirects?’ is closed to new replies.