0.0.1 • Published 4 years ago

watsco-analytics-tracking v0.0.1

Weekly downloads
5
License
-
Repository
-
Last release
4 years ago

Watsco Analytics Tracking NPM Package

version

A note on SSR/PWA Studio

Currently, Magento PWA studio has no real way of allowing SSR. If tracking javascript disabled clients is a must, a work around will be for you to add necessary noscript code blocks to your static HTML

Examples

Getting Started: Google Tag Manager

import { AnalyticsProvider } from 'watsco-analytics-tracking';
....

render() {
  <App>
    <AnalyticsProvider options={{
        gtm: {
          trackingId: 'GTM-XXXX',
          dataLayerName: 'dataLayer' // optional
          environment: { // optional
            gtm_auth: '',
            gtm_preview: '',
          }
        }
      }}>
        {props.children}
      </AnalyticsProvider>
  </App>
}

Enhanced Ecommerce

0.0.1

4 years ago