Google recently rolled out an update to their tracking system.
The old script, was the Universal Analytics analytics.js. The new one is the gtag.js script. For the time being at least, they record the same data, though the methods of doing so are different.
In any case, you should not have an *added* line. If you have gtag.js, you should therefore no longer have analytics. js. It's one or the other.
Also, your gtag call doesn't define an account ID, so it isn't sending any data anyway.
I think your best bet is just to start over. Get rid of your Google Analytics tag and implement it anew, using whichever version you prefer, but definitely using only one version or the other, with a proper account ID declared.
See
- "Migrate from analytics.js to gtag.js" - [
developers.google.com...]
- "Add gtag.js to your site" - [
developers.google.com...]
- "Set up analytics tracking with gtag.js" - [
support.google.com...]