Ability to add custom HTML to other places is needed (updated)

Back in September 2020, I posted the following idea.

A new user recently posted about the inability to add the Google Analytics script BEFORE the program’s generated Head content. It’s a valid complaint because right now, BSS only allows you to add custom HTML after that content.

Google specifically instructs that the G/A script be placed right after the opening <head> tag. Set up the Analytics global site tag - Analytics Help
(This is more of an issue on dynamic websites than static ones, but it’s still a valid concern, and I can’t see any harm in being able to put the code where we want.)

I’ve created the below mockup for a suggested way to solve the issue without a massive change to the BSS UI. Obviously, only one toggle switch could be selected at a time, since each would be displaying a different part of the code. I think this, or something like this, is now a necessity. There are other topics in the forum where people have requested the ability to add HTML to various places other than after the head content. @martin @gabby

1 Like

+1 whilst I can work around this post export, having the option to support this natively will save lots of time for sure.

Giving this another bump, since I’ve got clients asking for various Google code to be added to websites, and Google is now specifically requesting that their tracking tag be placed BEFORE the closing </head> tag on the pages, which we cannot do from within BSS.

1 Like

Giving this another bump


Could have sworn they added this is the last big update?

They added the ability to add custom HTML at the beginning or end of the head section. But we’ve never had the option to add HTML inside the body (except via custom code,) and there’s no way to add it before or after the HTML itself except after export (at least as far as I’m aware.)

I have a 10+ year old website builder that offers the ability to add custom HTML before or after the page HTML, as well as inside the head and inside the body. The only thing it lacked was the option to place the custom code at the beginning or end of the head or body content because 10 years ago that stuff wasn’t an issue.

A simple dialog box like this one, with a couple of switches to select “place before” or “place after” existing HTML is all that would have to be added.


Hmm my mistake I guess. I had assumed that this was it “Head Content can now be placed Before or After the system content.” That isn’t what you’re talking about?

EDIT: Never mind, I just checked the feature out and it’s just an inside the head locations feature so … ignore me again :stuck_out_tongue: