A few common possibilities are:
- directly in the site code
- through a plugin
- through Google Tag Manager
- through multiple methods at once
If you are unsure, it is worth checking before making changes. Running GA4 through more than one method can create duplicate tracking and messy data.