# How to remove }); from the code in the head? (Newbee question)

**URL:** <https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982>\
**Category:** Plugins\
**Created:** [January 5, 2021, 9:15am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982 "2021-01-05T09:15:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![michal.kummel](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@michal.kummel](https://forum.bubble.io/u/michal.kummel)\
**Post date:** [January 5, 2021, 9:15am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/1 "2021-01-05T09:15:20Z")

</div>

Hi awesome bubblers,

this is my first question as a newbee here in the forum.

Since I have uninstalled Google Analytics plugin and installed Google analytics V4 Plugin all pages started to show ‘});’ sign combination on page load.

For the users, it looks like a bug.

So far I have not been able to get rid of this and I run out of ideas how to fix it.

Could you please help me suggesting what else to do in order to remove ‘});’ from page load?

Thank you.  
Happy bubbling  
Michal

Website [actiwity.com](https://actiwity.com)

 ![});](https://us1.discourse-cdn.com/bubble/original/3X/9/a/9a7cf5085103df06d488ed577c8d8b79019870f3.png)

Here is a code snapshot:

 ![}); code](https://us1.discourse-cdn.com/bubble/original/3X/f/6/f6575f72f10e744e0b7aea7eb419669f02ba7b05.png)

* * *

UPDATE: If I uninstall the plugin Google Analytics V4 + Custom Events the issue stops. If I install it again, it starts again to show ‘});’ sign combination on page load. I have just shared it with the author of the plugin.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [January 5, 2021, 10:51am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/2 "2021-01-05T10:51:02Z")

</div>

I don’t know why the }); is there, it’s outside of any script tags so it appears to be an error in the code, so just delete it and you should be fine.

If you can’t access the code (as it’s a plugin), then it might be easier just to add the GA script yourself and not use the plugin.

---

<div class="post-metadata">

**Author:** ![nocodeventure](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodeventure/32/247164_2.png) [@nocodeventure](https://forum.bubble.io/u/nocodeventure)\
**Post date:** [January 5, 2021, 11:11am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/3 "2021-01-05T11:11:30Z")

</div>

Check your page html body. I think you have a typo there.

---

<div class="post-metadata">

**Author:** ![michal.kummel](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@michal.kummel](https://forum.bubble.io/u/michal.kummel)\
**Post date:** [January 5, 2021, 11:31am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/4 "2021-01-05T11:31:37Z")

</div>

@adamhholmes, thank you for your reply.

I would love to ‘just delete’ it. 🙂

I just do not know yet how to edit the code in the head section…

What I can edit in the head section is the e.g. the Page HTML Header, Page title, Title and Description for SEO and I can install and uninstall plugins.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/d/4d3909b4ff02fbe63c573c7417bc7869ec16b82e.png)

What I was hoping to find is a way to edit the code between in the head section ‘directly’. How can I do that?

Thanks  
Michal

---

<div class="post-metadata">

**Author:** ![michal.kummel](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@michal.kummel](https://forum.bubble.io/u/michal.kummel)\
**Post date:** [January 5, 2021, 11:35am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/5 "2021-01-05T11:35:40Z")

</div>

Thank you @nocodeventure,

See the screengrab in the reply to @adamhholmes above - are these the fields where such typo could be?

Thanks  
MK

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [January 5, 2021, 12:01pm UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/6 "2021-01-05T12:01:27Z")

</div>

The extra }); seems to be appearing on every page, so it’s probably in your global header for your whole app.

Check on the SEO/metatags tab in your app settings and see what’s in the ‘Spript/metatags in header’ box.

---

<div class="post-metadata">

**Author:** ![michal.kummel](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@michal.kummel](https://forum.bubble.io/u/michal.kummel)\
**Post date:** [January 5, 2021, 12:03pm UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/7 "2021-01-05T12:03:04Z")

</div>

Thanks @adamhholmes.

Meanwhile I have tested installing and uninstalling various plugins and found out the following…

> [@michal.kummel](#):
>
> UPDATE: If I uninstall the plugin Google Analytics V4 + Custom Events the issue stops. If I install it again, it starts again to show ‘});’ sign combination on page load. I have just shared it with the author of the plugin.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [January 5, 2021, 12:13pm UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/8 "2021-01-05T12:13:25Z")

</div>

Yep, I just tested it myself by installing the Google Analytics V4 + Custom Events plugin, and it’s an error in their code.

So there’s nothing you can do about that other that uninstall the plugin (until they’ve fixed it).

In the meantime there are other GA plugins you can use, although to be honest it’s probably just as easy to add your GA code yourself in your app global header (you just copy and paste it from GA).

---

<div class="post-metadata">

**Author:** ![michal.kummel](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@michal.kummel](https://forum.bubble.io/u/michal.kummel)\
**Post date:** [January 5, 2021, 12:22pm UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/9 "2021-01-05T12:22:22Z")

</div>

Thank you @adamhholmes for your time, effort and tips.

I have added manually GA code.

Happy bubbling. Michal

---

<div class="post-metadata">

**Author:** ![haryanto.alvin](https://avatars.discourse-cdn.com/v4/letter/h/71e660/32.png) [@haryanto.alvin](https://forum.bubble.io/u/haryanto.alvin)\
**Post date:** [January 7, 2021, 4:14am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/10 "2021-01-07T04:14:53Z")

</div>

Hi @michal.kummel @adamhholmes , is this the correct way of adding Google Analytics v4 Data Streams to Bubble app header?

Thanks!

 ![Google Analytics Annotated](https://us1.discourse-cdn.com/bubble/original/3X/8/c/8cf9898b0a760dd4109b0f0b9fd423c609eb8c2f.png)

---

<div class="post-metadata">

**Author:** ![michal.kummel](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@michal.kummel](https://forum.bubble.io/u/michal.kummel)\
**Post date:** [January 7, 2021, 8:32am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/11 "2021-01-07T08:32:32Z")

</div>

@haryanto.alvin,

not sure whether correct, but definitely viable for me.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/9/69e94b9effe5308b2302767be26be0e4e447892c.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [March 16, 2021, 9:43am UTC](https://forum.bubble.io/t/how-to-remove-from-the-code-in-the-head-newbee-question/128982/12 "2021-03-16T09:43:53Z")

</div>

Closed on March 16, 2021, 9:43am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
