Updated readme

Andrew committed May 02, 2018
commit 5ade113d6d1183271a82b2622d22fa1cae251375
Showing 1 changed file with 28 additions and 28 deletions
README.md +28 -28
@@ @@ -60,34 +60,7 @@ For Android, check out [Ahoy Android](https://github.com/instacart/ahoy-android)
### GDPR Compliance [master]
- Ahoy provides a number of options to help with [GDPR compliance](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation).
-
- Update `config/initializers/ahoy.rb` with:
-
- ```ruby
- class Ahoy::Store < Ahoy::DatabaseStore
- def authenticate(data)
- # disables automatic linking of visits and users
- end
- end
-
- Ahoy.mask_ips = true
- Ahoy.cookies = false
- ```
-
- This:
-
- - Masks IP addresses
- - Switches from cookies to anonymity sets
- - Disables linking visits and users
-
- If you use JavaScript tracking, also set:
-
- ```javascript
- ahoy.configure({cookies: false});
- ```
-
- Set [extended GDPR section](#gdpr-compliance-master-1) for more info.
+ Ahoy provides a number of options to help with [GDPR compliance](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation). See the [GDPR section](#gdpr-compliance-master-1) for more info.
## How It Works
@@ @@ -347,6 +320,33 @@ Safely.report_exception_method = ->(e) { Rollbar.error(e) }
## GDPR Compliance [master]
+ Ahoy provides a number of options to help with [GDPR compliance](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation).
+
+ Update `config/initializers/ahoy.rb` with:
+
+ ```ruby
+ class Ahoy::Store < Ahoy::DatabaseStore
+ def authenticate(data)
+ # disables automatic linking of visits and users
+ end
+ end
+
+ Ahoy.mask_ips = true
+ Ahoy.cookies = false
+ ```
+
+ This:
+
+ - Masks IP addresses
+ - Switches from cookies to anonymity sets
+ - Disables linking visits and users
+
+ If you use JavaScript tracking, also set:
+
+ ```javascript
+ ahoy.configure({cookies: false});
+ ```
+
### IP Masking
Ahoy can mask IPs with the same approach [Google Analytics uses for IP anonymization](https://support.google.com/analytics/answer/2763052). This means: