v008370
Forum Replies Created
-
Hi there,
I’ve found the solution, looks like the plugin update was a coincidence. My css selectors just stopped working in tag manager, I rewrote the selectors and its working again.
Sorry to have bothered you.
It’s still not working
I’m not seeing any events fire in Google Analytics, which is ultimately where I track these via Tag Manager.
Is there a better way to share screenshots?
Sure
https://www.safehouseholdcleaning.com/best-laundry-detergent/amp
Scroll down to a Buy From Amazon or Buy From Ebay button, any will do, click one and the error occurs in chrome devtools.
On the tag manager side, i have an event fire if someone clicks a page element with the button id.
And on my other site
log.js:251 [amp-analytics/analytics-root] Bad query selector. :not(*)${gtm_css_3_0} DOMException: Failed to execute ‘matches’ on ‘Element’: ‘:not(*)${gtm_css_3_0}’ is not a valid selector.
at eb (https://cdn.ampproject.org/v0/amp-analytics-0.1.js:21:659)
at Nd (https://cdn.ampproject.org/v0/amp-analytics-0.1.js:143:91)
at https://cdn.ampproject.org/v0/amp-analytics-0.1.js:140:268
at T.push.f.h.fire (https://cdn.ampproject.org/v0/amp-analytics-0.1.js:63:630)Both worked perfectly until that update I mentioned
The error message I’m seeing in chrome dev tools is
[amp-analytics/analytics-root] Bad query selector. :not(*)${gtm_css_2_0} DOMException: Failed to execute ‘matches’ on ‘Element’: ‘:not(*)${gtm_css_2_0}’ is not a valid selector.
at eb (https://cdn.ampproject.org/v0/amp-analytics-0.1.js:21:659)
at Nd (https://cdn.ampproject.org/v0/amp-analytics-0.1.js:143:91)
at https://cdn.ampproject.org/v0/amp-analytics-0.1.js:140:268
at T.push.f.h.fire (https://cdn.ampproject.org/v0/amp-analytics-0.1.js:63:630)
Za @ log.js:251
f.Ca @ log.js:306
f.error @ log.js:323
Nd @ analytics-root.js:528
(anonymous) @ analytics-root.js:354
push.f.h.fire @ observable.js:81Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Updated Plugin Breaking SiteI have to create a new topic to talk about this topic? Am I misreading this?
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Updated Plugin Breaking SiteWhat do I do in the meantime? Can you rollback your last update – this is no good like this
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Missing images issue on amp homepageHi there
The images work fine on posts, but not at all on the homepage.
For example, in a post the image is rendered as
<amp-img src=”/wp-content/uploads/2015/08/Pharmaceutical-Specialities-Free-Clear-Shampoo-82×300.jpg” alt=”” class=”aligncentre amp-wp-enforced-sizes i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-layout” width=”82″ height=”300″ sizes=”(min-width: 82px) 82px, 100vw” style=”width: 82px;”><i-amphtml-sizer style=”display: block; padding-top: 365.854%;”></i-amphtml-sizer>
</amp-img>However on the homepage the exact same image/source html is rendered with
<amp-img src=”/wp-content/uploads/2015/08/Pharmaceutical-Specialities-Free-Clear-Shampoo-82×300.jpg” alt=”” class=”aligncentre i-amphtml-element i-amphtml-layout-container”></amp-img>
Any ideas why there is such a distinct difference between how the plugin manages images on the homepage or on posts?
- This reply was modified 8 years, 9 months ago by v008370.
Forum: Plugins
In reply to: [Google AdSense] Your Adsense Application Was Not ApprovedIt asked me to reenter my details to re-register
I’ve uninstalled the plugin and reapplied
It was quite tricky using theplugin I found, I had no ideas what it would look like with adverts as the adverts would’t show until my application was successful