event tracking script

use this script to  fetch data from custom data attributes and  send
data to google analytics server