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?

Hello,
Are Mautic and your website the same domain?
Joey

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