Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt 91 posts 237 karma points
    Nov 22, 2016 @ 14:13
    Matt
    0

    Implementing a click tracker/PPC via API Controller

    I'm implementing a basic pay per click for an umbraco site - when a visitor clicks on a link to a node, the owner of the node (a member) has its credit (an int property) decremented.

    I was thinking to do this via a API Controller - so when the user clicks, in addition to navigating to the page a request is sent (via JS) to the controller with the clicked nodes ID (/umbraco/api/trackclicks/1001 for example).

    My worry is performance - is the controller/contentservice the best way to do it if a lot of people are clicking simultaneously.

    Has anyone implemented something similar or has any tips? Many thanks!

Please Sign in or register to post replies

Write your reply to:

Draft