• Resolved windslegend

    (@windslegend)


    Hello

    I have the Astra theme installed and the UTM parameters are passed to all pages without problem but when a client clicks on the “RESERVAR” header button (desktop version) the parameters are not passed to the “/reservas” page.

    Do you know how I can solve it?

    Regards

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Haktan Suren

    (@haktansuren)

    Hi @windslegend

    2 different ways to accomplish….

    1. If you are coding savy

    We have a global variable that holds all the UTM variables (handl_utm), you can parse that and pass it all the links client side

    <script>
    const utmString = new URLSearchParams(handl_utm).toString();
    document.querySelectorAll("a.menu-link").forEach(link => {
    const url = new URL(link.href);
    url.search += (url.search ? '&' : '') + utmString;
    link.href = url.toString();
    });
    <script>

    2. Upgrade to V3 where we already handle this and more out of the box.

Viewing 1 replies (of 1 total)
  • The topic ‘UTM parameters does not works with Astra Theme header button’ is closed to new replies.