Forums » Help & Troubleshooting
Custom internal logging, having trouble getting started
Hi there,I'm trying to get the internal logging function working to log custom data. I'm using the php script with the clicky_log() function provided in the help section.
I've read through what's required several times over, gone through my code several times over, gotten everything where it should be and being set as needed, yet nothing seems to be appearing when I navigate to Content -> Events (This is where it's meant to be appearing, correct? I can't find anywhere else it would!).
The aim is to log the number of times a request is called.
I've the following:
To create the array, and mark it as custom:
$logarray = array();
$logarray['type'] = "custom";
Then adding to the array:
$logarray['custom'][$input] = $function;
Then once the array is finished being constructed, call the clicky_log function:
clicky_log($logarray);
The end result being send though is:
http://in.getclicky.com/in.php?site_id={mysiteid}&sitekey_admin={myadminkey}&type=custom&ip_address={theip}&custom[item1]=3&custom[item2]=9&custom[item3]=1
It all seems to meet what's needed, though I'm a little suspicious about the session_id side of things. Where that comes in and am I needing to do something extra for that? I'm under the impression that I don't.
Any help to get this up and running would be greatly appreciated.
Many thanks in advance,
Tim
Posted Sat May 19 2012 5:09am by _Tim_
Hi, it apperas you're logging custom data - that doesn't show up in the events report. Custom data is attached to visitor sessions. So you are passing an IP address of a visitor, which means this custom data will get attached to an active session for that IP address. However if their session is no longer active it would be ignored. But, chances are it is still active as most people using this functionality are doing it "live" and not after the fact.
Any visitor who has custom data attached to them will have a little star next to their IP/organization when viewing the main visitors report. So look for visitors with that to see how the data is being logged (which you can see when viewing that session)
Posted Mon May 21 2012 12:24pm by Your Friendly Clicky Admin
Ah, there it all is! How silly of me to not see that, lol.
One more thing, is there a way to see all custom data grouped from all IPs/sessions in one location/page to then filter, sort, and the like?
Many thanks.
Posted Mon May 21 2012 9:11pm by _Tim_
Not yet, but it is a planned feature.
Posted Mon May 21 2012 9:33pm by Your Friendly Clicky Admin
