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

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

Here is a code snapshot:


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.

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.

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

@adamhholmes, thank you for your reply.

I would love to ‘just delete’ it. :slight_smile:

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.

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

Thank you @nocodeventure,

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

Thanks
MK

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.

Thanks @adamhholmes.

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

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).

2 Likes

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

I have added manually GA code.

Happy bubbling. Michal

1 Like

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

Thanks!

@haryanto.alvin,

not sure whether correct, but definitely viable for me.

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