Matomo tracking does not work
-
Hi there,
I am considering tracking the urls visited by AMP users using matomo.
I have followed the instructions provided here: https://ampforwp.com/tutorials/article/how-to-add-matomo-piwik-analytics-in-amp/. To enable tracking, I needed to configure and embed this code: “https://YOUR_PIWIK_BASE_INSTALLATION_URL/piwik.php?idsite=1&rec=1& action_name=TITLE&urlref=DOCUMENT_REFERRER&url=CANONICAL_URL& rand=RANDOM”
I can see the TITLE and CANONICAL_URL fields in real time tracking. However, CANONICAL_URL is communicated not as a full url. It gets communicated without the https and therefore doesn’t get processed by matomo. I tried inserting “https://” or “https:%2F%2F” before CANONICAL_URL but somehow I can only get “https://” passed to Matomo as “https:/” so it doesn’t get processed correctly as a url.
How can I make sure that full urls get passed to matomo?
Thank you,
The page I need help with: [log in to see the link]
- The topic ‘Matomo tracking does not work’ is closed to new replies.