can you check the two scripts that you added? Google Tag Manager would have provided you with both, just make sure those are the ones you have used and they are correct.
Your code looks good. Are you sure you’ve pasted everything correctly? The error is saying something about a 404 error – what URL is it trying to reach?