docs: segment track event naming adjustment

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3014
GitOrigin-RevId: 0428f962c038f3d03ef45413dca807041dcef50c
This commit is contained in:
Sai Krishna Prasad Kandula 2021-12-01 01:06:56 -08:00 committed by hasura-bot
parent 90d3192df2
commit 4f1c2ff879

View File

@ -60,8 +60,10 @@ window.hdocs = (function () {
},
saTrack: function (label) {
window.analytics = window.analytics || [];
window.analytics.track("Clicked " + label, {
category: 'Docs Custom',
window.analytics.track("click", {
category: 'docs',
action: 'click',
label: 'Clicked ' + label,
placement: 'header',
})
},