|
1 |
| -Server-Side Google Analytics PHP Client |
| 1 | +Server-Side Google Analytics Client |
2 | 2 | ===========================================================================================
|
3 | 3 |
|
4 |
| -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
5 | 4 | **Oct 5, 2013:** php-ga was ported from [Google Code](https://code.google.com/p/php-ga/)
|
6 | 5 | where it has 8,000+ downloads and 160+ stares.
|
7 | 6 |
|
8 |
| -*NOTE: php-ga is no longer maintained as Google finally released an official server-side |
| 7 | +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 8 | +**NOTE:** php-ga is no longer maintained as Google finally released an official server-side |
9 | 9 | tracking API: Measurement Protocol! I couldn't find any well-implemented client library for
|
10 |
| -PHP yet, so feel free to help make php-ga 2.0 a Measurement Protocol PHP client library.* |
| 10 | +PHP yet, so feel free to help make php-ga 2.0 a Measurement Protocol PHP client library. |
11 | 11 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
12 | 12 |
|
| 13 | + |
| 14 | +About |
| 15 | +------------------------------------------------------------------------------------------- |
| 16 | + |
13 | 17 | php-ga basically is ga.js in PHP: An implementation of a generic server-side Google
|
14 | 18 | Analytics client in PHP that implements nearly every parameter and tracking feature of the
|
15 | 19 | original GA Javascript client. That means you can send data directly from your servers to
|
@@ -55,29 +59,24 @@ Gotchas
|
55 | 59 | -------------------------------------------------------------------------------------------
|
56 | 60 |
|
57 | 61 | - **100% namespaced OOP**
|
58 |
| - |
59 | 62 | As a matter of course.
|
60 | 63 |
|
61 | 64 | - **Completely abstracted from any enviroment**
|
62 |
| - |
63 | 65 | Doesn't rely on any globals like $_SERVER, PHP sessions or whatsoever - implement it the
|
64 | 66 | way you want.
|
65 | 67 |
|
66 | 68 | - **High-Performance Tracking**
|
67 |
| - |
68 | 69 | Can be configured to enqueue requests via register_shutdown_function() and to use
|
69 | 70 | non-blocking requests.
|
70 | 71 |
|
71 | 72 | - **Probably the most comprehensive technical documentation of GA**
|
72 |
| - |
73 | 73 | More than 50% of all source code lines are PHPDoc and inline comments!
|
74 | 74 |
|
75 | 75 |
|
76 | 76 | Caveats
|
77 | 77 | -------------------------------------------------------------------------------------------
|
78 | 78 |
|
79 | 79 | - **Google Analytics' geo location functionalities won't work**
|
80 |
| - |
81 | 80 | Native geo location features like the worldmap view won't work anymore as they rely
|
82 | 81 | solely on the IP address of the GA client - which will always be the one of your
|
83 | 82 | server(s) when using this library.
|
|
0 commit comments