feat: initial commit - Jhonny Editor
- Adicionado estrutura completa do projeto - Configurado MCP server para Premiere Pro - Adicionado documentação e skills - Configurado Gitignore para o projeto
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
(() => {
|
||||
const script = document.currentScript;
|
||||
const measurementId = script?.dataset.googleAnalyticsId;
|
||||
if (!measurementId || !/^G-[A-Z0-9]+$/i.test(measurementId)) return;
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
window.gtag = window.gtag || function gtag() {
|
||||
window.dataLayer.push(arguments);
|
||||
};
|
||||
|
||||
const loadAnalytics = () => {
|
||||
const tag = document.createElement("script");
|
||||
tag.async = true;
|
||||
tag.src = `https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(measurementId)}`;
|
||||
document.head.appendChild(tag);
|
||||
window.gtag("js", new Date());
|
||||
window.gtag("config", measurementId, { anonymize_ip: true, send_page_view: true });
|
||||
};
|
||||
|
||||
if ("requestIdleCallback" in window) {
|
||||
window.requestIdleCallback(loadAnalytics, { timeout: 3_000 });
|
||||
} else {
|
||||
window.setTimeout(loadAnalytics, 1_500);
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user