Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Juan Fortes

    (@juanmafortes)

    Hello,

    Thanks for your reply.

    Theme is GeneratePress, but I also switched in my staging site to Twenty Twenty One and the issue was still there. I also disabled ALL plugins except WooCommerce and WPML. If I deactivate RankMath, product pages work (and URL structure changes).

    If I activate rankmath, most product pages have this redirection problem. It is weird tho that some do work (the ones with only one category like in your screencast). The ones throwing an error are 2-3 categories deep. domain/en/cat1/cat2/cat3/product

    However, i do not have latest woocommerce version. I am using 5.9.0. And I have WordPress 5.8.3, sorry for skipping this in my original post.

    Additional info:
    – I do not use WPML SEO extension. I tried installing it and it makes no difference anyway.
    – Latest edit on the .htaccess file was ~12 days ago, so no plugin is interfering there making new redirections on the go or anything similar.

    • This reply was modified 2 years, 10 months ago by Juan Fortes.

    No, it is not.

    Thread Starter Juan Fortes

    (@juanmafortes)

    Got it, will have to customize it giving a class and using CSS then.

    Thanks and regards

    Thread Starter Juan Fortes

    (@juanmafortes)

    Hi Tom,

    Thanks for the quick response. I tried that, but it just changes h4 for h3, which is “worse” considering I want to remove h tags from the menu for SEO reasons.

    I tried changing <h3> and </h3> for <span> and </span>, but formatting is lost (the format is given in the plugin settings as you know), which is weird.

    Does it mean it stops working if I use span tag? Should I add a class with the spam and format it with CSS? this will probably work, but looks like duplicate work if CSS is already given in the plugin settings.

    Thank you!

    • This reply was modified 4 years, 2 months ago by Juan Fortes.

    Hi Thomas,

    Thank you very much for your answer.

    I still don’t know if I completely underestand your answer though…I may be doing things bad in GTM as I haven’t used it before, but… why are events not being tracked when I put the code snippet directly in the header? There shouldn’t be any triggers or weird stuff without GTM.

    I have read your article, and also did the first lesson on th ecourse, but I start to loose myself in the triggers and “variables” stuff. I have some coding knowledge, but I am a young marketer doing a website for my parents and I dont even understand the definitions, that moreover, and in English, which isn’t my mother language.

    Please, correct me if I am wrong/anser the following:

    1. I have to run this code in ALL pages of my website, not only in the landing pages I want to track. Triggered > “Page view (all pages)”. (This code will sent nothing to GA, but what the hell is it for then).

    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
        ga('send', 'event', 'Contact Form', 'submit');
    }, false );
    </script>

    2. Using this method, I will be able to differentiate from different form submissions and build different objectives in Analytics.

    3. I created “gtm4wp.contactForm7Submitted” trigger, but would it work (and would it do it better or worse) if I use…

    As I am writing this I notice that this gets harder and harder and even more complex as I go further. I think I will just unistall GTM, put JS analytics code in my header and try to code the stuff in my header too to get event traking. GTM is too complex and adds an extra difficulty layer to every simple and single task. I’m not a pro coder, just want to get things done, and 2 weeks lost reading complex articles and answers feels like too much wasted time. I don’t feel like putting this huge effort and time in mastering a new tool just for analytics and event tranking ??

    Thank you very much and sorry, i found this so frustrating. Damn CF7 deprecating useful and simple ways to do things…

    Hi Thromas!

    I’m getting a bit really mad trying to track contact form 7 submissions in Analytics. Started trying to track Contact Forms 7 DOM event: “wpcf7mailsent” and gave up. Now I noticed your plugin (which I also had installed for GTM) integrates with CF7. However, I am facing the same issue, I can’t track events and don’t get how to control “gtm4wp.contactForm7Submitted”.

    According to CF7’s documentation, I assumed that events should appear automaticly in Analytics just by adding this to my landing page:

    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
        ga('send', 'event', 'Contact Form', 'submit');
    }, false );
    </script>

    But I guess they are not.

    Having read your answer, in my GTM, I created a Trigger>Other – Custom Event > Event name: gtm4wp.contactForm7Submitted but what tag should this fire? and…why create a tag?

    I feel like I am not getting the mechanics on this…will this allow me differentiate form submissions in order to make different Adwords campaigns?

    Thank you very much,

Viewing 6 replies - 1 through 6 (of 6 total)