Set up a campaign

Campaigns in Intranet Statistics provide you with a way to monitor
the referrers to ThoughtFarmer. This way you can track how
successful a particular campaign was. Optionally, you can
specify keywords for a single campaign in order to track the method
by which they were reached. For example, you could create a launch
campaign and specify the method of entry using keywords such as
"email", "homepage, or "external". Campaigns can then be matched
with specific goals and conversions to see how well a campaign is
doing in producing a desired action by your users.

Create a campaign

Campaign tracking in Piwik is all done via specific URL parameters.
So if a link to the intranet, or a specific page on the intranet
contains these URL parameters then Piwik will track that as
campaign data. So there is no direct campaign creation interface in
Piwik. Instead, you construct the URLs as desired, then distribute
in your campaign media accordingly.

The following example is a campaign called Get-Started. The link is
designed to go to a specific page on the intranet. We wish to
specify whether users are accessing the page via an email sent, or
a banner ad on the homepage. To do this we create a campaign, and
keyword URLs:

Link to page:
http://intranet/content/1234

Link to page with
campaign: http://intranet/content/1234?pk_campaign=Get-Started

Link to page with campaign and keyword
(email): http://intranet/content/1234?pk_campaign=Get-Started&pk_kwd=email

Link to page with campaign and keyword
(homepage): http://intranet/content/1234?pk_campaign=Get-Started&pk_kwd=homepage

The easiest method to create these URLs is to go to the
Referrers > Campaigns section
of Piwik and click the URL Builder tool link. Or
you can access directly from here at http://piwik.org/docs/tracking-campaigns/url-builder/.
You can then take the generated URLs and add them to the proper
place. For links in ThoughtFarmer you can use the regular Link
browser. However, insert the above URL as an "External" link even
though technically it is an internal ThoughtFarmer link.

Data for that campaign will begin to be tracked as soon as users
start using those links.

Viewing campaign data

If you just launched a campaign and want to see live stats of the
usage you can see this in the homepage widget "Visitors in Real
Time". Any campaign data will display here as shown in the example
below:

To view campaign data reports go to the Referrers
> Campaigns section in Piwik. Select the
desired date range keeping in mind the report generation times. The report is
available in the following data views:

Default view (click the campaign name to drill into
keywords):

Enhanced view (by clicking the icon):

Goal metrics view (by clicking the icon):

You can also use the bar graph, pie chart, or tag cloud views if
desired.