UNPKG

measurement-framework

Version:

Collection of Javascript code to implement a browser based measurement system for websites. It uses a cookie to store a users action on a webpage and let you map thoose actions to a particular state in the user journey.

9 lines (6 loc) 191 B
import window from "window" import isFunction from "lodash-es/isFunction" function gaExists() { return (isFunction(window.ga) && isFunction(window.ga.getAll)) } export default gaExists