2

角度ベースのフロントエンド用のjsプラグインは、fingerprint2.jsやclientjsのようなブラウザの指紋ライブラリに基づいてユーザーの分析のためのデータを収集する標準的な方法がありますか?Angularjs - クライアントブラウザの指紋

答えて

0

私はAngularJSまたはAngular 2/4でこの質問の解決策はないと思います。

しかし、私はこれを次のように使用して管理しています。いずれかが動作します -

  • Custom working example
    1. clientjs.org
    2. 基本的に、上述した両方の方法は、10桁の番号(キー名で)格納されているかされているかどうかを確認するためのlocalStorageを読み出します。それがあったら、それを使用するか、新しいものを生成してlocalstorageに保存してください。

      return checksum([ 
          navigator.userAgent, 
          [screen.height, screen.width, screen.colorDepth].join('x'), 
          new Date().getTimezoneOffset(), 
          !!window.sessionStorage, 
          !!window.localStorage, 
          map(navigator.plugins, function (plugin) { 
           return [ 
            plugin.name, 
            plugin.description, 
            map(plugin, function (mime) { 
             return [mime.type, mime.suffixes].join('~'); 
            }).join(',') 
           ].join("::"); 
          }).join(';') 
      ].join('###'));