feat: better check for pixel
This commit is contained in:
parent
c3fa9826a1
commit
60b70ead52
|
|
@ -38,8 +38,13 @@ export class TrackService {
|
|||
const current_timestamp = Math.floor(new Date() / 1000);
|
||||
|
||||
const userData = new UserData();
|
||||
userData.setClientIpAddress(ip || user?.ip || '');
|
||||
userData.setClientUserAgent(agent || user?.agent || '');
|
||||
if (ip || user?.ip) {
|
||||
userData.setClientIpAddress(ip || user?.ip || '');
|
||||
}
|
||||
|
||||
if (agent || user?.agent) {
|
||||
userData.setClientUserAgent(agent || user?.agent || '');
|
||||
}
|
||||
if (fbclid) {
|
||||
userData.setFbc(fbclid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue