From aedb35b8dfee9731d44152d7e8e3b0647cd42981 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Fri, 14 Aug 2026 08:44:50 -0600 Subject: [PATCH] feat: enable Google Tag Manager on cloud version only Mounts the existing cloud-gated Analytics component (GTM + HubSpot script loader) in _app.tsx. It was already implemented behind api.settings.isCloud but never wired into the app, so it never loaded on cloud or self-hosted instances. --- apps/dokploy/pages/_app.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/dokploy/pages/_app.tsx b/apps/dokploy/pages/_app.tsx index 1ed8380be..0d8397cd8 100644 --- a/apps/dokploy/pages/_app.tsx +++ b/apps/dokploy/pages/_app.tsx @@ -9,6 +9,7 @@ import NextTopLoader from "nextjs-toploader"; import type { ReactElement, ReactNode } from "react"; import { SearchCommand } from "@/components/dashboard/search-command"; import { WhitelabelingProvider } from "@/components/proprietary/whitelabeling/whitelabeling-provider"; +import { Analytics } from "@/components/shared/analytics"; import { Toaster } from "@/components/ui/sonner"; import { TooltipProvider } from "@/components/ui/tooltip"; import { api } from "@/utils/api"; @@ -52,6 +53,7 @@ const MyApp = ({ > + {getLayout()}