Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 2ac7293

Browse files
committed
NR-250022 - maybe fix apiweb analytics
1 parent 6a635b5 commit 2ac7293

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

api_server/modules/web/templates/ide_redirect.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828
}
2929
analytics.track("codestream/ide_redirect page_viewed", {
30-
properties: {
30+
//properties: {
3131
"event_type": "page_view",
3232
"platform": "codestream",
3333
"path": "N/A (codestream)",
@@ -36,7 +36,7 @@
3636
"meta_data_2": "source: {{src}}",
3737
"meta_data_3": "new_to_codestream: {{newToCodeStream}}",
3838
"meta_data_4": "item_guid: {{itemGuid}}"
39-
}
39+
//}
4040
});
4141
}
4242
}();

api_server/modules/web/templates/partial_launcher.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,30 +469,30 @@ window.CODESTREAM.openEditor = function(ide) {
469469
//fail
470470
const source = "{{src}}" || "shared_link";
471471
window.analytics.track("codestream/ide_redirect failed", {
472-
properties: {
472+
//properties: {
473473
"event_type": "response",
474474
"platform": "codestream",
475475
"path": "N/A (codestream)",
476476
"section": "N/A (codestream)",
477477
"meta_data": `ide_detail: ${moniker}`,
478478
"meta_data_2": `selection_method: ${ideSelection}`,
479479
"meta_data_3": `source: ${source}`
480-
}
480+
//}
481481
});
482482
console.log(`CodeStream: failed in ${(new Date() - startTime)/1000}s for Moniker=${moniker} Path=${protocol} IDESelection=${ideSelection}`);
483483
}, function () {
484484
//success
485485
const source = "{{src}}" || "shared_link";
486486
window.analytics.track("codestream/ide selected", {
487-
properties: {
487+
//properties: {
488488
"event_type": "response",
489489
"platform": "codestream",
490490
"path": "N/A (codestream)",
491491
"section": "N/A (codestream)",
492492
"meta_data": `ide_detail: ${moniker}`,
493493
"meta_data_2": `selection_method: ${ideSelection}`,
494494
"meta_data_3": `source: ${source}`
495-
}
495+
//}
496496
});
497497
console.log(`CodeStream: success in ${(new Date() - startTime)/1000}s for Moniker=${moniker} Path=${protocol} IDESelection=${ideSelection}`);
498498
});

api_server/modules/web/templates/partial_launcher_detailed.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,30 +469,30 @@ window.CODESTREAM.openEditor = function(ide) {
469469
//fail
470470
const source = "{{src}}" || "shared_link";
471471
window.analytics.track("codestream/ide_redirect failed", {
472-
properties: {
472+
//properties: {
473473
"event_type": "response",
474474
"platform": "codestream",
475475
"path": "N/A (codestream)",
476476
"section": "N/A (codestream)",
477477
"meta_data": `ide_detail: ${moniker}`,
478478
"meta_data_2": `selection_method: ${ideSelection}`,
479479
"meta_data_3": `source: ${source}`
480-
}
480+
//}
481481
});
482482
console.log(`CodeStream: failed in ${(new Date() - startTime)/1000}s for Moniker=${moniker} Path=${protocol} IDESelection=${ideSelection}`);
483483
}, function () {
484484
//success
485485
const source = "{{src}}" || "shared_link";
486486
window.analytics.track("codestream/ide selected", {
487-
properties: {
487+
//properties: {
488488
"event_type": "response",
489489
"platform": "codestream",
490490
"path": "N/A (codestream)",
491491
"section": "N/A (codestream)",
492492
"meta_data": `ide_detail: ${moniker}`,
493493
"meta_data_2": `selection_method: ${ideSelection}`,
494494
"meta_data_3": `source: ${source}`
495-
}
495+
//}
496496
});
497497
console.log(`CodeStream: success in ${(new Date() - startTime)/1000}s for Moniker=${moniker} Path=${protocol} IDESelection=${ideSelection}`);
498498
});

0 commit comments

Comments
 (0)