How to exclude spam traffic from GA4 using Google Tag Manager and the traffic_type parameter.
For more detail on identifying, filtering and removing bot traffic from reports, check out:
https://twooctobers.com/blog/bot-traf...
00:00 Intro
00:52 Filtering internal traffic by IP address
06:23 Creating a custom JavaScript variable in GTM
11:17 Reporting on traffic_type in an Exploration