Tracking number of clicks to external website

Hi Bubble Community,

I’m currently creating a review site. On my site, I plan to measure the number of clicks on advertiser links from posts created by users and pay users according to the number of clicks. Therefore, I need a system to track the number of clicks from each post. It seems that using cookies is a common method for this kind of measurement, but I am unsure how to implement it specifically in my app.

The main numbers I want to measure are:

  1. The number of users who clicked on advertiser links from each post (click count). **I want to ensure that if a user clicks on the affiliate link from a post more than once within 30 days, only the first click is counted. I also want to track of clicks by non-logged in users.

  2. The total number of clicks on links associated with all posts (I believe this can be calculated by summing up the click counts for each post).

It would be much appreciated if you can help me building this structure.
Please do let me know if you need additional information to answer my question.

Thank you for your support.

on the data type that is the post, make a field that is of type number called ‘clicks’…every time a user clicks the element that is the post (likely a group), use the action to make changes to thing (the post) and add a +1 to the clicks field by referencing this things click +1…then use action to open external link for the link to be navigated to.

Keep in mind that Bubble charges 0.6 WUs+ for make changes to thing, which means for each click it will cost at least 0.6 WUs + whatever data that is updated (numbers won’t cost much)…so 0.6 WUs at $30/month for 200,000 units is about $0.15/1000 WUs, meaning each click costs $0.000009, so you might want to add that into the cost of the advertisement for each click.

If you are charging adverts on a daily or monthly basis, keeping track of clicks is likely not something you want to do, but if you charge adverts per click it is fine.

1 Like