add basic tracking
This commit is contained in:
+22
@@ -14,6 +14,28 @@
|
|||||||
href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800;900&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800;900&display=swap"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.smartlook ||
|
||||||
|
(function (d) {
|
||||||
|
var o = (smartlook = function () {
|
||||||
|
o.api.push(arguments);
|
||||||
|
}),
|
||||||
|
h = d.getElementsByTagName("head")[0];
|
||||||
|
var c = d.createElement("script");
|
||||||
|
o.api = new Array();
|
||||||
|
c.async = true;
|
||||||
|
c.type = "text/javascript";
|
||||||
|
c.charset = "utf-8";
|
||||||
|
c.src = "https://web-sdk.smartlook.com/recorder.js";
|
||||||
|
h.appendChild(c);
|
||||||
|
})(document);
|
||||||
|
smartlook("init", "6c673840c75304c9052f4bbf292ed6a70748ea28", {
|
||||||
|
region: "eu",
|
||||||
|
cookies: false,
|
||||||
|
numbers: true,
|
||||||
|
});
|
||||||
|
smartlook("record", { numbers: true });
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -81,6 +81,10 @@ function App() {
|
|||||||
if (roster && roster.forces.length > 0) {
|
if (roster && roster.forces.length > 0) {
|
||||||
setRoster(roster);
|
setRoster(roster);
|
||||||
setError("");
|
setError("");
|
||||||
|
smartlook("track", "loadRoster", {
|
||||||
|
name: rosterName,
|
||||||
|
faction: roster.forces[0].catalog,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setError("No support for game type '" + gameType + "'.");
|
setError("No support for game type '" + gameType + "'.");
|
||||||
|
|||||||
Reference in New Issue
Block a user