adswerve / universal-analytics-php

Universal Analytics library for PHP
http://www.analyticspros.com/tools/code/
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

Didn't seem to work #3

Closed grantkemp closed 9 years ago

grantkemp commented 10 years ago

Hi I tried loading this from my localhost and from my shared hosting, but I couldn't see the data registering in my real time GA tracker. Any idea on how to get this working? Is there a working tutorial somewhere I can read to see what I missed?

samba commented 10 years ago

@grantkemp Did you configure a tracker and make any "send" calls?

The library will not start sending tracking data to Google simply by loading it. This is very similar to Google's Javascript library analytics.js, in that it provides an interface for making Measurement Protocol requests with a stateful tracker configuration, but requires a working configuration to properly generate data. Examples are provided in the project's README, as well as the test.php file.

This documentation is admittedly a bit slim, but it covers the most common use-cases. https://github.com/analytics-pros/universal-analytics-php/blob/master/README.md

samba commented 9 years ago

Closing this due to inactivity (no response from @grantkemp)

grantkemp commented 9 years ago

Hi - sorry didn't see above. I managed to get it working great - if I can recall what changes I did, I will push them up - ( if relevant)