Skip to content

gotshub/ga-files-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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()"> ...

About

Tracks download of files like PDF, ZIP or external sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages