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.

8 lines (6 loc) 196 B
import window from "window" import isFunction from "lodash-es/isFunction" function fbqExists() { return (isFunction(window.fbq) && isFunction(window.fbq.getState)) } export default fbqExists