Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e264c18
[Amplitude] - Attribution Autocapture
joe-ayoub-segment Sep 25, 2025
615f231
saving progress
joe-ayoub-segment Sep 26, 2025
b128c6f
splitting to separate actions
joe-ayoub-segment Nov 3, 2025
d8ff9a5
Unit tests added
joe-ayoub-segment Nov 3, 2025
9fa1849
Merge branch 'main' into amplitude-plugin-enhancements
joe-ayoub-segment Nov 3, 2025
e5fd882
updating tests
joe-ayoub-segment Nov 3, 2025
81bc611
moving stuff to shared
joe-ayoub-segment Nov 3, 2025
fe3b2a2
saving progress
joe-ayoub-segment Nov 12, 2025
fc7c026
unit tests for front end code
joe-ayoub-segment Nov 12, 2025
4c213c7
more progresss
joe-ayoub-segment Nov 12, 2025
45f7a71
server side code for logEventV2
joe-ayoub-segment Nov 12, 2025
bfed026
minor tweak
joe-ayoub-segment Nov 12, 2025
f7d4aac
progress
joe-ayoub-segment Nov 12, 2025
981531f
starting server side unit tests
joe-ayoub-segment Nov 12, 2025
20b6089
more progress
joe-ayoub-segment Nov 13, 2025
2d8b387
unit test working
joe-ayoub-segment Nov 13, 2025
9d0e708
refactor
joe-ayoub-segment Nov 14, 2025
8b3fade
refactor
joe-ayoub-segment Nov 14, 2025
d7ad4b1
refactor
joe-ayoub-segment Nov 14, 2025
6be8bc8
moving some files around
joe-ayoub-segment Nov 14, 2025
831baba
more refactoring
joe-ayoub-segment Nov 14, 2025
0a64fd3
fixing integrations path
joe-ayoub-segment Nov 14, 2025
2c00860
referrer unit test
joe-ayoub-segment Nov 14, 2025
c511b31
more front end unit tests
joe-ayoub-segment Nov 14, 2025
21971eb
making updates after meeting with Amplitude
joe-ayoub-segment Nov 26, 2025
ff339fe
working unit tests
joe-ayoub-segment Nov 26, 2025
7b53bef
tests passing
joe-ayoub-segment Nov 26, 2025
3762e4c
refactor
joe-ayoub-segment Nov 26, 2025
a3f5dc9
logpurchase action converted
joe-ayoub-segment Nov 28, 2025
1622d9a
converting logevent action
joe-ayoub-segment Nov 28, 2025
671f5ab
what am I doing?
joe-ayoub-segment Nov 28, 2025
09a502f
refactoring ...
joe-ayoub-segment Dec 1, 2025
420acd7
refactoring
joe-ayoub-segment Dec 1, 2025
3ee421a
types
joe-ayoub-segment Dec 1, 2025
b275d64
refactoring
joe-ayoub-segment Dec 1, 2025
9286928
refactoring
joe-ayoub-segment Dec 1, 2025
e1f1fd5
refactor - tests passing
joe-ayoub-segment Dec 1, 2025
a4b5cd3
fix spelling
joe-ayoub-segment Dec 1, 2025
ce18fd3
missing field
joe-ayoub-segment Dec 1, 2025
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
23 changes: 23 additions & 0 deletions packages/actions-shared/src/amplitude/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export const AMPLITUDE_ATTRIBUTION_KEYS = [
'referrer',
'referring_domain',
'utm_source',
'utm_medium',
'utm_campaign',
'utm_term',
'utm_content',
'utm_id',
'dclid',
'fbclid',
'gbraid',
'wbraid',
'gclid',
'ko_clickid',
'li_fat_id',
'msclkid',
'rtd_cid',
'ttclid',
'twclid'
] as const

export const AMPLITUDE_ATTRIBUTION_STORAGE_KEY = 'amplitude-attribution-params'
11 changes: 11 additions & 0 deletions packages/actions-shared/src/amplitude/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { AMPLITUDE_ATTRIBUTION_KEYS } from './constants'

export type AmplitudeAttributionKey = typeof AMPLITUDE_ATTRIBUTION_KEYS[number]

export type AmplitudeSetOnceAttributionKey = `initial_${AmplitudeAttributionKey}`

export type AmplitudeAttributionValues = Record<AmplitudeAttributionKey, string | null>

export type AmplitudeAttributionUnsetValues = Record<AmplitudeAttributionKey, '-'>

export type AmplitudeSetOnceAttributionValues = Record<AmplitudeSetOnceAttributionKey, string | 'EMPTY'>
2 changes: 2 additions & 0 deletions packages/actions-shared/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ export * from './friendbuy/sharedPurchase'
export * from './friendbuy/sharedSignUp'
export * from './friendbuy/util'
export * from './engage/utils'
export * from './amplitude/types'
export * from './amplitude/constants'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const DESTINATION_INTEGRATION_NAME = 'Actions Amplitude'
Loading
Loading