Hi,
We have a amp-stories module on our site.
We used this from the form to track the stories.
<amp-analytics>
<script type="application/json">
{
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview"
}
},
"requests": {
"base": "//pluc.tv/wp-content/plugins/matomo/app/matomo.php?idsite=1&rec=1&action_name=${title}&url=${sourceUrl}&rand=${random}&apiv=1&urlref=${documentReferrer}&res=${screenWidth}x${screenHeight}&lang=${browserLanguage}>_ms=${serverResponseTime}&cs=${documentCharset}&_cvar={\"1\":[\"errorName\",\"${errorName}\"],\"2\":[\"errorMessage\",\"${errorMessage}\"]}",
"pageview": "${base}"
}
}
</script>
</amp-analytics>
We are getting the the tracking data, however its being tracked as a new session. Not as a continuation of the users session.
Can anyone help.