Giter VIP home page Giter VIP logo

Comments (6)

arp242 avatar arp242 commented on June 24, 2024

You can add "utm_source", "ref", "src", or "source" as a query parameter, e.g. http://example.com?ref=term. It will then show up as a referrers under that name:

cap-2024-04-08T19:53:14_border

If you also add "campaign" or "utm_campaign" it will also show up under campaigns under that name; for example for http://example.com?campaign=search&ref=term and http://example.com?campaign=search&ref=other:

cap-2024-04-08T19:54:56_border


Getting search terms from e.g. Google is a duplicate of #395 – I did look at this, but abandoned it for reasons I can't recall at the moment.

from goatcounter.

saikadaramakaisosjupita avatar saikadaramakaisosjupita commented on June 24, 2024

@arp242 unfortunately, I use fuse.js which uses /?query=. So, I cannot control that. I don't care much for search terms, but rather how often the search form is used. Is there a way to append a custom parameter?

from goatcounter.

arp242 avatar arp242 commented on June 24, 2024

Is there a way to append a custom parameter?

You used to be able to, but I removed it as no one was using it to change the defaults, so now it's just a static list.

I don't mind adding something to that, but "query" is a very generic term so I'm a bit hesitant; I think that in most cases people probably don't want to use that as a referrer string.

Can't you change the data that's sent with JS? I think this example is probably fairly close to what you want? https://www.goatcounter.com/help/js#get-query-name-2

from goatcounter.

saikadaramakaisosjupita avatar saikadaramakaisosjupita commented on June 24, 2024

Can't you change the data that's sent with JS? I

Good point. I am not a dev, but I looked at the JS called doing the search and the dev who wrote it added the query thing there. So, it is a matter of changing query to something else. I tried const QUERY_URL_PARAM = 'campaign=search&ref'; but the = and & characters are escaped in the browser.

from goatcounter.

arp242 avatar arp242 commented on June 24, 2024

What's your website?

from goatcounter.

saikadaramakaisosjupita avatar saikadaramakaisosjupita commented on June 24, 2024

I am working on it with the dev who wrote the search code. If it fails (campaign), I will go with the referrer option.

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.