# Tag Options via JS Tracking Code

**URL:** <https://forum.mautic.org/t/tag-options-via-js-tracking-code/31621>\
**Category:** Product Support\
**Created:** [April 10, 2024, 3:49pm UTC](https://forum.mautic.org/t/tag-options-via-js-tracking-code/31621 "2024-04-10T15:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![miamiman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/miamiman/32/1118_2.png) [@miamiman](https://forum.mautic.org/u/miamiman)\
**Post date:** [April 10, 2024, 3:49pm UTC](https://forum.mautic.org/t/tag-options-via-js-tracking-code/31621/1 "2024-04-10T15:49:08Z")

</div>

Would someone please confirm that with my JS tracking code set as:

> ```
> (function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
> w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
> m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
> })(window,document,'script','https://m.domain.com/mtc.js','mt');
> 
> mt('send', 'pageview', {'tags': 'zzz','lang-en',-'lang-es'});
> 
> ```

I will set contact tags as **zzz** and **lang-en** , while removing tag **lang-es**?

Is the above formated correctly?

Does the _minus code_ within or outside the single quotes?

Would appreciate any help.

---

<div class="post-metadata">

**Author:** ![kuzmanyy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kuzmanyy/32/390_2.png) [@kuzmanyy](https://forum.mautic.org/u/kuzmanyy)\
**Post date:** [April 11, 2024, 4:56am UTC](https://forum.mautic.org/t/tag-options-via-js-tracking-code/31621/2 "2024-04-11T04:56:21Z")

</div>

Based on docs:

[https://docs.mautic.org/en/5.x/contacts/manage\_contacts.html#tracking-of-custom-parameters](https://docs.mautic.org/en/5.x/contacts/manage_contacts.html#tracking-of-custom-parameters)

It should be something like:

` mt('send', 'pageview', {tags: 'zzz,lang-en,-lang-es'});`
