Add/Remove Tags from API

Hey guys, this is implemented? I couldn’t find it in API docs. Is it planned?

Hey guys, this is implemented? I couldn’t find it in API docs. Is it planned?

https://github.com/mautic/mautic/issues/3907

Hey Isan!

This link above works great. Just complementing the solution with a problem I had.

When passing tags trought the JS pixel we need to send them as a string like:

mt('send', 'pageview',{ tags:"beautiful" });

In this case, putting a minus sign in front of it like this

mt('send', 'pageview',{ tags:-"beautiful" });

Causes an error. (Same if the string was a variable).

But it works if you send it like this:

mt('send', 'pageview',{ tags:"-beautiful" });

Hope it helps!

1 Like

-implemented /EG-
https://developer.mautic.org/#tags
https://developer.mautic.org/#edit-contact