Best way to keep your attention on an audiobook is to simultaneously play a game that offers repetitive tasks and requires no cognitive effort. For instance, mine/build stuff with Minecraft or clean objects with PowerWash Simulator. If the game has any plot or requires any reading or figuring something out, then you quickly lose focus on the book. But quite many games have "grinding" that you can do for a long time for this purpose.