Donnerstag, 26. April 2012

Google Analytics PHP Client: Send page information with Events

I'm using the TrackPageView and TrackEvent features of php-ga.

During studying the Events on my Google Analytics page, I saw there are no page information attachted to the Events.
I take a look into the very well commented code, and could implement it in a few minutes.
Attached to the Issue You will find a zip archive containing two unified diffs of the changed files:
Tracker.php 
EventRequest.php 
Now You can also send the page information with the Events.
Actually it is a required parameter, it could also be changed to an optional.

You can find the Feature Request and Patch here:
Issue 16: Send page information with Events

Update:
The patch is now part of php-ga 1.2

Keine Kommentare:

Kommentar veröffentlichen