Perl is a language, not a framework. The main web frameworks in Perl today are Catalyst, Mojolicious, Dancer, with quite a few good fringe options like Amon2, and at least one decent historical (in my view) option, CGI::Application.

With one of those, adding a hook at the top of the dispatcher to collect internal, non-JS, navigation info is trivial. To track JS you must use JS or have the JS call Perl tracking functionality. There is nothing wrong with using JavaScript.

I advise use of Google Analytics because it’s easy and it works extremely well. You can roll your own, of course, but if you haven’t settled on a web framework and don’t know the differences between dynamic content, Ajax, and how it related to Perl then I think rolling your own will be a long and frustrating battle. I would only recommend it for fun and edification or an internal or private application.


In reply to Re^5: Tracking users clicks throughout an application by Your Mother
in thread Tracking users clicks throughout an application by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.