News for hackers. Stuff that matters.
Re:Show HN: Google Analytics alternative with the most gener... by flurly on Wednesday April 12, 2023 @09:40AM (#35539481)
Hi HN,

As an indie hacker, the new Google Analytics (GA4) coming motivated me to look for a straightforward alternative that would also be affordable. I had a few basic product requirements and didn’t want to spend too much to replace a free product. There are a lot of great Google Analytics alternatives out there, but the pricing didn’t seem right. As someone who likes to just build things, many of which aren’t businesses yet, it didn’t make sense to pay for options like Plausible and Fathom out of the gate.

So I joined with a friend to build Beam Analytics. Beam gives you all the standard web analytics. It also comes with easy to create funnels so you can see how users move through your site. And we have a great proxy for cohort retention that doesn’t need you to log any data with us. It’s cookie-less and GDPR compliant.

The free tier is 100k page views per month so hopefully you’ll give it a try. There’s also a Wordpress integration to make integrating with WordPress sites as easy as a single click - https://wordpress.org/plugins/beam-analytics/.

Appreciate your feedback. You can also email us at hi (at) beamanalytics.io or DM me on twitter @TheBuilderJR.

Re:Show HN: Google Analytics alternative with the most gener... by openplatypus on Wednesday April 12, 2023 @01:02PM (#35542919)
How do you justify GDPR compliance?

GDPR compliance is not to be confused with privacy.

You don't have Data Protection Officer (even if you have one, you ought to publish their details). Neither does Plausible.

Your privacy policy lacks details, e.g.: where you process data and what is data retention.

You are incorporated in not an Adequate Country, meaning you face challenges becoming GDPR-compliant without additional measures that span beyond SCCs. Similarly to Fathom (BC is not under PIPEDA, hence is not adequate).

Privacy-friendly? Probably. GDPR-compliant? No.

Re:Show HN: Google Analytics alternative with the most gener... by shll on Wednesday April 12, 2023 @03:02PM (#35544987)
Hi - this is the other co-founder of Beam. Thank you for your comments and questions.

1. We are incorporated in the UK. I could be wrong but I think the European Commission did indicate that the UK was an Adequate Country?

https://commission.europa.eu/law/law-topic/data-protection/i...

2. For the details that our privacy policy lacks, I think they can be found in our Data Policy. Any further issues, please let us know.

https://beamanalytics.io/data

3. On the Data Protection Officer, I think one is only needed if sensitive data on a large scale is processed.

https://commission.europa.eu/law/law-topic/data-protection/r...

The definition of sensitive data can be found on this EU site and Beam does not process any of this type of data.

https://commission.europa.eu/law/law-topic/data-protection/r...

Re:Show HN: Google Analytics alternative with the most gener... by openplatypus on Wednesday April 12, 2023 @04:13PM (#35546091)
1. My apologies. I as looking at the link from WordPress. Right. As UK entity you are good.

2. Your subprocessor uses AWS. No way to stay compliant if you transmit visitor IP to US cloud (even if they use European servers).

3. Sadly, wrong. You should immediately consult privacy professional. DPO is necessary. There are 3 tests.

https://ico.org.uk/for-organisations/does-my-organisation-ne...

Answer to question 2 is yes btw.

You are not compliant without DPO and because you are using AWS, even if indirectly.

Re:Show HN: Google Analytics alternative with the most gener... by neom on Thursday April 13, 2023 @06:15PM (#35562865)
Are you saying there is no way to use AWS and be GDPR compliant? Or the way that OP is using AWS isn't GDPR compliant?
Re:Show HN: Google Analytics alternative with the most gener... by Vespasian on Thursday April 13, 2023 @07:19PM (#35563487)
IANAL but as I understand it there is, currently, no way to legally use a service for personal data handling that falls under the US CLOUD act.

In theory Amazon could license their brand and software to an independent (!) European company to offer a EU-AWS.

Basically if an American judge/agency can order Amazon to hand over European private data and they have the ability to comply without involving a European court the service is not GDPR compliment.

Now in practice this isn't how things are done but to the best of my knowledge the law hasn't changed (yet) and national dpas are starting to tighten the screws (slowly).

If I recall correctly there are EU-US talks to create Privacy Shield #3.

Re:Show HN: Google Analytics alternative with the most gener... by openplatypus on Friday April 14, 2023 @03:09AM (#35566433)
There is a way to use AWS assuming you can assure no Personal Data is processed in plain text on AWS.

There was a case of Doctolib in the EU. French authority investigated Doctlib for using AWS.

They got off the hook because data was encrypted in the EU, outside of AWS and the encryption keys were inaccessible to AWS.

Similarly Sendinblue uses GCP and AWS as dumb storage of externally encrypted backups.

There are valid use cases. But these are very limited.

Re:Show HN: Google Analytics alternative with the most gener... by ochrist on Friday April 14, 2023 @03:42AM (#35566631)
Aula - a system used for communication between parents and schools in Denmark - is using AWS. They use encryption and ensures that only European datacenters are used. Source (in Danish): https://aulainfo.dk/guide-til-projektledere/sikkerhed-i-aula...
Re:Show HN: Google Analytics alternative with the most gener... by shll on Thursday April 13, 2023 @06:52PM (#35563254)
Thank you for your follow up.

1. Glad we're in agreement!

2. We agree it is not GDPR compliant to transmit IP address data to the US. This is why we salt and hash all PII data so no IP address data is sent to the US. Please see our data policy.

https://beamanalytics.io/data

3. Thank you for your suggestion. We have already consulted privacy professionals and have been assured no DPO is required.

Thank you for this conversation about GDPR. We appreciate your interest in Beam's work.

Re:Show HN: Google Analytics alternative with the most gener... by tyingq on Thursday April 13, 2023 @08:31PM (#35564083)
>salt and hash all PII data

Can you share more detail on this? On this page[1], I see this:

  hash(pepper(salt(ip address + user agent data))) = anonymized hashed data
Both the ipv4 space and typical user agent possibilities are pretty small, so it feels like you could easily de-anonymize it when you want to. That is, assuming the "salt" and "pepper" are stored somewhere. I assume you do store them, otherwise it's not helpful to identify repeat visits.

[1] https://beamanalytics.io/data

Re:Show HN: Google Analytics alternative with the most gener... by ceejayoz on Thursday April 13, 2023 @05:28PM (#35562302)
Re-read that link at #3. Here's the key bit.

"its core activities involve processing of sensitive data on a large scale ---> OR <--- involve large scale, regular and systematic monitoring of individuals"

Any analytics provider is fundamentally doing "large scale, regular and systematic monitoring of individuals".

Re:Show HN: Google Analytics alternative with the most gener... by shll on Thursday April 13, 2023 @08:10PM (#35563904)
Yes, you are right that there is another part of the definition about large scale, regular and "systematic monitoring" of individuals. Apologies for not including that in the answer above.

Quoting from WP 243 Annex provided by the EU:

"The notion of regular and systematic monitoring of data subjects is not defined in the GDPR, but clearly includes all forms of tracking and profiling on the internet, including for the purposes of behavioural advertising. However, the notion of monitoring is not restricted to the online environment."

The link is here

https://ec.europa.eu/information_society/newsroom/image/docu...

We anonymize and aggregate all data so can't track or profile any users, or do such monitoring offline.

Re:Show HN: Google Analytics alternative with the most gener... by yreg on Friday April 14, 2023 @05:05AM (#35567192)
Off topic: This comment reads so much like a message in ChatGPT conversation :D
Re:Show HN: Google Analytics alternative with the most gener... by codazoda on Thursday April 13, 2023 @08:10PM (#35563908)
I was hoping to find something like this mentioned in here. I’ve worked on a tracking tool that I don’t think does tracking of “individuals”. Instead I’m collecting stats about the site and impressions on its pages. It’s actually very, very simple. I am not tracking visitors and I don’t log IP addresses. It doesn’t set any cookies or anything else in the browser.

I built this to track my own sites but I am curious if anyone else cares. I created a landing page to see if there’s any interest.

https://protectivemetrics.com

The product is working on a few sites of my own and is hosted on a raspberry pi in my home office. I’d need to do some work to make it available for others, but I don’t want to invest more into it unless there’s any interest.

Re:Show HN: Google Analytics alternative with the most gener... by Whiteshadow12 on Thursday April 13, 2023 @09:59PM (#35564631)
Heads up your site has a grey background and white text when using system dark mode on Firefox mobile.
Re:Show HN: Google Analytics alternative with the most gener... by geocar on Friday April 14, 2023 @03:30AM (#35566558)
> I think the European Commission did indicate that the UK was an Adequate Country?

Every so often I see something like this:

https://www.mayerbrown.com/en/perspectives-events/publicatio...

I suspect the UK is planning a number of changes that may change this, so even though I'm British, for the avoidance of doubt I prefer companies actually hosted in the EU and that will agree to conduct business in Europe (and thus under EU courts, rather than GB ones).

> 3. On the Data Protection Officer, I think one is only needed if sensitive data on a large scale is processed.

You are totally incorrect about that.

https://ico.org.uk/for-organisations/guide-to-data-protectio...

Re:Show HN: Google Analytics alternative with the most gener... by mattw2121 on Thursday April 13, 2023 @06:02PM (#35562714)
This is exactly why I ignore the GDPR.
Re:Show HN: Google Analytics alternative with the most gener... by JackWritesCode on Thursday April 13, 2023 @11:02PM (#35565050)
I was linked to this post by a friend regarding the comments you made about Fathom's GDPR compliance.

1. The GDPR is regulation from the European Union

2. PIPEDA has an Exemption order for BC (British Columbia, Canada) and applies "in respect of the collection, use and disclosure of personal information that occurs within the Province of British Columbia".

Firstly, the Exemption order states "Whereas the Governor in Council is satisfied that the Personal Information Protection Act, S.B.C. 2003, c. 63, of the Province of British Columbia, which is substantially similar to Part 1 of the Personal Information Protection and Electronic Documents Act, applies to the organizations described in the annexed Order;"

Secondly, which part of BC's Personal Information Protection Act would undermine it's adequacy ruling under the GDPR?

Finally, let's get into Fathom's pageview/event collection script and explain how it works:

1. There is no collection, use and disclosure of personal information that occurs within the Province of British Columbia

2. EU traffic is automatically routed via EU Isolation and processed on German-owned servers. This allows us to stop US government snooping on EU traffic

3. Fathom Analytics is incorporated in BC. But nobody in BC has access to our EU Isolation infrastructure. I'm the CTO of Fathom Analytics and I have access to our EU Isolation infrastructure. I'm not in BC. Additional access to EU Isolation is from Germany only. Heck, not even GitHub Actions has access to EU Isolation, we self-host GitLab to keep things completely isolated. We put a lot of time and effort into this.

I'll wait back to hear back from you on which parts of the BC's PIPA undermine the adequacy ruling. Our lawyer here in Canada is incredibly well versed in Canadian privacy law, so we can definitely loop her in if there's any confusion here.

I hope that addresses your point and helps inform other people who may be reading this.

Re:Show HN: Google Analytics alternative with the most gener... by openplatypus on Friday April 14, 2023 @03:06AM (#35566420)
https://iapp.org/news/a/schrems-ii-impact-on-data-flows-with...

> To date, Alberta, British Columbia, and Quebec have privacy legislation that takes commercial activities in those provinces out of the federal jurisdiction through the "substantial similarity" exemption to PIPEDA. Federal privacy law defers to provincial law if a province meets the substantial similarity test, providing a baseline of privacy regulation across Canada. This division of authority is important, because for provinces recognized as substantially similar, their laws have not been given the stamp of "adequacy."

I might have framed my statement too strongly. Fathom can be GDPR compliant assuming additional contractual clauses are in place. That is what is mentioned in the linked IAPP assessment.

> 3. Fathom Analytics is incorporated in BC. But nobody in BC has access to our EU Isolation infrastructure. I'm the CTO of Fathom Analytics and I have access to our EU Isolation infrastructure. I'm not in BC. Additional access to EU Isolation is from Germany only. Heck, not even GitHub Actions has access to EU Isolation, we self-host GitLab to keep things completely isolated. We put a lot of time and effort into this.

The same could be said about Amazon, Google, and Azure employees and their data centre employees in Europe. What matters is effective control. You are not in BC but the company, and your position and responsibilities are governed by the laws of the province of British Columbia.

Although, in the case of Canada, SCCs will be actually effective as there are no surveillance laws similar to the US.

Re:Show HN: Google Analytics alternative with the most gener... by JackWritesCode on Friday April 14, 2023 @09:46AM (#35569523)
1. I understand the piece about "stamp" of adequacy. But when the Schrems II ruling happened, the world learned that we cannot always rely on "stamps" and need to look into the laws. At this moment in time, the European Commission says that Canada has adequacy ruling as a whole and there is no note about it not apply to British Columbia.

So my question to you is: Which part of the Personal Information Protection Act in BC would undermine the EU's adequacy decision towards BC? The reason I'm pushing on this question is because the "stamp" occurs for a reason. Please let me know where the PIPA would lead to the European Commission labelling BC as inadequate.

2. We're mixing things up here with Amazon, Google and Azure. Those companies are subject to FISA 702[1] and EO12333[2]. We are not subject to these surveillance laws here in Canada. I've spoken at length about this before, about how the US government could compel one of these companies to secretly spy on people using their EU infrastructure. So our company is not in the same position.

I'll wait for your specifics around the PIPA.

[1] https://en.wikipedia.org/wiki/Foreign_Intelligence_Surveilla... [2] https://en.wikipedia.org/wiki/Executive_Order_12333

Re:Show HN: Google Analytics alternative with the most gener... by openplatypus on Friday April 14, 2023 @02:24PM (#35572955)
Disclaimer: I am not a Privacy Lawyer, I am basing what I wrote here on the text of IAPP. I was looking for a reviewed PIPEDA adequacy decision. I saw references about it coming in 2020, then 2021, then 2022. Can't really find anything specific.

RE: 1

I am looking at this document: https://www.bclaws.gov.bc.ca/civix/document/id/complete/stat...

I assume this is up-to-date.

I will take one example: the Right to be forgotten. I don't see provision that satisfies the right to be forgotten: https://gdpr.eu/right-to-be-forgotten/

You seem to have a more in-depth understanding of PIPA. Can you point me towards a similar requirement in PIPA?

RE 2:

Right, I was referring to the fact that customers of Fathom sign contract/get into agreement with a company in British Columbia under its laws. It is mostly irrelevant where their CTO resides (it would be relevant if you resided in a non-adequate country, as your privacy policy would have to account for relevant data transfers).

Re:Show HN: Google Analytics alternative with the most gener... by JackWritesCode on Friday April 14, 2023 @04:04PM (#35573988)
Fathom's script forgets everybody by default, it's literally built into the tech. No EU personal data is touching Canada.

The background of Schrems II was that the US government can compel US companies to track foreign nationals and it would be lawful under US law. This is where the argument of "company in X under Y laws" comes into play. For example, Amazon is a US company. An EU subsidiary is still subject to it's parents control. If that parent is a US company, it's subject to US surveillance laws. Hello Schrems II.

So I'm not fully following why we're having a discussion around processing happening in Canada when personal data (IP Address) hits our EU Isolation infrastructure.

If you have any sources you can cite where the European Commission states BC as an exemption to Canada's adequacy ruling, please throw it back to me. I've not seen that.

Re:Show HN: Google Analytics alternative with the most gener... by Nextgrid on Wednesday April 12, 2023 @02:15PM (#35544226)
> GDPR compliant.

The simple fact of sending PII such as IP addresses to a third-party for something that can trivially be done via analyzing existing server logs (without introducing a third-party) already puts this on shaky grounds from a GDPR point of view regardless of everything else.

Re:Show HN: Google Analytics alternative with the most gener... by zkid18 on Thursday April 13, 2023 @06:32PM (#35563044)
People sometimes mix the terms and occasionally confuse the terminology, as they often associate GDPR with the concept of "not needing a consent banner." So, yes, you don't need to ask for consent to collect IP addresses to use in analytical purposes or logging. Consent (Article 6 (1)a [0]) is indeed one of the conditions that can be used to comply with the GDPR requirement that processing must be lawful. Still, there are other conditions available to the controller to ensure lawful processing. There are alternatives (before the list of conditions, it says that "at least one of the following" must be satisfied). Logging IP addresses for security is an extremely widespread practice. It is a legitimate interest to comply with standard security practices.

The GDPR mandates that the entire data processing cycle maintain a high standard of data protection. This implies that personal data transfers to non-European nations are allowed only if they ensure an adequate level of data protection. Otherwise, contractual agreements (SCCs) between data exporters and importers may translate GDPR's provisions into an enforceable agreement with the foreign importer, ensuring their processing aligns with GDPR.

The US had an adequacy decision termed "Privacy Shield," which was revoked due to concerns surrounding the rule of law vis-a-vis US mass surveillance laws. Due to similar reasons, contracts with US-based data importers may also be invalid. Additionally, using EU-based services from US-controlled companies is increasingly becoming worrisome.

Beam's approach relies on a weaker variant, which leverages a hash function to derive a pseudo-random ID from user-identifying information, such as the IP address. Although Beam's technique circumvents the need for a large lookup table, an unscrupulous server operator could log the daily key and use it to recover the original data from hashed IDs.

The flaw in this approach is that it still hinges on identifying data. While it serves as a good compliance and security measure, it doesn't alter anything significant from GDPR's standpoint. The same applies to competitive solutions like Plausible or Fathom.

Disclaimer: Consult with your legal; I am just a product guy. Explored the field to do a similar product a while ago.

[0] https://gdpr-info.eu/art-6-gdpr/

Re:Show HN: Google Analytics alternative with the most gener... by openplatypus on Friday April 14, 2023 @05:12AM (#35567228)
> an unscrupulous server operator could log the daily key and use it to recover the original data from hashed IDs.

> The flaw in this approach is that it still hinges on identifying data. While it serves as a good compliance and security measure, it doesn't alter anything significant from GDPR's standpoint. The same applies to competitive solutions like Plausible or Fathom.

This is where the technical compliance meets legal compliance. There is always a risk of breach and malicious actors circumventing even the most advanced technical solutions.

It is not full proof, but having SIGNED Data Processing Agreement can go a long way in case of such a violation. It won't help with technical lapses, but can save your business, by pointing at the legal obligation of your data processor for them to take some heat.

Having a partner from a country with a compatible legal system helps a lot in the execution of such an agreement. We no longer deal with non-EU/EEA entities and avoid anyone who uses US-cloud for data processing. The risk is just not worth it. Not to mention, this simplifies Transfer Impact Assessment.