8000 general: remove Umami for osmapp.org by zbycz · Pull Request #1123 · zbycz/osmapp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

general: remove Umami for osmapp.org #1123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations 10000
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ NEXT_PUBLIC_API_KEY_GRAPHHOPPER=f189b841-6529-46c6-8a91-51f17477dcda
UMAMI_WEBSITE_ID=5e4d4917-9031-42f1-a26a-e71d7ab8e3fe

# keys for user telemetry
NEXT_PUBLIC_UMAMI_ID_OSMAPP=8eb1792b-ba57-468b-a2cf-c8b050e11bb3
NEXT_PUBLIC_UMAMI_ID_OSMAPP=
NEXT_PUBLIC_UMAMI_ID_OPENCLIMBING=85c41d25-1a2a-4168-9786-a442a92e6171

NEXT_PUBLIC_GTM_ID_OPENCLIMING=G-XCHYKP28FT

# Use climbingTiles loaded from openclimbing.org (instead of Overpass version)
# Use climbingTiles served from openclimbing.org (instead of Overpass version)
#NEXT_PUBLIC_ENABLE_CLIMBING_TILES=true
14 changes: 8 additions & 6 deletions src/components/App/umami.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@ import { PROJECT_ID } from '../../services/project';

export const Umami = () => {
const isOpenClimbing = PROJECT_ID === 'openclimbing';
const websiteId = isOpenClimbing
? process.env.NEXT_PUBLIC_UMAMI_ID_OPENCLIMBING
: process.env.NEXT_PUBLIC_UMAMI_ID_OSMAPP;

if (!websiteId || process.env.NODE_ENV !== 'production') {
return null;
}

// we should disable tracking for osmapp in ~10/4/2025
return (
<Script
defer
src="https://cloud.umami.is/script.js"
data-website-id={
isOpenClimbing
? process.env.NEXT_PUBLIC_UMAMI_ID_OPENCLIMBING
: process.env.NEXT_PUBLIC_UMAMI_ID_OSMAPP
}
data-website-id={websiteId}
/>
);
};
0