Ticket #2172 (new New feature)
PiwikTracker.java
| Reported by: | exactt | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.x - Piwik 1.x |
| Component: | Core | Keywords: | PiwikTracker Java |
| Cc: | Sensitive: | no |
Description
hi folks,
I transformed PiwikTracker.php to Piwiktracker.java and wanted to share the code for further improvement/fixes. There is still stuff missing but it works for me so far.
To track a (JSP-)page I use the following code:
<% PiwikTracker pt = new PiwikTracker(1, " http://localhost/piwik", request); ResponseData rd = pt.doTrackPageView("Tracker Test"); if(rd.getCookies().size() > 0) response.addCookie(rd.getCookies().get(rd.getCookies().size()-1)); %>
I am still a newbie to Piwik so I might have gotten something wrong...
cheers
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

