Add logging for replaceState usage