Major Changes
-
Switch to JS Agent v4 (
@fingerprint/agent) in the GTM adapter. This is a breaking change.- Replace the
loadwrapper with the newstartwrapper, invokingFingerprint.startrather than the JS agent v3loadfunction. See the start reference page for the options supported bystart. startdoes not require a callback because it is a synchronous call, unlikeload, which was asynchronous.- Update the
getwrapper to use the options fromFingerprint.getfunction internally. See the get reference page for the options supported byget. The definition for the return value fromgetcan also be found on that page with the difference thatsealed_result, when set, is astringrather than aBinaryOutput. (b31c893)
- Replace the
-
Update GTM template to support JS agent v4. This is a breaking change.
Because the template now uses a different contract for the GTMdataLayer, existing GTM tags that use the previous template cannot be updated in place. However, the changes do allow new tags to be created with this template that will not interfere with existing GTM tags.- Update the
Tag typeparameter to use JS agent v4 terminology. - Replace the
Script Url PatternandEndpointparameters with theEndpointstable. - Remove the
Extended resultparameter. It is no longer needed for JS agent v4. - Change the default result name to
FingerprintResultfromFingerprintJSProResult. - Rename custom event
FingerprintJSPro.loadedtoFingerprint.started. - Rename custom event
FingerprintJSPro.identifiedtoFingerprint.identified. - The result set in the GTM
dataLayeruses the JS agent v4 result shape. See the v4 get function documentation for details. (78c1092)
- Update the