greenpeace / planet4

Built on top of Wordpress tech, Greenpeace Planet 4 powers digital platforms to engage with millions and win campaigns around the world.
https://planet4.greenpeace.org
Creative Commons Attribution Share Alike 4.0 International
66 stars 27 forks source link

PLANET-5514 UTM tracking codes on links get mangled #100

Closed planet-4 closed 3 years ago

planet-4 commented 3 years ago

Example page: https://www.greenpeace.org/slovenia/ Check links on 4 Icons columns

Inserting UTM tracking codes to specific links in the editor, like this: https://cee.donate.greenpeace.org/sl/campaigns?utm_source=greenpeace.org&utm_medium=referral&utm_campaign=CEE_SI_005_Donate&utm_term=P4visitors

But when saved, the GA links are added too (on all external domains), and the ampersand (&) characters for UTM are escaped, so they don't work: https://cee.donate.greenpeace.org/sl/campaigns?utm_source=greenpeace.org&_ga=2.112445248.53831806.1600863234-362712631.1600863234#038;utm_medium=referral&utm_campaign=CEE_SI_005_Donate&utm_term=P4visitors

Screenshots

Screenshot Screenshot

Reporter: mdovecar
Sections: Analytics

Potentially affected repositories: planet4-master-theme, planet4-plugin-gutenberg-blocks