Skip to content

Commit

Permalink
more info about basic values sent to telemetry deck (bare bones) and …
Browse files Browse the repository at this point in the history
…fix tablet/mobile detection
  • Loading branch information
shalanah committed Mar 25, 2024
1 parent 2880e6e commit c9ad73e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { Inter_Tight } from 'next/font/google';

const inter = Inter_Tight({
subsets: ['latin'],
// 700, 100, 800, 500, 300, 200, 400, "bold", "normal"
weight: ['100', '200', '300', '400', '500', '700', '800'],
}); // use for our google font?
});

// TODO: Move more over to metadata over putting in the head
export const metadata: Metadata = {
Expand All @@ -24,6 +23,7 @@ export const metadata: Metadata = {
'whatwg',
'w3c',
'caniuse',
'ios404',
],
};

Expand Down
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. 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. This helps to understand how our users are using the website and how we can improve it. iOS404 sends a best guess on country, device type (phone/tablet/desktop), and vendor (Apple/Google). You can read more about [TelemetryDeck’s privacy policy](https://telemetrydeck.com/privacy)',
],
['', 'Copyright 2024. All Rights Reserved - Shalanah Dawson'],
];
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useTelemetryDeck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export const useTelemetryDeck = () => {
const vendor = platform.vendor || '';
const device = platform.type || '';
const isIpad =
navigator.userAgent.includes('Mac') && 'ontouchend' in document;
td.clientUser = userId;
device !== 'mobile' && vendor === 'Apple' && 'ontouchend' in document;
td.clientUser = userId; // not associated with any other data
td.signal('LoadedHomePage', {
'country or tz': getCountry(), // trying to obscure tz by using country instead if we can
vendor,
Expand Down

0 comments on commit c9ad73e

Please sign in to comment.