Coder Social home page Coder Social logo

Subdomain analytics about analytics HOT 6 OPEN

vercel avatar vercel commented on May 1, 2024 1
Subdomain analytics

from analytics.

Comments (6)

tobiaslins avatar tobiaslins commented on May 1, 2024 2

@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.

thibaultleouay avatar thibaultleouay commented on May 1, 2024 1

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.

tobiaslins avatar tobiaslins commented on May 1, 2024

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.

thibaultleouay avatar thibaultleouay commented on May 1, 2024

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.

nikl216 avatar nikl216 commented on May 1, 2024

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.

thibaultleouay avatar thibaultleouay commented on May 1, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.