Update main.js

added tracking links function for google analytics