UNPKG

@ecomplus/widget-analytics

Version:
13 lines (10 loc) 357 B
import watchAppRoutes from './lib/watch-app-routes' import watchShoppingCart from './lib/watch-shopping-cart' export default (options = {}) => { const { gaTrackingId, googleAdsId } = options const { gtag } = window if (typeof gtag === 'function') { watchAppRoutes(gtag, gaTrackingId, googleAdsId) watchShoppingCart(gtag, gaTrackingId) } }