i wanted to create an event for downloading softwares on my website to reduce bounce rate. i read that one way is using google tag manager. so i created an account on GTM and it gave me a script to put right after opening tag and another script to put after opening tag. when i did it, the scripts made my site's PageSpeed score and PageSpeedInsights score bad. check the GTmetrix report below:
why does this happen? what can i to solve it? is there a better way to create events for google analytics?