Alternative analytics for AMP – Matomo

Posted in: Newspaper
Post count: 31

Hi,
I have a problem with Newspaper AMP (using a Tagdiv Theme).
I’ve added a proper google analytic code for AMP and it is working fine.
But I’ve also would like to analyze traffic using different solution (Matomo/Piwik).
The problem is, that I have no idea how to embed trafic code (pixel) to AMP pages.

This is how the code should look like (I’ve removed page name that it will not interfere with my analytics)

<!-- Matomo Image Tracker-->
< img sr c="https://www.wyborkierowcow.pl/analytics/piwik.php?idsite=1&rec=1" alt="" / >
<!-- End Matomo -->

Copying it into GA window broke GA code.
I’ve copied it into header advert place, but it’s not seen by my Matomo Analytics.

Is there any other editor, where this can be added and will be visible to my privet analytics?

thx

Stef

Post count: 9544

Probably the amp template itself

Post count: 23312

Hello StefanGebala,

Unfortunately, the theme has not been tested with Matomo Analytics. We recommend only using the Google Analytics code for tracking of your site, sorry!

Thanks for your understanding!

Post count: 31

Is there any way to embed this code to PHP file?

Post count: 23312

Hell oStefanGebala,

Unfortunately, we cannot provide support for this tracking code (plugin) because it has not been tested with our theme.

Thanks for the message!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.