AMP measurement support #220
Replies: 15 comments 21 replies
-
There are now 75 analytics vendors who are compatible with AMP (full list is here). Here is the documentation on how to be added as an AMP vendor: https://amp.dev/documentation/components/amp-analytics/ . Here's an example PR for RudderStack on being added as a vendor or one for BlueConic. |
Beta Was this translation helpful? Give feedback.
-
@gergelyorosz I plan to add this in my next PR. Keep a watch |
Beta Was this translation helpful? Give feedback.
-
Any news on this? If you need support in testing let me know, eager to try this. |
Beta Was this translation helpful? Give feedback.
-
Hey Plausible, After inspecting my main URL on Search Console, it said the “AMP Page is invalid” due to custom Javascript not being allowed. The only custom script I have is Plausible's. Google is moving to indexing only mobile-responsive pages. Any updates on AMP and Plausible? Thanks, and LOVE Plausible so far! (-: |
Beta Was this translation helpful? Give feedback.
-
Thanks, glad to hear that! We're about to release metadata for goals and after that our roadmap is focused on other popular requests (browser/os versions, API, export/import). After that we'll consider what to do next and see if we can put AMP on the roadmap at that point. Obviously if there's a PR before, we'll happily merge it. You don't have a native mobile responsive page but only an AMP? |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back!
Well, I revised my blog using Publii, which offers code injection for both
the main site (which is mobile responsive), and AMP. I had placed Plausible
code in both Headers, but Google Search Console said the custom Javascript
invalidated my AMP page. No idea why. I removed the code from AMP for now.
My blog is at blog.hopswrites.com
Thanks for your time.
…-Jordan
On Thu, Oct 29, 2020 at 4:22 AM Marko Saric ***@***.***> wrote:
Thanks, glad to hear that! We're about to release metadata for goals and
after that our roadmap <https://github.com/plausible/analytics/projects/1>
is focused on other popular requests (browser/os versions, API,
export/import). After that we'll consider what to do next and see if we can
put AMP on the roadmap at that point. Obviously if there's a PR before,
we'll happily merge it. You don't have a native mobile responsive page but
only an AMP?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/plausible/analytics/issues/220#issuecomment-718469856>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARRV7IR7GBZ6BUYYBK6FA2DSNEQ43ANCNFSM4OYRMDJQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Makes sense. Can see that your blog is mobile responsive on its own too. For AMP, we'll need to be added as a vendor before Plausible can be used on AMP pages. |
Beta Was this translation helpful? Give feedback.
-
Thanks for checking and replying!
…On Thu, Oct 29, 2020, 8:42 AM Marko Saric ***@***.***> wrote:
Makes sense. Can see that your blog is mobile responsive on its own too.
For AMP, we'll need to be added as a vendor before Plausible can be used on
AMP pages.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/plausible/analytics/issues/220#issuecomment-718727157>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARRV7ISGK5B67IPCZRZ3ILLSNFPK7ANCNFSM4OYRMDJQ>
.
|
Beta Was this translation helpful? Give feedback.
-
This is something we need also. AMP is totally anti-competitive, and is one of the reasons the U.S. States are suing Google, but until Google is brought into line, we need to play by their rules, which basically require AMP. |
Beta Was this translation helpful? Give feedback.
-
I agree. AMP is sadly a must have. Is there any workaround on how we can push some basic metrics into plausible from AMP pages in the meantime? This is currently a showstopper, especially for larger content websites where almost 90% of traffic is hitting the AMP pages. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to generate Plausible's tracking code for AMP pages already? |
Beta Was this translation helpful? Give feedback.
-
Now that the API is in the 1.3.0 release, is there any chance the next step is an API endpoint to push custom data from AMP pages into plausible or any other method to track AMP pages with plausible? I really want to migrate all sites to plausible but its just not possible while it still does not support at least basic tracking on AMP pages too. |
Beta Was this translation helpful? Give feedback.
-
From next month, there will no longer be any preferential treatment for AMP pages in Google's search results! https://plausible.io/blog/google-amp |
Beta Was this translation helpful? Give feedback.
-
After finally putting some time into this I figured out it is totally doable to track AMP with plausible already. We don't need to implement any new feature for this. Maybe we could just mention it in the docs on how to do this. To track AMP request and outbound links with plausible you need to declare an amp-analytics object on your AMP pages like this: <amp-analytics>
<script type="application/json">
{
"vars": {
"dataDomain": "example.com"
},
"requests": {
"event": "https://plausible.io/api/event"
},
"extraUrlParams": {
"u": "${sourceUrl}",
"r": "${documentReferrer}",
"w": "${viewportWidth}",
"d": "${dataDomain}"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "event",
"extraUrlParams": {
"n": "pageview"
}
},
"trackOutboundLinks": {
"on": "click",
"request": "event",
"selector": "a[href*='//']:not([href*='${sourceHost}'])",
"extraUrlParams": {
"n": "Outbound Link: Click",
"p": "{\"url\":\"${clickUrl}\"}"
}
}
},
"transport": {
"beacon": true,
"xhrpost": true,
"image": false,
"useBody": true
}
}
</script>
</amp-analytics> The |
Beta Was this translation helpful? Give feedback.
-
@squareloop1 The script worked for me. I have noticed one thing. I opened my site on my mobile browser and its still showed up under desktop device. Its using |
Beta Was this translation helpful? Give feedback.
-
"My website supports AMP. Given that AMP is growing, measuring this would be key for me. The AMP standard is an open one. There were more than 55 analytics providers supporting AMP even in 2018, like Amplitude or Adobe Analytics or New Relic. Here's a link with a bunch of the AMP API spec for many providers."
feedback via email
Beta Was this translation helpful? Give feedback.
All reactions