{"id":13500652,"date":"2020-10-06T20:54:54","date_gmt":"2020-10-06T20:54:54","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/google-analytics-question-reader-theme\/"},"modified":"2020-10-06T20:54:54","modified_gmt":"2020-10-06T20:54:54","slug":"google-analytics-question-reader-theme","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/google-analytics-question-reader-theme\/","title":{"rendered":"Google Analytics question (Reader Theme)"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I have a custom Reader theme (a child of main theme) and I am trying to set up Google Analytics. I tried adding the snippet of json into the configuration field from the options page, but <code>&lt;amp-analytics&gt;<\/code> does not show up on my posts when I check the page source.<\/p>\n<blockquote class=\"imgur-embed-pub\" lang=\"en\" data-id=\"k9XZEqH\"><p><a href=\"https:\/\/imgur.com\/k9XZEqH\">View post on imgur.com<\/a><\/p><\/blockquote>\n<p><script async src=\"\/\/s.imgur.com\/min\/embed.js\" charset=\"utf-8\"><\/script><\/p>\n<p>If I try it with another Reader Theme like Twenty Nineteen it will work. Am I missing something for it to work on my own theme? Would I have to use the <code>amp_post_template_analytics<\/code> filter instead?<\/p>\n","protected":false},"template":"","class_list":["post-13500652","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13500652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13500652\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13500652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}