chappy84/google-analytics-server-side — Issue #1: Set cookie error after headers already sent
Author: skl
Created: 2011-12-12 14:31:19+00:00
State: open

Use case:

Event tracking of a download:
* User requests file via URL
* PHP tracker script triggers event (label: 'Download started')
* Tracker script delivers download via readfile()
* Tracker script attempts to trigger event (label: 'Download completed')

Final step produces the warning: 'PHP Warning: Cannot modify header information - headers already sent'

Maybe some sort of toggle to disable cookies?