Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 477 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 477 Bytes

GA files tracker

This script adds the google analytics tracking code to links to external sites and to file downloads.

Usage

  • Add the javascript file to your header like here:

    <html> <head> ... <script type="text/javascript" src="gafiles.js"></script> ... </head>

  • Then add the function call to the onload attribute of your body tag.

    ... <body onload="trackgafiles()"> ...