Hi there! I'd like to track the amp pages with PIWIK Analytics.
If I activate Analytics in the Plugin the script will be loaded but where to enter the tracking code? and witch tag type I have to chose?
It is both GA...
Found this in the Piwik forums: https://forum.piwik.org/t/how-to-add-piwik-to-amp-pages/18424/6
Code should be like this:

<amp-analytics><script type="application/json">
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview"
"requests": {
"base": "https://piwik.example.org/piwik.php?idsite=1&rec=1&action_name=${title}&url=${sourceUrl}&rand=${random}&apiv=1&urlref=${documentReferrer}&res=${screenWidth}x${screenHeight}&lang=${browserLanguage}&gt_ms=${serverResponseTime}&cs=${documentCharset}&_cvar={\"1\":[\"errorName\",\"${errorName}\"],\"2\":[\"errorMessage\",\"${errorMessage}\"]}",
"pageview": "${base}"

Thx for your support and for the great Plugin!
Responses (1)
  • Accepted Answer

    Monday, December 18 2017, 10:41 AM - #Permalink

    Thanks for your message. You are on public forum, where we can only reply to pre-sale questions.

    We provide support to our subscribers through our helpdesk.
    After logging in, please open a ticket describing as clearly as possible the problem you're experiencing.

    Thanks and regards
    The reply is currently minimized Show
Your Reply