Skip to content

Piwik page tracking

Sam Goshorn edited this page Aug 31, 2016 · 8 revisions

Following the pattern for starting a CALI Author lesson which is this:

`https://www.cali.org/lesson/run/EVD04/528/jq

we call Piwik whenever the lesson changes page by sending a URL in a similar form:

`https://www.cali.org/lesson/run/EVD04/528/jq/page/About this lesson

`https://www.cali.org/lesson/run/EVD04/528/jq/page/Negligence Q1

using this code in the page changing logic:

_paq.push(['setDocumentTitle', ‘/lesson/run/‘+lessoncode+’/‘+lid+’/jq/page/’+page.name]); _paq.push(['trackPageView']);

Clone this wiki locally