Skip to content

Commit

Permalink
fix: use tz instead of country - maybe come back and add after add te…
Browse files Browse the repository at this point in the history
…sts?
  • Loading branch information
shalanah committed Mar 30, 2024
1 parent 8112c90 commit 8deae84
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2,875 deletions.
2 changes: 1 addition & 1 deletion src/components/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const FAQ = [
],
[
'Do you track me?',
'iOS404 uses TelemetryDeck. TelemetryDeck does not collect any personally identifiable information. iOS404 sends a best guess on country and device type (phone|tablet|desktop) and on load sends which site feature and filters are active. This helps to understand how our users are using the website and how we can improve it. You can read more about [TelemetryDeck’s privacy policy](https://telemetrydeck.com/privacy)',
'iOS404 uses TelemetryDeck. TelemetryDeck does not collect any personally identifiable information. iOS404 sends a best guess on timezone and device type (phone|tablet|desktop) and on load sends which site feature and filters are active. This helps to understand how our users are using the website and how we can improve it. You can read more about [TelemetryDeck’s privacy policy](https://telemetrydeck.com/privacy)',
],
['', 'Copyright 2024. All Rights Reserved - Shalanah Dawson'],
];
Expand Down
3 changes: 1 addition & 2 deletions src/hooks/useTelemetryDeck.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useEffect } from 'react';
import TelemetryDeck from '@telemetrydeck/sdk';
import Bowser from 'bowser';
import { getCountry } from '../utils/getCountryFromTz';

const getRandomIdentifier = () => {
return (
Expand Down Expand Up @@ -52,7 +51,7 @@ export const useTelemetryDeck = () => {
const searchParams = new URLSearchParams(window.location.search);
td.clientUser = userId; // not associated with any other data
td.signal('LoadedHomePage', {
'country or tz': getCountry(), // trying to obscure tz by using country - not using ip sniffing uses tz
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
device: isIpad ? 'tablet' : device,
// Site specific data:
filteredBrowser: searchParams.get('browsers'), // what browsers are filtered?
Expand Down
Loading

0 comments on commit 8deae84

Please sign in to comment.