Carrie
Forum Replies Created
-
@jamesosborne , this appears to have fixed the most immediate issue. With GTM either active or inactive (with no analytics tags in either the amp or web containers), in reader mode in AMP, I don’t see double tags in AMP or non-amp pages! The original issue was with analytics tags active in GTM, and with GTM and analytics active in site kit, I was seeing double tags.
The original issue also seems to be resolved. With analytics tags in GTM and with GTM and GA active in site kit, I do not get double analytics code. However, I DID get double analytics code until I went back into site kit and edited the GA settings so that it recognized it shouldn’t place GA code anymore. Given that GTM tags could be updated at any point, my assumption would be that site kit would check periodically, and maybe it does and I just was testing faster than that period of time.
So it appears to be all fixed – thank you so much!
@jamesosborne Thank you! ??
@jamesosborne Can confirm – no analytics entries within the AMP plugin analytics tag. I tried that this morning (as a possible workaround to sitekit double code) and it didn’t place any code on my AMP pages. :-/ No analytics code anywhere but in site kit.
@jamesosborne , in reading through the github issue more carefully, I came across the steps to reproduce
“Install the AMP plugin and set the mode to “Transitional” or “Standard”
Install Site Kit version 1.24.0 and setup the Google Tag Manager module
Access your site and view the snippet place via Site Kit (snippet is duplicated)”My amp plugin is in reader mode. The duplicate GA tags in AMP persist even if I deactivate GTM in site kit entirely (that was the first thing I tried). So I don’t think that github issue is actually what I’m experiencing… or maybe is a small part of the same bigger issue but my steps to reproduce are different.
Here’s what I’m seeing :
1) In reader mode in the AMP plugin with or without GTM active in site kit, site kit GA places two GA codes in AMP pages – this is the current state of my site if you want to reproduce this item on my site. GTM is NOT active currently.
2) In reader mode in the AMP plugin, with GTM and GA active in site kit and with GA codes in GTM, site kit places two GA codes on ALL page types.- This reply was modified 3 years, 10 months ago by Carrie.
@jamesosborne I do see the issue you reference above on my AMP pages. Now that I have GTM analytics tags removed and am using GA via site kit, only AMP pages have duplicate tags. However, when my GTM containers have analytics page view tracking tags in them AND both GTM and analytics were active in site kit, ALL pages had duplicate tags, AMP and non-AMP, which seems to be a separate issue.
In the mean time, I’ve deactivated all my analytics related tags in my GTM containers to fix at least the non-AMP pages. This morning, I tried deactivating analytics in site kit entirely and using manual analytics code on my desktop template and setting analytics up in the AMP plugin and for whatever reason, the AMP analytics were not working so I had to go back to site kit.
In the mean time, I am also doing some trial and error troubleshooting and have deleted analytics containers from GTM, leaving only amp session unification tags in the AMP container. This fixes the GTA error. Not sure how it will affect traffic… we shall see. But curious still if this is a known issue and what the actual fix is.
@wpquadssupport Hi, I have already uninstalled the plugin… a little over a week ago. Thank you though!
@wpquadssupport , is there something I can do to fix this? Thank you!
Forum: Themes and Templates
In reply to: [OceanWP] Issue Installing Child ThemeI turned off WPTouch Pro, for a variety of reasons and I’ll try creating a child theme again with it turned off. If I have an issue, I’ll post again but I suspect it was just another issue with WPTouch Pro.
@wpquadssupport OceanWP
Here was the resolution :
In my mobile template, it was set to display 10 posts per page in the feed. WordPress was set to 6. So on desktop, there were 15 pages of posts and on mobile, there were 9. When Google Search Console looked for the amp version of pages 10-15, it got a 404 error. I am guessing because AMP is looking at the mobile version of the site, rather than the desktop version, and in my case, they are different, and had a different number of feed pages. I changed the mobile version to have 6 posts per page, to match the desktop version. No more 404s.
@ahmedkaludi , I didn’t even notice that! I guess it must be something in the mobile plugin. Thank you so much!
Carrie
@ahmedkaludi , I turned that feature off. Still getting the error. To clarify, all other pages on the site, in amp, work fine on mobile, with or without that option at the bottom. The affected pages, in amp work fine on desktop. To get the 404 error, I don’t need to click anything… just open the page on mobile. So no switching between mobile or not mobile versions to reproduce.
@ahmedkaludi , it is not enabled. If I enable it and leave theme at ‘pass through’ (and purge caches), it does not resolve the issue.
@ahmedkaludi , I am using W3 Total Cache. I purged all chaches and the AMP pages still load fine on desktop but I still get a 404 on mobile.
I’m also using WP Touch Pro for mobile – but it has AMP turned off so that AMP for WP is generating AMP.
Other AMP pages that are NOT these specific archives are loading fine on mobile. Category archives, for example are loading fine on mobile in AMP. It is only the lists of posts, in AMP only, and only on mobile that are giving me a 404 error.