A Ali Güngör Apr 10, 2017 #1 Analytics code is not being fully fetched, rendering it useless. Had to add the code manually to the end of the PAGE_CONTAINER_AMP. Here is the result: Last edited: Apr 10, 2017
Analytics code is not being fully fetched, rendering it useless. Had to add the code manually to the end of the PAGE_CONTAINER_AMP. Here is the result:
BamaStangGuy Apr 10, 2017 #2 I don't believe it is working properly on any of our sites either @NixFifty
BamaStangGuy Apr 10, 2017 #3 This is what is recommended: Code: <amp-analytics type="googleanalytics"> <script type="application/json"> { "vars": { "account": "UA-XXXXX-Y" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" } } } </script> </amp-analytics> This is what the code is actually adding to the page: Code: <amp-analytics type="googleanalytics" id="UA-88368249-2"></amp-analytics>
This is what is recommended: Code: <amp-analytics type="googleanalytics"> <script type="application/json"> { "vars": { "account": "UA-XXXXX-Y" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" } } } </script> </amp-analytics> This is what the code is actually adding to the page: Code: <amp-analytics type="googleanalytics" id="UA-88368249-2"></amp-analytics>
BamaStangGuy Apr 22, 2017 #8 Recep Baltas said: How come? Removed my custom code and the result is just one line! Click to expand... What happens to a Christian who commits suicide? running latest version with the template reverted.
Recep Baltas said: How come? Removed my custom code and the result is just one line! Click to expand... What happens to a Christian who commits suicide? running latest version with the template reverted.
Naz Staff member Apr 22, 2017 #10 It wasn't marked fixed because it wasn't addressed yet. I was unable to reproduce this issue, hence why it was left unresolved. For the avoidence of doubt, anything in Bug Reports is unresolved and everything in Resolved Bug Reports is sorted.
It wasn't marked fixed because it wasn't addressed yet. I was unable to reproduce this issue, hence why it was left unresolved. For the avoidence of doubt, anything in Bug Reports is unresolved and everything in Resolved Bug Reports is sorted.
A Ali Güngör Apr 22, 2017 #11 BamaStangGuy said: What happens to a Christian who commits suicide? running latest version with the template reverted. Click to expand... No! You did not revert the template! You still have the code probably. Here is the result:
BamaStangGuy said: What happens to a Christian who commits suicide? running latest version with the template reverted. Click to expand... No! You did not revert the template! You still have the code probably. Here is the result:
BamaStangGuy Apr 22, 2017 #12 Recep Baltas said: No! You did not revert the template! You still have the code probably. Here is the result: View attachment 162 Click to expand... Yes! I promise you the template is reverted. I have also installed this on sites that never had this plugin and the Analytics code works there.
Recep Baltas said: No! You did not revert the template! You still have the code probably. Here is the result: View attachment 162 Click to expand... Yes! I promise you the template is reverted. I have also installed this on sites that never had this plugin and the Analytics code works there.
BamaStangGuy Apr 24, 2017 #15 Hi, If you move this line: Code: <xen:callback class="NixFifty_AMP_Helper" method="getAnalytics"></xen:callback> Outside of the callback it is in it works.
Hi, If you move this line: Code: <xen:callback class="NixFifty_AMP_Helper" method="getAnalytics"></xen:callback> Outside of the callback it is in it works.