Added comment to indicate API key
This commit is contained in:
parent
4a31ed229b
commit
920a54c810
1 changed files with 28 additions and 33 deletions
|
@ -55,17 +55,13 @@ document.addEventListener("click", event => {
|
|||
let hrefParts = window.location.href.split("#");
|
||||
let element = target.title || target.text.trim();
|
||||
if (element) {
|
||||
amplitude
|
||||
.getInstance()
|
||||
.logEvent("CLICK", {
|
||||
amplitude.getInstance().logEvent("CLICK", {
|
||||
target: element,
|
||||
location:
|
||||
hrefParts.length > 1 ? hrefParts[hrefParts.length - 1] : "/",
|
||||
});
|
||||
} else {
|
||||
amplitude
|
||||
.getInstance()
|
||||
.logEvent("UNMARKED_CLICK", {
|
||||
amplitude.getInstance().logEvent("UNMARKED_CLICK", {
|
||||
location:
|
||||
hrefParts.length > 1 ? hrefParts[hrefParts.length - 1] : "/",
|
||||
});
|
||||
|
@ -90,9 +86,8 @@ var init = function() {
|
|||
|
||||
function onDaemonReady() {
|
||||
lbry.status().then(info => {
|
||||
amplitude
|
||||
.getInstance()
|
||||
.init(
|
||||
amplitude.getInstance().init(
|
||||
// Amplitude API Key
|
||||
"0b130efdcbdbf86ec2f7f9eff354033e",
|
||||
info.lbry_id,
|
||||
null,
|
||||
|
|
Loading…
Reference in a new issue