Remember me

Site Settings Scripts

1 year 1 month ago #1

  • Dave's Avatar
  • Dave
  • Posts: 1420
Hello, could you please add two body scripts.
1. Opening body tag
2. Closing body tag

I often find that some scripts need to be in one of two places. I have to pay for plugins to implement this correctly. E.g. Google tag manager body tag needs to be at the top of the body. If we had two options I could have less 3rd party plugins installed. Always a good thing.

Much appreciated.

1 year 1 month ago #2

  • Qbik's Avatar
  • Qbik
  • Posts: 728
+1

1 year 1 month ago #3

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Hello,

Thank you for your suggestion,
we will consider it

Regards,
Vyacheslav, Balbooa.com

1 year 1 month ago #4

  • G.'s Avatar
  • G.
  • Posts: 510
+1

1 year 1 month ago #5

  • Dave's Avatar
  • Dave
  • Posts: 1420
Do you have a way I can add this to the top of the body tag now? The plugin I was using is not J4 compatible and I upgraded the site and converted it to Gridbox.

I could really use this option asap.

1 year 1 month ago #6

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Only header and body script available at the moment (in site settings)

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 1 month ago #7

  • Dave's Avatar
  • Dave
  • Posts: 1420
Is there no way to hack this to make the body code to be on top vs the bottom? It's pretty common to need code inserted there. It would be pretty useful.

1 year 1 month ago #8

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
At the moment there is no such possibility.

1 year 1 month ago #9

  • Dave's Avatar
  • Dave
  • Posts: 1420
Hello, I bought a plugin, and it is not working on Gridbox pages. It works on Joomla pages with the Gridbox template like a blog and article page.

This is the ONLY plugin for Joomla that has GTM for Joomla 4. If you cannot help me add this manually I must get this to work. The developer is not responding. I contacted him a couple of days ago about this plugin but had to buy it today because you said it was impossible to do with your system.

I am supposed to be launching this site in two days and now am stuck on this part.

Here is a page it works on:
daveb135.sg-host.com/blog

Here is a page is does not work on:
daveb135.sg-host.com/counseling-services

What can be done to make this work? Why would your page builder menu item not work with this plugin?

Thank you,
Dave

1 year 1 month ago #10

  • Artem's Avatar
  • Artem
  • Posts: 11342
Hi there

I will ask in another way - why does this plugin doesn't work with our page builder?

Regarding your question
GTM doesn't work if not placed directly after <body>? I don't think so! It will work! so add it to the body script and that's all.


Regards,
Artem, Balbooa.com

1 year 1 month ago #11

  • Dave's Avatar
  • Dave
  • Posts: 1420
Hi Artem, I asked my SEO extension to add it, and he did already. The second snippet has to be on top of the body.

I appreciate your response.

Thank you,
Dave

1 year 2 weeks ago #12

  • Tom's Avatar
  • Tom
  • Posts: 302
I'm joining the request - the code at the top of the body :)

1 year 1 week ago #13

  • Tom's Avatar
  • Tom
  • Posts: 302
Hello,
another client that requests a google code after the opening body tag. You can do it manually, but you must always overwrite the index.php file after updating :(
Is there a chance to make it easier and build a place where you can put the code that will be right after the body tag?

Tom :)

10 months 4 weeks ago #14

  • Tom's Avatar
  • Tom
  • Posts: 302
Hello,
I'm back with the topic of pasting the code after the body tag.
I was looking for a solution on how to get around it, because it seemed to me that the problem I encountered was the wrong pasting of the code by me in the index.php file in the template.

I found a very nice plugin that allows you to easily insert a google tag in the right place. (www.minijoomla.org/extensions/google/google-tag-manager-j4)

After pasting the code in the source of the page, something like this should appear after the body tag:

<!-- Google Tag Manager iframe V.3.1.0 from Minion -->
<noscript><iframe src="www.googletagmanager.com/ns.html?id=GTM-***" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager iframe -->

Unfortunately, it cuts out the right piece of code and we have:
<!-- Google Tag Manager iframe V.3.1.0 from Minion -->

<!-- End Google Tag Manager iframe -->

It turned out that disabling photo compression in the gridbox options solves the problem.
Is there any way around this?

I will add: it doesn't matter if I use a plugin or put the code directly into the template file - it always cuts out.

10 months 4 weeks ago #15

  • Artem's Avatar
  • Artem
  • Posts: 11342
Tom,

Code doesn't work if you paste it to "Body Scripts"?



Regards,
Artem, Balbooa.com

10 months 4 weeks ago #16

  • Tom's Avatar
  • Tom
  • Posts: 302
By typing in the indicated place, it also cuts the code. On the other page, it works fine :(

10 months 4 weeks ago #17

  • Artem's Avatar
  • Artem
  • Posts: 11342
Yes, you are right. The issue is related to the option "Lazy Load".

You can send us Joomla admin access and we can fix it within the day, or wait until the next update.
Access details: support.balbooa.com/contact-us

Regards,
Artem, Balbooa.com

10 months 4 weeks ago #18

  • Tom's Avatar
  • Tom
  • Posts: 302
Artem,
I'll wait for the update.
Thanks.
Tom

10 months 4 weeks ago #19

  • Artem's Avatar
  • Artem
  • Posts: 11342
Okay. Thank you for informing us!

Regards,
Artem, Balbooa.com
Powered by Kunena Forum