Tracking works with locahost, but not after pushing to AWS

Your software
My Mautic version is: 4.47
My PHP version is: 7.4
My Database type and version is: MySQL 5.7.41

Your problem

I have added a tracking script to the website that I want to track. The tracking works when I log onto the localhost:1313 version. But after pushing my changes to AWS, then going to the URL of the site, the tracking does not work. Why is this the case? What setting(s) needs to changed?

Are Mautic and your website the same domain?

No. The name of the website (not the actual name, but an example) is On GoDaddy my manager purchased a domain called I added a subdomain to it and called it mautic. So my Mautic URL is, and I am trying to track