Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function initializeAnalytics() {
if (!browser) return;

posthog.init('phc_jg4gOdigfHQD4MSgrSaO883dp2LjNJbJO7azv61UtI0', {
api_host: 'https://us.i.posthog.com',
api_host: 'https://hog.edutools.ingo.au',
person_profiles: 'always',
capture_exceptions: true
});
Expand All @@ -18,7 +18,7 @@ export async function checkTrackerBlocked(): Promise<boolean> {
if (!browser) return false;

try {
await fetch('https://us-assets.i.posthog.com/static/exception-autocapture.js');
await fetch('https://hog.edutools.ingo.au/static/exception-autocapture.js');
return false;
} catch {
return navigator.onLine;
Expand Down
11 changes: 9 additions & 2 deletions src/lib/components/tracker-dialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@
<Dialog.Title>Notice</Dialog.Title>
<Dialog.Description>
We use PostHog to detect/fix errors, track usage and roll out features. Please disable your
tracker/ad blocker to allow this. Don't worry, we won't show you any ads.
<br /><br />
tracker/ad blocker for this site to allow this. Don't worry, we won't show you any ads.
<br />
<br />
For more details about our data collection practices, see our
<a href="/privacy" class="text-blue-600 hover:underline" target="_blank">Privacy Policy</a>.
<br />
<br />
<details>
<summary>Techinal info</summary>
<p>We detected that hog.edutools.ingo.au is blocked by your ad/tracker blocker</p>
</details>
</Dialog.Description>
<Dialog.Footer>
<Dialog.Close onclick={() => ($trackerDialogClosed = true)}>
Expand Down