Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Themis code in head error

Featured Lock Resolved Issue
Google tag-manager code inserted in "Custom Code - Before <\head>" is visible to visitors. Don't really want that ;)

Attachments (1)

  • Themis_head.jpg
    Themis_head.jpg 111 KB

6 Answers

Pavel

3 weeks ago #Permalink
This usually occurs due to components such as RsFirewall or Admin Tools. Add your IP to the exceptions.
1.jpg
But the best way to insert a Google Tag Manager is the Google Tag Manager Plugin for Joomla 1.0.1

Attachments (1)

  • 1.jpg
    1.jpg 66.6 KB

Rashida Rahman - Staff

3 weeks ago #Permalink
Hi,
You have to put it within script tag if you want it as script.
This custom code requires you to put those code inside tags.

Best regards
Hi,
You have to put it within script tag if you want it as script.
This custom code requires you to put those code inside tags.

Best regards


Hi Rashida, I think it is inside tags. It is inserted like below:

<!-- Google Tag Manager -->
<s-cript>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TSZRXX7');</script>
<!-- End Google Tag Manager -->

Rashida Rahman - Staff

3 weeks ago #Permalink
Hi,
Your opening script tag has a hyphen, maybe that is the reason behind the inconsistency!

Regards
This usually occurs due to components such as RsFirewall or Admin Tools. Add your IP to the exceptions.
[attachment]1.jpg[/attachment]
But the best way to insert a Google Tag Manager is the Google Tag Manager Plugin for Joomla 1.0.1


Thanks Pavel! Adding the IP to RSfirewall blacklist did the trick!


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 117
Toufiq

Toufiq

Total Accepted Answers: 104
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 57
Ofi Khan

Ofi Khan

Total Accepted Answers: 53
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 35

121

Templates

314460

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us