Code Monkey home page Code Monkey logo

Comments (7)

Kugelschieber avatar Kugelschieber commented on August 30, 2024 2

I'll add an option for it.

from pirsch.

Kugelschieber avatar Kugelschieber commented on August 30, 2024 1

I have added three new options for the scripts that will be made available later today:

  • data-disable-query
  • data-disable-referrer
  • data-disable-resolution

You can simply add them to the script like this:

<script defer type="text/javascript" src="https://api.pirsch.io/pirsch.js" 
    id="pirschjs" 
    data-code="YOUR_IDENTIFICATION_CODE"
    data-disable-query></script>

from pirsch.

romainmenke avatar romainmenke commented on August 30, 2024 1

Thank you so much for this @Kugelschieber

We really appreciate that you are open to making this change and for rolling it out so quickly.

from pirsch.

Kugelschieber avatar Kugelschieber commented on August 30, 2024

The easiest method to do that would be to copy the JS snippet and remove the parameters from the URL that's sent to us here: https://github.com/pirsch-analytics/pirsch/blob/master/js/pirsch.js#L88

You would then have to host the JS file yourself. I would recommend minifying it as we do in the package.json.

Here is a replacement for line 88 that will remove all query parameters:

"&url=" + encodeURIComponent((location.href.includes('?') ? location.href.split('?')[0] : location.href).substring(0, 1800)) +

from pirsch.

romainmenke avatar romainmenke commented on August 30, 2024

Although we can make this change (we would also omit referrer) we would prefer not to host our own version.

As an agency we have projects that can last for ±10 years.
The benefit of a hosted snippet for Pirsch is that it can be updated by you in case there is an API change.

We are looking for a low maintenance and maximally compliant service to gather minimal usage statistics.

from pirsch.

Kugelschieber avatar Kugelschieber commented on August 30, 2024

What's the reason for this feature request? You could also just ignore the UTM panels on the dashboard. I would rather not inflate the script with too many configuration options.

Also, we don't make API-breaking changes. Should we ever rebuild the page view endpoint, we would publish it as /api/v2/... instead of replacing the current one.

from pirsch.

romainmenke avatar romainmenke commented on August 30, 2024

https://www.cnil.fr/en/google-analytics-and-data-transfers-how-make-your-analytics-tool-compliant-gdpr

the removal of any parameters contained in the collected URLs (e.g. UTMs, but also URL parameters allowing internal routing of the site);

This guideline is why we would like not to send any query params to any 3rd party.

from pirsch.

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.