Comments (6)
@thibaultleouay looks good. for now this is the only way to "see" that data. We'll let you know once we add support for hostnames!
from analytics.
This is how I managed it
https://github.com/openstatusHQ/openstatus/blob/main/apps/web/src/app/_components/analytics.tsx
In order to catch the custom subdomain
Their might be a better way ?
from analytics.
We're already tracking the full hostname but we don't expose a hostname filter/domain selector yet. Do you want to filter for a specific domain eg my.custom-domain.com
and see all the pageviews/events from it?
from analytics.
yep that would do the job,
I want to be able to differentiate the page views from our landing page www.openstatus.dev -> page / and custom-domain.openstatus.dev -> page /
What i thought of doing was something like these
<Analytics
beforeSend={(event) => {
if (event.host.includes('www')) {
return event;
} else {
return {
...event,
url: `/domain/${event.host}/${url.toString()}`,
};;
}
}}
/>
from analytics.
Hey, is there an update on this yet?
I want to track analytics for a multi-tenant app. how do i do this ?
Also the openstatus github link isn't working. Could you explain on how i can achieve this currently ?
from analytics.
@nikl216
We removed it from subdomain pages but you have achieve it like this :
https://github.com/openstatusHQ/openstatus/blob/935787d332ea3f5ac36248ee1865e75790bc370e/apps/web/src/app/_components/analytics.tsx
from analytics.
Related Issues (20)
- Support for Arc Browser HOT 2
- User Opt in feature HOT 2
- Redirect / rename scripts? HOT 7
- Can't use server track in Remix HOT 5
- @vercel/analytics throws errors HOT 4
- Error 400 when using analytics/server track in server actions HOT 2
- Vercel build failed with Turborepo and multiple apps deployed HOT 5
- Vercel Analytics Endpoints HOT 1
- Docs: Specify if `track` runs in development mode or not HOT 1
- Page changes are no longer tracked in SvelteKit 2 HOT 9
- Feature Request: Allow nonce as optional prop in analytics component for content security policy HOT 1
- Integration with Docusaurus HOT 1
- Module resolution warnings under Yarn PnP: `Unable to resolve path to module '@vercel/analytics/react'.eslintimport/no-unresolved` HOT 5
- City-Level analytics HOT 2
- CJS files are missing in 1.2.0 HOT 10
- Feature request: Exports HOT 2
- BeforeSend don't work in app directory RSC HOT 1
- Request Bodies with "o" Object Should be Encoded HOT 6
- Custom events does not work in the error boundary HOT 3
- Custom events from routes / SSR HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analytics.