1
0
mirror of https://github.com/niespodd/browser-fingerprinting.git synced 2021-11-01 22:44:07 +03:00

Add tester (w/ added mixpanel tracking)

This commit is contained in:
niespodd
2021-06-10 21:56:25 +02:00
parent 7b175536e6
commit 97c8825f13
11 changed files with 101 additions and 81 deletions

View File

@@ -11,6 +11,11 @@ and a few other custom built (incl. social media platforms). [Having troubles by
---
Check out [the new tester application](https://niespodd.github.io/browser-fingerprinting/):
![./tester_preview.png](./tester_preview.png)
---
A ⭐ on this repo will be **appreciated**!
# Technicalities

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -11,8 +11,8 @@
break-inside: avoid;
}
</style>
<script type="module" crossorigin src="assets/index.250ee517.js"></script>
<link rel="modulepreload" href="assets/vendor.4ca41b87.js">
<script type="module" crossorigin src="assets/index.f5baa570.js"></script>
<link rel="modulepreload" href="assets/vendor.dfdf208d.js">
<link rel="stylesheet" href="assets/index.f44316bf.css">
</head>
<body>

View File

@@ -14,6 +14,7 @@
"copy-to-clipboard": "^3.3.1",
"framer-motion": "4",
"immutability-helper": "^3.1.1",
"mixpanel-browser": "^2.41.0",
"react": "^17.0.0",
"react-chartjs-2": "^3.0.3",
"react-dom": "^17.0.0",

View File

@@ -1,7 +1,13 @@
import React from 'react'
import ReactDOM from 'react-dom'
import './index.scss'
import App from './App'
import App from './App';
import mixpanel from 'mixpanel-browser';
try {
mixpanel.init('fb1ff2b9066b748d068dc7baeec933da');
mixpanel.track('enter');
} catch (err) {}
ReactDOM.render(
<React.StrictMode>

View File

@@ -3,6 +3,8 @@ import {useDispatch, useSelector} from "react-redux";
import {Box, Heading, Text, Spinner, Alert, AlertIcon} from "@chakra-ui/react";
import {statusSet} from "../state/actions";
import mixpanel from 'mixpanel-browser';
const TesterStatus = {
LOADING: 1,
ERROR: 2,
@@ -25,6 +27,7 @@ export default (cls, config) => () => {
}, 500);
} catch (e) {
setStatus(TesterStatus.ERROR);
mixpanel.track('failed:' + key);
}
} else {
setStatus(TesterStatus.LOADED);

View File

@@ -1419,6 +1419,11 @@ minimist@^1.2.5:
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
mixpanel-browser@^2.41.0:
version "2.41.0"
resolved "https://registry.yarnpkg.com/mixpanel-browser/-/mixpanel-browser-2.41.0.tgz#d49753b4e4a7e6ddd18c126be4a917fff4ce3039"
integrity sha512-IEuc9cH44hba9a3KEyulXINLn+gpFqluBDo7xiTk1h3j111dmmsctaE6tUzZYxgGLVqeNhTpsccdliOeX24Wlw==
ms@2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"

BIN
tester_preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB