GithubHelp home page GithubHelp logo

Comments (6)

electerious avatar electerious commented on June 10, 2024

We would need some kind of extension that would allow users to write custom rules as I don't think we can find defaults that work for everyone. It might be better to block those URLs instead of just hiding them.

My first idea: An env variable that lets you specify Regex patterns to block. Ackee will check those before writing them to the database. This however won't allow you to just remove parts of a URL.

(Alternatively, Ackee could remove the query string from the URL, and that would solve 90% of the above problem, but eg. search terms or marketing campaigns would not be trackable.)

Ackee already applies small adjustments to URLs before writing them to the database. I can't do too much by default as queries are relevant for some users. It's also possible to build the routing of a webapp via queries for example.

Any other ideas? What do you think about Regex patterns?

from ackee.

emschwartz avatar emschwartz commented on June 10, 2024

I also have a use case where I don't want to track the full URLs. I opted to modify the URL before it's sent to the server by ackeeTracker:

const url = new URL(window.location.href)
url.hash = ''
tracker.record({
    siteLocation: url.toString()
})

@gcampax would something like that work for your use case?

from ackee.

gcampax avatar gcampax commented on June 10, 2024

Yeah I think the problem is that, as @electerious notes, queries are sometimes relevant and sometimes not. Often, the URL path itself can be sensitive, if it contains say the ID or hash of a document (think Google Doc like link). So none of these solutions would be complete.
I think removing all URLs that have not been seen >= K times (for a configurable K) is a much better approach, and it has the advantage of being an easy-to-defend standard in protecting privacy.

from ackee.

electerious avatar electerious commented on June 10, 2024

I don't think that there's a good way to build an option that works for all users. I would suggest to modify the URL before tracking the visit with ackee-tracker. It would be great if someone could add a page to the docs/ that shows how to do so (with examples).

Here's an example: #113 (comment)

Would be helpful for #114, #113 and this issue.

from ackee.

gcampax avatar gcampax commented on June 10, 2024

Ok, I think it's clear you're not interested in adding this feature. That is fine, and I think the workarounds you suggested are acceptable. Thank you for the all the help, and for this project in this first place. I'm going to close this issue.

from ackee.

electerious avatar electerious commented on June 10, 2024

I've created a new issue. Would be cool if someone could write a documentation for this workaround: #163

from ackee.

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.