How to send data from ajax to a base controller method that runs on every visited page

I want user’s latitude and longitude to be updated on every page visited. In order not to duplicate things, I created a base controller where I also implemented the onActionExecuting which allows the method to run every time on every action from the derived controllers, but I can’t figure out how to pass the latitude and longitude parameters since they are only passed from the browser through an Ajax call.