I have the same issue:
Do I add this full code or just part of it?
<amp-analytics type="googleanalytics" id="analyticsBlog">
<script type="application/json">
{
"vars": {
"account": "UA-XXXXXXX-1"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview"
},
"trackAnchorClicks": {
"on": "click",
"selector": "a",
"request": "event",
"vars": {
"eventCategory": "link",
"eventAction": "Click"
}
}
}
</script>
</amp-analytics>
Hi Rene. I’m curious if this has been implemented any more. I’d like to be able to have a post sort option for “Trending” by shares. I.e. most shared in last XX days.
I’m not super familiar with writing custom WP queries so any updates/help would be great!
Also like to know how Freerunning accomplished their goal.
Thanks