I use original Javascript function function gtag(){dataLayer.push(arguments);} then got error: error TS2554: Expected 0 arguments, but got 3. when used like
With ga.js I could track offline activity and send to my custom server or store in localhist by overriding the sendHitTask. Like this: https://www.google.se/amp
Google released gtag.js a couple of months ago as the new way of tracking with Google Analytics, eventually replacing analytics.js as far as I understood. gtag.