Remote Code
WebExtend will automatically download and bundle all import statements with the https|http
prefix for fulfilling the remote code restriction in Manifest V3.
Google Analytics
You can refer to the following code for importing Google Analytics.
ts
import "https://www.googletagmanager.com/gtag/js?id=G-XXXXXX";
window.dataLayer = window.dataLayer || [];
export function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-XXXXXX");