Skip to content

Commit 0b6acb0

Browse files
Jiaming Youmeta-codesync[bot]
authored andcommitted
Disabled getNormalizedAndHashedPII for GTM
Summary: Disabled getNormalizedAndHashedPII for GTM Differential Revision: D84200757 fbshipit-source-id: db76cdb89abcab9ff1a0bf4d9ac9619011038ed4
1 parent 8168b4d commit 0b6acb0

3 files changed

Lines changed: 2 additions & 23 deletions

File tree

nodejs/capi-param-builder/index.d.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@ export declare class ParamBuilder {
103103
*/
104104
getNormalizedAndHashedPII(piiValue: string, dataType: string): string | null;
105105

106-
/**
107-
* Normalize PII data without hashing
108-
* @param piiValue The PII value to normalize
109-
* @param dataType The type of PII data (e.g., 'email', 'phone', 'first_name')
110-
* @returns The normalized PII value, or null if invalid
111-
*/
112-
getNormalizedPII(piiValue: string, dataType: string): string | null;
113-
114106
// Internal used privat methods
115107
private _buildParamConfigs(existing_payload: string, query: string, prefix: string, value: string): string;
116108
private _getAppendixInfo(is_new: boolean): string;

nodejs/capi-param-builder/src/ParamBuilder.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const CookieSettings = require('./model/CookieSettings');
1010
const Constants = require('./model/Constants');
1111
const net = require('net');
1212
const { version } = require('../package.json');
13-
const { getNormalizedAndHashedPII, getNormalizedPII } = require('./piiUtil/PIIUtil');
13+
const { getNormalizedAndHashedPII } = require('./piiUtil/PIIUtil');
1414

1515
class ParamBuilder {
1616
constructor(input_params) {
@@ -223,10 +223,6 @@ class ParamBuilder {
223223
return normalizedAndHashedPII === null ? null : normalizedAndHashedPII + '.' + this.appendix_new;
224224
}
225225

226-
getNormalizedPII(piiValue, dataType) {
227-
return getNormalizedPII(piiValue, dataType);
228-
}
229-
230226
_getRefererQuery(referer_url) {
231227
if (!referer_url) {
232228
return null;

nodejs/example/server.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,11 @@ const server = createServer((req, res) => {
5656
// Get fbp
5757
const fbp = builder.getFbp();
5858

59-
// Get fbi
60-
const fbi = builder.getClientIpAddress();
61-
62-
// Get getNormalizedPII
63-
const normalizedPII = builder.getNormalizedPII(' John_Smith@gmail.com ', ' eMail ');
64-
65-
// Get getNormalizedPII
66-
const normalizedAndHashedPII = builder.getNormalizedAndHashedPII(' John_Smith@gmail.com ', 'email');
67-
6859
// Bypass fbc and fbp to CAPI event APIs.
6960

7061
// End demo
7162

72-
res.end("getFbc: " + fbc + "\n" + "getFbp: " + fbp + "\n" + "getClientIpAddress: " + fbi + "\n" + "getNormalizedPII: " + normalizedPII + "\n" + "getNormalizedAndHashedPII: " + normalizedAndHashedPII);
63+
res.end("getFbc: " + fbc + "\n" + "getFbp: " + fbp + "\n");
7364
});
7465

7566
function parseCookie(cookieString) {

0 commit comments

Comments
 (0)