Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Google Analytics / Tags extra #17

Closed
isaacyakl opened this issue Jan 8, 2023 · 1 comment
Closed

Add Google Analytics / Tags extra #17

isaacyakl opened this issue Jan 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@isaacyakl
Copy link

It would be cool if you made an option to add an analytics code!

You could then create a script element and insert it into the DOM as the first child of the head element.

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

  gtag('config', 'THE_MEASUREMENT_ID');
</script>
@Drarig29 Drarig29 added the enhancement New feature or request label Jan 8, 2023
@Drarig29
Copy link
Owner

Drarig29 commented Jan 8, 2023

Good idea! Added in v2.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants