Skip to content

feat(analytics): add Affiliatly conversion tracking#415

Merged
DmitriVanGuard merged 5 commits into
nextfrom
feat/affiliatly-tracking
May 15, 2026
Merged

feat(analytics): add Affiliatly conversion tracking#415
DmitriVanGuard merged 5 commits into
nextfrom
feat/affiliatly-tracking

Conversation

@serafim-san
Copy link
Copy Markdown
Contributor

@serafim-san serafim-san commented Apr 16, 2026

Description

  1. Previous integration loaded a third-party script client-side was blocked by adblockers, so I replaced integration with SvelteKit hook
  2. Added conversion tracking
  3. Added FirstPromoter bridge

@serafim-san serafim-san force-pushed the feat/affiliatly-tracking branch 4 times, most recently from 721a366 to 2dd3aa3 Compare April 17, 2026 00:09
@serafim-san serafim-san force-pushed the feat/affiliatly-tracking branch 3 times, most recently from 013d821 to bb5ac27 Compare April 21, 2026 00:01
Comment thread src/lib/utils/cookies.ts
@serafim-san serafim-san force-pushed the feat/affiliatly-tracking branch from bb5ac27 to 4a1ace3 Compare April 21, 2026 02:35
Comment thread src/lib/analytics/affiliatly/index.ts Outdated
export const trackAffiliatlySignup = () => reportConversion(crypto.randomUUID(), 0)

export const trackAffiliatlyPayment = (amount: number, options?: TConversionOptions) =>
reportConversion(crypto.randomUUID(), amount, options)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

using crypto.randomUUID() just for deduplication purposes here. if it'll be neccessary - we can provide real order ids here

@serafim-san serafim-san force-pushed the feat/affiliatly-tracking branch from 4a1ace3 to 99efcc3 Compare April 21, 2026 02:42
Comment thread src/lib/sveltekit/hooks/affiliatly.ts Outdated
@serafim-san serafim-san requested a review from vekkele April 22, 2026 00:12
@DmitriVanGuard DmitriVanGuard merged commit a51d418 into next May 15, 2026
@DmitriVanGuard DmitriVanGuard deleted the feat/affiliatly-tracking branch May 15, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants