react-google-analytics

Google Analytics component for React

Usage no npm install needed!

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

README

react-google-analytics

This inserts an up-to-date Google Analytics object whether Google updates their script or not