2
respostas

Trackear o sharepoint

Pessoal, tudo bem? Gostaria de saber se alguém conhece maneiras de trackear o uso do sharepoint, como usar o analytics. Preciso fazer isso com a versão online do sharepoint. Eu até cheguei nesse link aqui: https://sharepoint.handsontek.net/2017/12/21/how-to-add-google-analytics-to-the-modern-sharepoint/

E tive o seguinte problema ao executar os comandos ‘gulp bundle –ship’ e ‘gulp package-solution –ship’:

PS C:\Users\Dell\Desktop\Google Analytics> gulp bundle –ship
fs.js:27
const { Math, Object } = primordials;
^

ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (C:\Users\Dell\Desktop\Google Analytics\node_modules\natives\index.js:143:24)
at Object.req [as require] (C:\Users\Dell\Desktop\Google Analytics\node_modules\natives\index.js:55:10)
at Object. (C:\Users\Dell\Desktop\Google Analytics\node_modules\gulp\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (C:\Users\Dell\Desktop\Google Analytics\node_modules\gulp\node_modules\graceful-fs\graceful-fs.js:3:27)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
PS C:\Users\Dell\Desktop\Google Analytics> gulp package-solution –ship
fs.js:27
const { Math, Object } = primordials;
^

ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (C:\Users\Dell\Desktop\Google Analytics\node_modules\natives\index.js:143:24)
at Object.req [as require] (C:\Users\Dell\Desktop\Google Analytics\node_modules\natives\index.js:55:10)
at Object. (C:\Users\Dell\Desktop\Google Analytics\node_modules\gulp\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (C:\Users\Dell\Desktop\Google Analytics\node_modules\gulp\node_modules\graceful-fs\graceful-fs.js:3:27)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)

Desde já agradeço

2 respostas

Olá Rezende, tudo bem? Acho que isso te responde (em inglês):

https://community.spiceworks.com/topic/2202049-google-analytics-in-sharepoint-365

Ronald, obrigada. Vou verificar no link. Atualizei a pergunta com o código que usamos aqui para tentar incluir o analytics. Se puder dar uma olhada seria ótimo.