[Piwik-hackers] Writing to Visits table

mikael letang mikael.letang at gmail.com
Thu Jul 24 23:59:35 CEST 2008


Chris: did this fix your problem? (before I test your code)

2008/7/23 Matthieu Aubry <matthieu.aubry at gmail.com>:

> There was a problem in 0.2.7 that new plugins with LogStats = true in the
> getInformation() would not be added in the config file on activation.
> It is now fixed.
>
> If your config/config.ini.php does not contain
> [Plugins_LogStats]
> Plugins_LogStats[] = Provider
>
> then this bug was affecting you. Update to the last version (0.2.9) and it
> should fix this problem.
>
> On Mon, Jul 21, 2008 at 2:08 PM, Chris Songer <csonger at gmail.com> wrote:
>
>>  I have followed the tutorials on Advavnced using the GeoIP. The GeoIP
>> for one stops all data logging to piwik when activated. I have no idea. But
>> I am wanting to write a custom field that I pass in on an optional variable.
>> Here is the code I am using in my plugin.
>>
>> function getListHooksRegistered()    {        $hooks = array(
>>            'LogStats.newVisitorInformation' => 'logMonkeyInfo'        );
>>        return $hooks;    }
>>
>> function logMonkeyInfo($notification){                $visitorInfo =&
>> $notification->getNotificationObject();        $custom =
>> Piwik_Common::getRequestVar('vars',array(),'array');
>>        $visitorInfo['monkey'] = $custom['monkey'];    }
>> ####################.php
>>
>> <!-- Piwik --> <a href="*http://piwik.org*" title="Open source analytics"
>> onclick="window.open(this.href);return(false);">    <script
>> type="text/javascript">        <!--        piwik_action_name = '';
>>        piwik_idsite = 1;        piwik_url = '*
>> http://127.0.0.1:8888/piwik/piwik.php*';
>>        //$.getJSON("server.php",function(json){document.data =
>> json['REMOTE_ADDR'];});        piwik_vars = { 'monkey':'<?=
>> $_SERVER['REMOTE_ADDR'] ?>'};         piwik_log(piwik_action_name,
>> piwik_idsite, piwik_url, piwik_vars);        //-->    </script>    <object>
>>        <noscript>            <p>Open source analytics <img src="*
>> http://127.0.0.1:8888/piwik/piwik.php*" style="border:0"
>> alt="piwik"/></p>        </noscript>    </object> </a> <!-- /Piwik -->
>> ####################.js
>>
>> Any help would be awesome. It is just not writing the data into the table.
>> Even if I replace the `$custom['monkey']` with a simple string `bananas`,
>> still nothing.
>>
>> _______________________________________________
>> Piwik-hackers mailing list
>> Piwik-hackers at piwik.org
>> http://lists.piwik.org/cgi-bin/mailman/listinfo/piwik-hackers
>>
>>
>
> _______________________________________________
> Piwik-hackers mailing list
> Piwik-hackers at piwik.org
> http://lists.piwik.org/cgi-bin/mailman/listinfo/piwik-hackers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.piwik.org/pipermail/piwik-hackers/attachments/20080725/fb42d81b/attachment.htm 


More information about the Piwik-hackers mailing list