Skip to content

Commit a9d6281

Browse files
committed
docs(logic): add analytics events
use dots rather than arrows for ancillary requests
1 parent 570c512 commit a9d6281

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

docs/development/application-logic.md

+20-5
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ In this phase, the user makes the initial selections that will configure the res
9595
```mermaid
9696
flowchart LR
9797
session[(session)]
98+
analytics[[analytics]]
99+
98100
start((Start))
99101
pick_agency["`Agency picker
100102
modal`"]
@@ -116,8 +118,9 @@ flowchart LR
116118
117119
eligibility -- 4. continue --> next
118120
119-
agency -. update -.-> session
120-
eligibility -. update -.-> session
121+
agency -. update -.-o session
122+
eligibility -. update -.-o session
123+
eligibility -. selected eligibility verifier -.-o analytics
121124
```
122125

123126
Depending upon the choice of enrollment pathway, the _Next phase_ above may be:
@@ -147,6 +150,7 @@ The CDT Identity Gateway transforms PII from Login.gov into anonymized boolean c
147150
```mermaid
148151
flowchart LR
149152
session[(session)]
153+
analytics[[analytics]]
150154
151155
start((Initial setup))
152156
style start stroke-dasharray: 5 5
@@ -166,11 +170,14 @@ flowchart LR
166170
start ~~~ session
167171
168172
benefits -- 2. OIDC authorize_redirect --> idg
173+
benefits -. started sign in -.-o analytics
174+
169175
idg <-. "3. PII exchange" .-> logingov
170176
idg -- 4. OIDC token authorization --> claims
171177
172178
claims -- 5. continue --> next
173-
claims -. update .-> session
179+
claims -. update .-o session
180+
claims -. finished sign in -.-o analytics
174181
```
175182

176183
## Eligibility verification
@@ -191,6 +198,7 @@ In this phase, Cal-ITP Benefits verifies the user's claims using one of two meth
191198
```mermaid
192199
flowchart LR
193200
session[(session)]
201+
analytics[[analytics]]
194202
195203
start(("`Previous
196204
phase`"))
@@ -208,15 +216,18 @@ flowchart LR
208216
209217
start -- Eligibility API verification --> form
210218
form -- Eligibility API call --> server
219+
form -. started eligibility -.-o analytics
211220
server --> eligible
212221
213222
start -- Claims validation --> claims
214-
session -. read .-> claims
223+
session -.-o claims
215224
claims --> eligible
225+
claims -. started eligibility -.-o analytics
216226
217227
eligible -- Yes --> next
218228
eligible -- No --> stop
219-
eligible -. update .-> session
229+
eligible -. update .-o session
230+
eligible -. returned eligibility -.-o analytics
220231
```
221232

222233
## Enrollment
@@ -241,6 +252,7 @@ autonumber
241252
actor user as User
242253
participant benefits as Benefits app
243254
participant littlepay as Littlepay
255+
participant analytics as Analytics
244256
245257
user->>benefits: starts enrollment phase
246258
activate user
@@ -259,8 +271,10 @@ benefits-->>user: access token
259271
activate user
260272
user->>user: click to initiate payment card collection
261273
user-->>user: display Littlepay overlay
274+
user-->>analytics: started payment connection
262275
user->>littlepay: provides debit or credit card details
263276
littlepay-->>user: card token
277+
user-->>analytics: closed payment connection
264278
user->>benefits: POST back card token
265279
deactivate user
266280
activate benefits
@@ -269,6 +283,7 @@ littlepay-->>benefits: access token
269283
benefits->>littlepay: GET funding source from card token
270284
littlepay-->>benefits: funding source
271285
benefits->>littlepay: enroll funding source in group
286+
benefits-->>analytics: returned enrollment
272287
deactivate benefits
273288
```
274289

0 commit comments

Comments
 (0)