• Resolved fizzers

    (@fizzers)


    Hi there,

    Within the custom fields on a WooCommerce order, the value from mailchimp_woocommerce_landing_site is always incorrect (to pay by card the user visits the payment portal and is redirected back to our site after).

    Is there a way to exclude this to show the correct value or fix this issue in a different way?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Jordan Rich

    (@builtbyjordan)

    Thanks for reaching out.

    We do have a custom order Alteration Hook thay may be of help where one can use it to choose the landing site. If you have development skills or access to someone that can edit the Plugin Functions it may be a solution.

    https://github.com/mailchimp/mc-woocommerce/wiki/Custom-Order-Alteration-Hook

    Here is an example:

    /**
     * @param MailChimp_WooCommerce_Order $mc
     * @param WC_Order|WC_Order_Refund $woo
     * @return MailChimp_WooCommerce_Order
     */
    function mc_landing_site($mc, $woo) {
        // use either the Mailchimp order, or the Woocommerce order
        // figure out whoever this person is with custom logic
        $email = $mc->getCustomer()->getEmailAddress();
        // set the landing site
        $mc->setLandingSite('https://thesite.com/whatever');
        return $mc;
    }
    
    add_filter('mailchimp_filter_ecommerce_order', 'mc_landing_site', 10, 2);
    • This reply was modified 3 years, 1 month ago by Jordan Rich.
    Thread Starter fizzers

    (@fizzers)

    Hi @builtbyjordan,

    Perhaps I’m not understanding this feature correctly, but why would we want to explicitly choose the landing site. Shouldn’t this be set dynamically depending on where the user lands?

    Using an example from Google Analytics, you can add domains to a referral exclusion list so that these don’t interfere with the session journey (for example, user lands on homepage, is redirected to an offsite payment gateway as part of the purchase and then back to the website, but the payment gateway domain is effectively ignored, thus leaving the actual landing page i.e. homepage intact).

    Thanks

    • This reply was modified 3 years ago by fizzers.
    Plugin Author ryanhungate

    (@ryanhungate)

    @fizzers we understand this can be a little complicated but as of right now this can simply be altered with a custom hook.

    We try to allow store owners to do anything they wish for this landing site value. As you’ve pointed out, there have been numerous problems with the “true” referring site – and it’s just best to allow you to specify if you’re doing anything to track your customers ( marketing typically )… so if it’s not relevant to your store – maybe just blank it out for now as a fallback to remove it.

    Was there anything we could help with further on this though? More than happy to help.

    Thread Starter fizzers

    (@fizzers)

    Hi @ryanhungate,

    Thanks for your reply. Ideally, we’d like it to be set dynamically as we don’t actively run any campaigns with set landing pages. But it sounds like this is not currently possible?

    Plugin Author ryanhungate

    (@ryanhungate)

    @fizzers Sorry I missed this somehow! I think what you’re asking for is valid – and we will need to look into this one a bit deeper before we can actually recommend something or even provide a better default solution. There’s no guarantee on the timeline for this but we will send an update here as soon as it’s in the plans for a release. Stay tuned on this one ??

    Plugin Support khungate

    (@khungate)

    Hi @fizzers, we wanted to let you know that we’ve added a patch for the landing site value in our latest release (v2.6.2). Now, it should accurately reflect the first page visited by the customer. We appreciate the feedback, please let us know if you need anything else.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Mailchimp Woocommerce Landing Site fix’ is closed to new replies.