use google analytics
use server side google analytics for API