pablo villa
pablo villa

Reputation: 13

Add Google Analytics to Vaadin (Google analytics Tracker)

Hi i'm new to vaadin and i have a problem implementing google analytics with vaadin. I have searched a lot in forums and I have not been able to find the solution. I would like someone with experience in this process to guide me to connect vaadin with google analytics. I have already created a Google Analytics account and it has generated a JS for me:

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Y3YPVNQBCZ"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-Y3YPVNQBCZ');
</script>

My problem now is that in the google analytics Tracker plugin (https://vaadin.com/directory/component/googleanalyticstracker/samples) it does not specify how to add the JS code and I don't know what else to look for, please help !! I need a little guide because I don't know where to start working (SOLVED)

Upvotes: 0

Views: 360

Answers (1)

Related Questions