Asynchronous Tracking of Page Title + URL

How would one track page title in addition to page url using asynchronous tracking?

Looking at http://piwik.org/docs/javascript-tracking/#toc-asynchronous-tracking and
http://piwik.org/docs/javascript-tracking/#toc-features-of-the-javascript-tracker

I imagine that tracking page title code would be something like:


_paq.push(['setDocumentTitle(document.title)]);

but that is just a wild guess. :slight_smile:

The best result would be if title and url would be stored separately but, if they have to be stored in the same string that would be ok too.

EDIT: looking at piwik_log_action table it looks like title AND url are being stored already!

Mea culpa!

Type column must mean then 1 for regular page url, 3 for image url and 4 for page titles