install-gtag

1.0.1 • Public • Published

install-gtag

This script is a convenient way to insert the default Google Analytics gtag script.

  1. It can be written in one line.
  2. It deletes itself after it has completed its task.

Replace <GTAG ID> in the HTML script tag under "usage" with your gtag ID.

usage

<script data-gtag-id="<GTAG ID>" src="https://cdn.jsdelivr.net/npm/install-gtag" defer></script>

Package Sidebar

Install

npm i install-gtag

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

2.64 kB

Total Files

4

Last publish

Collaborators

  • motrohi