Forum Replies Created

Viewing 15 replies - 1 through 15 (of 40 total)
  • Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Hey Paulo,

    Thanks for you reply.

    Here is what i am trying to accomplish

    We would like to track all the customer behavior for a marketing automation tool.

    So whenever any user add or remove any product to/from their cart, We want to track the whole data.

    $( 'body' ).on( 'removed_from_cart', function( e, fragments, cart_hash, button ) {
        datatrack.track('Removed From Cart ', {
          'Product ID':458,
          'Product Name': 'Test Product',
          'Product Category': 'test-cat',
          'Product Categroy ID': 2,
          'price': 200,
          'discount price': 180,
        });
      });

    So this removed_from_cart JS triggers works well with minicart, however it is not working on cart page.

    Hope you are clear!!

    Thanks

    Forum: Plugins
    In reply to: [AMP] AMP Errors
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    I already followed all steps and verified . my test pass on every steps and everything looks good enough. Strange why Google doesn’t index whole AMP pages.

    Forum: Plugins
    In reply to: [AMP] AMP Errors
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    hi James,

    Here is the Page URL which is not indexed.

    https://bit.ly/2Y74V7A

    I have checked on AMP validation tool and its Valid Page with valid structure.

    Forum: Plugins
    In reply to: [AMP] AMP Errors
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Hi James,

    Yes, I have not enabled on all pages I have more then 2000 paes, I have enabled it on blog post only. And total blog post is 1500. they atleast should index on google but as per google search console only 444 + 48 page have been crawled.

    Our all blog post non-amp version are already submitted for index and they are indexed. But only AMP pages are concern, They are not indexed.

    Thanks

    Forum: Plugins
    In reply to: [AMP] AMP Errors
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    One More thing .. In Google Search Console I have checked 444 pages only valid, However we have 1500 blog post. but in search console its showing 444 Valid 48 invalid

    Forum: Plugins
    In reply to: [AMP] AMP Errors
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Hi James,

    Thank you for your reply, these accordians and tabs are not enabaled on AMP pages. I already removed these stuff from blog.

    If you noticed there are nothing related to the scripts but it sill showing error.

    Regarding onbeforeunload, In my whole project I didn’t use this function anywhere.

    Strange!!

    Thanks

    Forum: Plugins
    In reply to: [AMP] AMP Errors
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Hi James

    Here is the URL https://bit.ly/2MNCLYQ, We already using it in transitional mode.

    Thanks

    • This reply was modified 4 years, 5 months ago by Ashish Jangra.
    Forum: Plugins
    In reply to: [AMP] AMP Errors
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    overall these scripts are exist

    <script async custom-element=”amp-sidebar” src=”https://cdn.ampproject.org/v0/amp-sidebar-0.1.js”></script&gt;
    <script async custom-element=”amp-inputmask” src=”https://cdn.ampproject.org/v0/amp-inputmask-0.1.js”></script&gt;
    <script async custom-element=”amp-fit-text” src=”https://cdn.ampproject.org/v0/amp-fit-text-0.1.js”></script&gt;
    <!– AMP Analytics –><script async custom-element=”amp-analytics” src=”https://cdn.ampproject.org/v0/amp-analytics-0.1.js”></script&gt;

    Forum: Fixing WordPress
    In reply to: Pass URL POST Fix
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Yes I have already tried with this but the problem is sometime i need this fixed slug sometime I need sometime i didn’t not

    I mean whenever a page have form, after submission it will redirect to thank-you page .. and thank-you page will be same page where they submitted the from only difference will be like .. it will have thank-you at the end of the url.

    Forum: Plugins
    In reply to: [AMP] Non Amp URL
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    I mean on amp blog detail page, we have internal links like our products etc so all those link have ?amp in at the end of their url. so when ever someone click on the link that takes you the target link with ?amp. now as we don’t enabled amp on our product page or any pages so it redirects you on non-amp page.

    So for that we have to pass non-amphtml rel in the link to avoid this, but we have 2k blog posts and have lots of internal link will be difficult to add manually.

    We have already added a filter on the_content to add rel attribute to the whole content but its not working.

    I hope this clears now.

    Forum: Plugins
    In reply to: [AMP] Non Amp URL
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    How can we exclude all the links which is not belongs to blog under the blog content. for example, in blog we have some product page link so by default ?amp is added to the url but we don want as it creates redirect loops.

    Forum: Plugins
    In reply to: [AMP] Non Amp URL
    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Hi

    Thanks for yous help, this fixed my error.

    In our wordpress site we have a static html page on our root directory so that can be access through site url like

    abc.com/static-page

    We have index.htm in static-page directory.

    So problem is amp is enabled on pages so this page also enabled for AMP view. But we don’t want to enable amp view for these static page. Can’t we add any meta tag for this kind of static pages.

    Thanks

    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Hi @jamesosborne

    Yes the same issue with Neve theme which is AMP compatible. As this seems when your blog page is not your landing page in that case AMP Didn’t work on blog home page.I

    I am not showing blog listing on other page.

    In supported template Except Pages, Media and Guest Posts everything is checked.

    I did a quick fix as I have checked Pages and skipped on all pages except blog page. As my blog page ID is 30 so I have skipped from all other pages. I don’t know how much its a reliable solution.

    add_filter( ‘amp_skip_post’, function( $skip, $post ) {
    if ( is_page() && $post != 30 ) {
    $skip = true;
    }
    return $skip;
    }, 10, 2 );

    Thanks

    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    Hi, Apologies for late reply. we are sorted with all validation and CSS stuff which we discussed. Only 1 issue where i need your help

    AMP is validated on Archive/Tag/Author/Category/Single page.

    Only problem is Blog Home Page.

    In our case Blog Home page is inner page which is (https://bit.ly/320eNAp). We have created a page and set as Posts page (Blog) From Settings >> Reading >> Posts Page >> Blog Selected.

    Please let me know how can we enable AMP of blog page.

    Thanks

    Thread Starter Ashish Jangra

    (@ashishjangra-1)

    I think I Figure this out. Thanks for your support.

Viewing 15 replies - 1 through 15 (of 40 total)