integrate signature routine from mixpanel PHP