1. edwinblum
  2. Themis
  3. Friday, 24 January 2020
Google tag-manager code inserted in "Custom Code - Before <\head>" is visible to visitors. Don't really want that ;)
Attachments (1)
Accepted Answer
Accepted Answer Pending Moderation
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. more than a month ago
  2. Themis
  3. # Permalink
Responses (5)
Accepted Answer Pending Moderation
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
  1. more than a month ago
  2. Themis
  3. # 1
Accepted Answer Pending Moderation
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 -->
  1. more than a month ago
  2. Themis
  3. # 2
Accepted Answer Pending Moderation
Hi,
Your opening script tag has a hyphen, maybe that is the reason behind the inconsistency!

Regards
  1. more than a month ago
  2. Themis
  3. # 3
Accepted Answer Pending Moderation
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!
  1. more than a month ago
  2. Themis
  3. # 4


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


This forum is archived

This forum has been archived. Please use JoomShaper official support system.