Support » Plugin: Max Mega Menu » GCLID issue

  • Hi there,

    I’m having some issues with the plugin in that if a user navigates using the main menu with the mega menu enables, this stripe the GCLID params form the url, so we’re not able to track anything. If I disable the plugin, or use the footer menu the urls work correctly with the gclid params appended. Do you guys know of a solution to this?

    Thank you

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Orange,

    How are you adding the “GCLID” parameters to the links in the first place?

    Regards,
    Tom

    Hi Tom,

    I’m currently using this plugin https://wordpress.org/plugins/handl-utm-grabber/

    Thank you

    Plugin Author megamenu

    (@megamenu)

    Hi Orange,

    Thanks.

    I’ve taken a look at that plugins code and I think it needs a small update to work with MMM.

    In the main plugin php file you should find this line:

    add_filter('nav_menu_link_attributes', 'handl_utm_nav_menu_link_attributes', 10 ,3);

    Just below that, you can add:

    add_filter('megamenu_nav_menu_link_attributes', 'handl_utm_nav_menu_link_attributes', 10 ,3);

    It looks like that plugin is still being updated regularly, so please feel free to pass this info on to the plugin author to see if they’ll add support directly to it.

    Regards,
    Tom

    Brilliant, thank you very much for your help.

    Hi there,

    Sorry jumped the gun slightly! Works great for top level nav items, but not for hard links added via custom html in the mega menu, I don’t suppose there is another filter for this?

    Thank you

    Plugin Author megamenu

    (@megamenu)

    Hi Orange,

    Not that I can see sorry.

    If you’re using a text widget to add in those hard coded links, then I guess the plugin would need to filter those links within all text widgets. I think the best person to ask would be the author of the plugin for this one.

    Regards,
    Tom

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘GCLID issue’ is closed to new replies.