See void Home::googleAnalyticsLogger() in Home.C in said example.
Don't forget to require() the right google analytics .js file. Or you
can do it like in wt-home.xml to avoid Wt to block until it's loaded
before the UI is rendered.

I believe piwik has a tracking API that you could use from within Wt:
http://piwik.org/blog/2012/04/how-to-use-piwik-to-track-mobile-apps-activity-clicks-phones-errors-etc/
The idea would then be to make the wt server update the statistics to
piwik, which avoids extra requests to the tracking server (analytics),
and thus a faster web site. But you're probably right: I don't think
they have an out-of-the-box working c++ api.

Best regards,
Wim.

Op 16 april 2012 15:56 heeft Mohammed Rashad
<[email protected]> het volgende geschreven:
> how to install google analytics tracker in whttpd deployment
>
>
> On Mon, Apr 16, 2012 at 7:21 PM, Mohammed Rashad
> <[email protected]> wrote:
>>
>> piwkis only tracks php
>>
>>
>> On Mon, Apr 16, 2012 at 6:41 PM, Wim Dumon <[email protected]> wrote:
>>>
>>> The wt-homepage example uses google analytics to track users. I guess
>>> you can use piwiks as well, but i've never done that.
>>>
>>> Best regards,
>>> Wim.
>>>
>>> Op 16 april 2012 14:18 heeft Mohammed Rashad
>>> <[email protected]> het volgende geschreven:
>>> > Is there any web traffic analyzer for Wt applications. I deploy my Wt
>>> > application as wthttpd service
>>> > How can i analyze traffic on the page?
>>> >
>>> > --
>>> > Regards,
>>> >    Rashad
>>> >
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > For Developers, A Lot Can Happen In A Second.
>>> > Boundary is the first to Know...and Tell You.
>>> > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>>> > http://p.sf.net/sfu/Boundary-d2dvs2
>>> >
>>> > _______________________________________________
>>> > witty-interest mailing list
>>> > [email protected]
>>> > https://lists.sourceforge.net/lists/listinfo/witty-interest
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> For Developers, A Lot Can Happen In A Second.
>>> Boundary is the first to Know...and Tell You.
>>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>>> http://p.sf.net/sfu/Boundary-d2dvs2
>>> _______________________________________________
>>> witty-interest mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>>
>>
>>
>> --
>> Regards,
>>    Rashad
>>
>
>
>
> --
> Regards,
>    Rashad
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
>
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to