Skip to content

Automatic event tracking for your google analytics and segment

License

Notifications You must be signed in to change notification settings

urimerhav/discern-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discern

A one line script to set up Google Analytics and Segment tracking for all events on your website. Setup is a single copy & paste.

Installation

Prerequisites

First make sure you've installed either Google Analytics or Segment on your site's <head> tag. See:

Setup

Once you've installed either Google Analytics or Segment on your site's <head> tag, then:

Paste the following lines below the Google Analytics / Segment tag and above the closing </head> tag on the webpage where you wish to track events. Note that you would have to place it on every page you want to track (same as with Google Analytics / Segment).

<script src="https://cdn.jsdelivr.net/gh/urimerhav/discern-js/js/discern.js"></script>
<script>const discern = new Discern();</script>

That's it! All important events will now be automatically tracked and sent to your analytics solution. Note this may take up to 24 hours while Discern analyzes user behavior to determine what events are important enough to track.

Managment

Important events on your website will be tracked with meaningful names. Still, if you want to edit the event names, or disable some of them, you may do so at the discern dashboard

About

Automatic event tracking for your google analytics and segment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •