feat(hubspot-integration): dynamically load HubSpot script in production environment

- Added a script to conditionally load the HubSpot tracking script in the index.html file when the hostname matches 'app.worklenz.com'.
- Removed the HubSpot component from MainLayout to streamline the integration process.
This commit is contained in:
chamiakJ
2025-05-21 18:50:18 +05:30
parent d7ca1d8bd2
commit f716971654
2 changed files with 11 additions and 1 deletions

View File

@@ -68,7 +68,6 @@ const MainLayout = () => {
<Outlet />
</Col>
</Layout.Content>
{import.meta.env.VITE_APP_ENV === 'production' && <HubSpot />}
</Layout>
</ConfigProvider>
);