fbpx
Welcome, Guest
Username: Password: Remember me

TOPIC: Error Traking Code Google Analitycs

Error Traking Code Google Analitycs 1 year 1 month ago #26672

  • latino07
  • latino07's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
Hi:

Getting error when placing Google code at Tracking section:
Unexpected end tag (script) and other.

Also analitycs code is revealed at front-end. Using latest JD MedicX

Thanks.

Edfel
Attachments:
Last Edit: 1 year 1 month ago by latino07.
The administrator has disabled public write access.

Error Traking Code Google Analitycs 1 year 1 month ago #26673

  • dankra
  • dankra's Avatar
  • Offline
  • Premium Member
  • Posts: 144
  • Thank you received: 5
  • Karma: 1
I think it should look like this, with no hyphens in <s-cript>:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-XXXXXXXX-1');
</script>
Last Edit: 1 year 1 month ago by dankra.
The administrator has disabled public write access.

Error Traking Code Google Analitycs 1 year 1 month ago #26675

  • latino07
  • latino07's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
Hi:

The hyphen is getting there when I save the template. I tried with the code you provided. Tried with another user (no editor defined) same behavior. I am using PHP Version 7.4.13, Astroid 2.47., Joomla 3.9.23, Apache 2.4.46. Will try with a base template.

Thanks
Edfel
Last Edit: 1 year 1 month ago by latino07.
The administrator has disabled public write access.

Error Traking Code Google Analitycs 1 year 1 month ago #26706

  • chandandeep
  • chandandeep's Avatar
  • Offline
  • Administrator
  • Posts: 4614
  • Thank you received: 652
  • Karma: 116
Is the site working properly without tracking code?

If answer in Yes then please the site login details at This email address is being protected from spambots. You need JavaScript enabled to view it. with forum link.

I have tested with tracking code. No Error.

Thanks,
Chandan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.383 seconds
Cron Job Starts