The documentation for the Live Module says:
"... return extensive data for each visit, which includes: [...] campaign name and keyword ..."
However, when perusing the examples, eg For XML, there are no fields that are for campaign or keyword (other than referrer keyword which is different).
Is this a documentation artifact, or missing functionality in Piwik?
Keywords: campaign, keyword, live module
Currently piwik only tracks one referrer, either campaign OR search engine OR website. This is by desig. See also #2567
I understand this. My question of how to get at the campaign name and keyword still stands though.
What field is it returned in? Is the field only present if the visit was from a campaign URL, or is it always present but null?
the field is only present when there is a referrer. It is returned in the referrerName and referrerKeyword fields