Hi Orange,
How are you adding the “GCLID” parameters to the links in the first place?
Regards,
Tom
Thread Starter
Orange
(@leegrant)
Hi Tom,
I’m currently using this plugin https://wordpress.org/plugins/handl-utm-grabber/
Thank you
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
Thread Starter
Orange
(@leegrant)
Brilliant, thank you very much for your help.
Thread Starter
Orange
(@leegrant)
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
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