From roadway-integrator
Ensure the customer's app sets GA4 `user_id` at signup/login so Roadway can stitch anonymous `user_pseudo_id` traffic to known users.
How this skill is triggered — by the user, by Claude, or both
Slash command
/roadway-integrator:setup-ga4-user-idThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Roadway links GA4's anonymous `user_pseudo_id` to a known user via GA4's `user_id`. Without it, anonymous sessions stay anonymous forever.
user_id for Roadway signupRoadway links GA4's anonymous user_pseudo_id to a known user via GA4's user_id. Without it, anonymous sessions stay anonymous forever.
Same targets as setup-segment-identify. Prefer the first post-signup render (client-side) — that's where gtag runs with the session established.
user_idRun in client-side JS once auth state is known:
gtag('config', 'G-XXXXXXXXXX', {
user_id: currentUser.id,
});
Or, if config already ran, use:
gtag('set', { user_id: currentUser.id });
G-XXXXXXXXXX is the customer's GA4 Measurement ID — grep the repo for G- to find the existing call.
gtag('event', 'sign_up', {
method: 'email',
user_id: currentUser.id,
});
Only fire this on the initial signup, not every login.
user_idSee ../../references/required-ids-matrix.md (user_id convention section). Same value must appear in Segment identify() (if both exist) and Stripe metadata.user_id.
If the site tags via GTM rather than raw gtag, push to the data layer on signup:
window.dataLayer.push({ event: 'login', user_id: currentUser.id });
Then in GTM, configure the GA4 configuration tag to read user_id from a Data Layer Variable.
Track progress in the ## setup-ga4-user-id section of .roadway/onboarding.md per ../../references/onboarding-state.md.
External checkpoints to mark individually as the user confirms them:
user_id from a Data Layer Variable, then saved + published (only if the GTM path was used).Code edits: one rolled-up bullet summarizing gtag('config', ..., { user_id }) / gtag('set', ...) / dataLayer.push additions. Note the signup file/function.
?gtm_debug=1 appended (or Chrome GA Debugger extension).sign_up event appears with user_id populated.user_id.user_pseudo_id stays stable across the anonymous → known transition.npx claudepluginhub roadwayai/roadway-integrator --plugin roadway-integratorProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.