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
8 changes: 4 additions & 4 deletions apps/web/app/(ee)/app.dub.co/embed/referrals/quickstart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function ReferralsEmbedQuickstart({
const items = [
{
title: "Share your link",
description: `Sharing is caring! Recommend ${program.name} to all your friends, family, and social followers.`,
description: `Use your ${program.name} link to drive traffic and track every click, lead, and conversion.`,
illustration: <ShareLink />,
cta: (
<Button
Expand Down Expand Up @@ -84,9 +84,9 @@ export function ReferralsEmbedQuickstart({
),
},
{
title: "Success kit",
title: "Program resources",
description:
"Make sure you get setup for success with the official brand files and supportive content and documents.",
"Access files, assets, and materials provided to support you, anywhere you share your link.",
illustration: <SuccessKit logo={group.logo ?? DUB_LOGO} />,
cta: (
<Button
Expand All @@ -102,7 +102,7 @@ export function ReferralsEmbedQuickstart({
{
title: "Receive earnings",
description:
"After your payouts are connected, you'll get paid out automatically for all your sales.",
"Connect payouts to get rewarded for the activity you drive, with earnings tracked automatically.",
illustration: <ConnectPayouts logo={group.logo ?? DUB_LOGO} />,
cta: (
<Button
Expand Down
20 changes: 12 additions & 8 deletions apps/web/lib/tinybird/record-click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,19 @@ export async function recordClick({
}

const ua = userAgent(req);
const isBot = detectBot(req);

// don't record clicks from bots
if (isBot) {
console.log(`Click not recorded ❌ – Bot detected.`, {
ua,
isBot,
});
return null;
// only do bot checks for non deep link requests (link clicks/qr code scans)
if (trigger !== "deeplink") {
const isBot = detectBot(req);

// don't record clicks from bots
if (isBot) {
console.log(`Click not recorded ❌ – Bot detected.`, {
ua,
isBot,
});
return null;
}
}

const identityHash = await getIdentityHash(req);
Expand Down
Loading