thomasbachem/php-ga — pull request #12 by calin-marian (2014-04-11 10:11:11+00:00)
Title: Updated campaign validation per the latest code from:

In the code from gaforflash for campaign validation, they are checking if at least one of the attributes "source", "id", "gClickId" is set:
https://code.google.com/p/gaforflash/source/browse/trunk/src/com/google/analytics/campaign/CampaignTracker.as#166.
The php-ga library is only verifying that the source attribute is set.

I have the situation where the visitor comes with a gClickId and nothing else, witch fails validation because no source is present. But after changing the validation code, and letting this through, it is recorded correctly by GA, and shows up correctly in the GA admin.

I assume that GA changed the algorithm at some point, so this code is basically updating the validation to the current status quo.