Add language_requested field to fpti (DTCRCJPTR-5015) #1249
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Ticket - DTCRCJPTR-5015 - Extend instrumentation to include
language_requestedlanguage_requestedfield to FPTI logging to track the requested language parameter in analyticsChanges
component.jsto extract the language prop in the onReady handlerlanguage_requestedfield to the component tracking data passed to loggerlogger.jsto includelanguage_requestedin the log payload with a fallback value of 'undefined' when not presentPR for UCG: https://github.paypal.com/Credit-R/upstream-common-go/pull/127
PR for CULS: Credit-R/creditupstreamlogserv/pull/230
Screenshots
Testing instructions
Test Environment: te-lang-req-fpti-culs-anushah
CDN Bundle for
paypal-messaging-components: lang_fpti_anushah3Test Scenarios:
Scenario 1: Valid
language_requestedParameterSteps:
standalone.htmlwithlanguageset to "fr-CA" (refer attached code snippet)Paypal-Debug-Idfrom the pageLighthouse(search fordebug_cal_correlation_id)Expected Result:
FPTI data in Lighthouse should show
language_requested: "fr-CA"Debug ID example:
d3e030ea9b570Scenario 2: Missing
language_requestedParameterSteps:
standalone.htmlwithlanguageomitted (refer attached code snippet)Paypal-Debug-Idfrom the pageLighthouse(search fordebug_cal_correlation_id)Expected Result:
FPTI data in Lighthouse should show
language_requested: undefinedDebug ID example:
ff955bde8b499standalone.htmlcode snippet for configuring CULS TE, CDNX Bundle forpaypal-messaging-components, and setting thelanguageprop.