@ream/module-google-analytics

npm i @ream/module-google-analytics

Usage no npm install needed!

<script type="module">
  import reamModuleGoogleAnalytics from 'https://cdn.skypack.dev/@ream/module-google-analytics';
</script>

README

@ream/module-google-analytics

Install

npm i @ream/module-google-analytics
# Or Yarn
yarn add @ream/module-google-analytics

Usage

Add it to ream.config.js:

export default {
  modules: ['@ream/module-google-analytics'],
  env: {
    // Set your ga tracking ID
    GA_TRACKING_ID: 'UA-XXX-XXX',
    // Optional send anonymize ip
    GA_ANONYMIZE_IP: true,
  },
}

License

MIT © EGOIST