# Use of custom cookies to hide focus items

**URL:** <https://forum.mautic.org/t/use-of-custom-cookies-to-hide-focus-items/24409>\
**Category:** Product Support\
**Created:** [June 8, 2022, 6:52pm UTC](https://forum.mautic.org/t/use-of-custom-cookies-to-hide-focus-items/24409 "2022-06-08T18:52:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gurnhack](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gurnhack/32/7166_2.png) [@gurnhack](https://forum.mautic.org/u/gurnhack)\
**Post date:** [June 8, 2022, 6:52pm UTC](https://forum.mautic.org/t/use-of-custom-cookies-to-hide-focus-items/24409/1 "2022-06-08T18:52:00Z")

</div>

Hi,  
We use Memberstack as a means for people to sign up and support our local news website (although we are looking to change to Memberpress (our site runs on Wordpress).

We use focus items for newsletter sign-up, but I don’t want this appearing for users signed in via Memberstack. The cookie Memberstack uses is \_\_ms

Is there anyway to tell Mautic do not display a focus item if this cookie is present?

PS Absolutely love what Mautic does so a huge thank you to all that help develop it.

---

<div class="post-metadata">

**Author:** ![nikolar](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nikolar/32/7604_2.png) [@nikolar](https://forum.mautic.org/u/nikolar)\
**Post date:** [June 9, 2022, 7:40am UTC](https://forum.mautic.org/t/use-of-custom-cookies-to-hide-focus-items/24409/2 "2022-06-09T07:40:04Z")

</div>

Hi,

Since a focus item is basically a piece of script that you put on your website, maybe you could create a function where you check whether the cookie is present and based on that append or remove the script for the focus item.

Regards,  
Nikola

---

<div class="post-metadata">

**Author:** ![gurnhack](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gurnhack/32/7166_2.png) [@gurnhack](https://forum.mautic.org/u/gurnhack)\
**Post date:** [June 9, 2022, 9:42am UTC](https://forum.mautic.org/t/use-of-custom-cookies-to-hide-focus-items/24409/3 "2022-06-09T09:42:08Z")

</div>

Thank you. I’m a non-tech person learning to code. A former colleague set up Mautic for us and still helps where he can. He set up a script which blocked Google Adsense for logged in members and your answer reminded me of that. I adapted the script to exclude the Mautic focus item script.

The reason I looked at the solution from a cookie point of view was that pop-up maker (which we previously used) had that option.
