Giter VIP home page Giter VIP logo

Comments (6)

arp242 avatar arp242 commented on July 3, 2024 1

You need to use …/count?p=/&t=TitleSiteA (&, not ?). There is only one ? after /count, and the rest of the parameters are separated by &.

from goatcounter.

arp242 avatar arp242 commented on July 3, 2024

The first site you create during signup is no different than any other site you create later. There's a bit of stuff going on in the background with database IDs, but that should be transparent (e.g. you can create an account, create a new site, then delete the first site, and all the IDs will get moved to the second site, making all of this "transparent" from a UI perspective).

There isn't really any way to see multiple sites in one dashboard right now. What's your use case for this?

the dashboard for SiteA doesn't receive any data.

That should work, so don't know why it doesn't. If you tell your site I can take a look.

from goatcounter.

andreuvall avatar andreuvall commented on July 3, 2024

The first site you create during signup is no different than any other site you create later. There's a bit of stuff going on in the background with database IDs, but that should be transparent (e.g. you can create an account, create a new site, then delete the first site, and all the IDs will get moved to the second site, making all of this "transparent" from a UI perspective).

I don't quite understand this. Maybe I should experiment a bit with it.

the dashboard for SiteA doesn't receive any data.

That should work, so don't know why it doesn't. If you tell your site I can take a look.

Thank you, that's very generous! I'll send it to you per email. I prefer it over pasting the link here.

from goatcounter.

arp242 avatar arp242 commented on July 3, 2024

I don't quite understand this. Maybe I should experiment a bit with it.

It's just there is no special "main site"; every site is treated equally, including the one created during signup. That's the short of it.

I'll reply to your other issue over email.

from goatcounter.

andreuvall avatar andreuvall commented on July 3, 2024

I have experimented a bit more with it.

What's your use case for this?

As said in my original message, the idea would be to achieve the following:

  • Dashboard for username: with statistics of SiteA and SiteB together
  • Dashboard for SiteA: with statistics of SiteA only
  • Dashboard for SiteB: with statistics of SiteB only

It is not essential, but I have been curious to try it out once more. Using count.js, it didn't work out. Now, I tried with the pixel tracking option. I added

<p>
<img src="[https://username.goatcounter.com/count?p=/?t=TitleSiteA](view-source:https://username.goatcounter.com/count?p=/?t=TitleSiteA)">
<img src="[https://SiteA.goatcounter.com/count?p=/?t=TitleSiteA](view-source:https://SiteA.goatcounter.com/count?p=/?t=TitleSiteA)">
</p>

to my index.html and this sort of works:

  • Both the dashboard for username and for SiteA see statistics from SiteA
  • The problem is that the query count?p=/?t=TitleSiteA is not interpreted as I'd want. It is interpreted as if the path were /?t=TitleSiteA. It's odd, because the same syntax gives the right title when I try the site locally, but when I push it to GitLab Pages, then the title stops working.

from goatcounter.

andreuvall avatar andreuvall commented on July 3, 2024

Thank you, it works!

from goatcounter.

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.