Third-party analytics means using an outside company's service to measure who visits your site and what they do. You add a small script to your pages, the script runs in each visitor's browser, and it sends data such as page views, referrers and device details to servers the vendor controls. You then read the results in the vendor's dashboard.
The appeal is convenience. There is nothing to host, the reports are ready-made, and setup is often a single snippet pasted into your site. The trade-off is control. The vendor decides what is collected and how long it is kept, and your visitors' data passes through a company that is not you. That raises privacy and consent questions, which in some regions means showing a consent notice before the script is allowed to run.
It also has a practical weakness: because the script and the data requests come from a domain that is not yours, they are easy to recognise and block. Browsers with built-in tracking protection and any ad blocker that uses lists of known tracking domains can stop the script from loading, so the numbers you see undercount real traffic, sometimes by a lot on technical audiences.
The usual confusion is with first-party analytics, where the same kind of tracking is served from your own domain or your own server. The code may look similar, but the data stays with you and is harder for blockers to spot.
An example: a blog installs a hosted analytics script. Visitors using a privacy extension never load it, so they never appear in the reports.