src/middleware.js
Function googleAnalytics
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function googleAnalytics(store) {
const gaMomentEventCategory = "Moment";
const gaPlayTimeEventAction = "playTime";
const gaPlayTimeEventIntervalInMilliseconds = 5000;