If you have tracked data to the wrong site in Matomo and would like to import the logs to the correct site there is an extra step to perform prior to importing. The log data will look like below

12.34.56.78 - - [03/Feb/2023:16:40:31 +1300] "GET /matomo.php?idsite=1&rec=1&urlref=https://www...................... HTTP/1.1" 200 256 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0"

You will notice the log includes idsite=1. You will need to use your favourite text editor to search and replace idsite=1 with the correct idsite for example idsite=3 then start the process of importing.

Previous FAQ: How do I move my data between Matomo On-Premise & Cloud