Where to pick up tracker key?


I’m looking for the best way to pick up and store a tracker key. I can post links to my website on social media or other websites like: www.mywebsite.com/products.html?trackerkey=389dshj3 or www.mywebsite.com/products/spoon.html?trackerkey=4111sa3

So I just want to log these incoming clicks. What would be the central place to do this?

In the Controller class in Components? Just check if the $_GET[‘trackerkey’] is set and than log it?

I’m just looking what the central place is to handle these things.

Thanks :)

A base controller could work.

Yeah it seems obvious. I always doubt what to use as my central point for such things…