You need to have the pump "downstream" of the point where the recirculation return line is connected to the system. The pump can also be put into the recirculation return line itself. Every pump is different and some are made to only be used in a certain way, typically you have to read the installation instructions for a specific pump before you buy it, to make sure it can be mounted & used in a way you are happy with. You can usually find such instructions for any pump online. One common way is for pump to be mounted at hot outlet of the water heater (tank #2 in your case), another common way is to have pump under a sink cabinet in furthest lavatory (which is not compatible with home-run style systems). Other configurations are possible too, there is no one right way.