Skip to content

Commit

Permalink
docs: Remove Vercel Analytics [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed May 27, 2023
1 parent b868275 commit cae135d
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 45 deletions.
9 changes: 0 additions & 9 deletions docs/components/Analytics.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import {Analytics as VercelAnalytics} from '@vercel/analytics/react';
import Script from 'next/script';

// Currently there are multiple providers being
// evaluated, ultimately only one should remain.
// See: https://github.com/umami-software/umami/issues/2051

export default function Analytics() {
return (
<>
{/* Vercel */}
<VercelAnalytics />

{/* Umami */}
{process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID && (
<Script
async
Expand Down
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@heroicons/react": "^2.0.17",
"@next/font": "^13.1.6",
"@tailwindcss/typography": "^0.5.9",
"@vercel/analytics": "^1.0.0",
"clsx": "^1.2.1",
"http-status-codes": "^2.2.0",
"next": "^13.4.0",
Expand Down
5 changes: 0 additions & 5 deletions docs/services/BrowserTracker.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import * as vercel from '@vercel/analytics';

// Note: Vercel Analytics only supports 2 properties per event
type Event = {
name: 'partner-referral';
data: {href: string; name: string};
Expand All @@ -19,8 +16,6 @@ export default class BrowserTracker {
}
}

promises.push(vercel.track(name, data));

return Promise.all(promises);
}
}
Loading

3 comments on commit cae135d

@vercel
Copy link

@vercel vercel bot commented on cae135d May 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

example-next-13-next-auth – ./examples/example-next-13-next-auth

example-next-13-next-auth.vercel.app
example-next-13-next-auth-next-intl.vercel.app
example-next-13-next-auth-git-main-next-intl.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cae135d May 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-intl-docs – ./docs

next-intl-docs.vercel.app
next-intl-docs-git-main-next-intl.vercel.app
next-intl-docs-next-intl.vercel.app

@vercel
Copy link

@vercel vercel bot commented on cae135d May 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-intl-example-next-13 – ./examples/example-next-13

next-intl-example-next-13.vercel.app
next-intl-example-next-13-git-main-next-intl.vercel.app
next-intl-example-next-13-next-intl.vercel.app

Please sign in to comment.