Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 17h 37m 36s
Claim 50% off
Awaiting an answer Templates

Problem adding google analytics script to Decora template

Asked by Alexandre Carol 1 year ago Last activity 1 year ago

Hello,
I'm trying to add my google analytics script to "Decora template", but I'm unable to do it.

My specifications:

  • Template version: Decora 2.0.1
  • Joomla 5.1.3
  • Php: 8.3
  • MariaDB: 10.11

I'm gonna explain how I'm trying to do it:

  • Acces to Joomla Administrator
  • Acces to System -> template styles -> Decora - default -> Template options (Now I'm on Helix Ultimate 2.1.1)
  • Acces to Custom code -> before head

In this text area, I copy my google analytics script:
..
Google Analytics Script
..

  • I save the changes and I get an error:
    Error
    Error: undefined
    Can you tell me what's happening?

Thank you

1 reply

Asfakur Rahman Saikat Staff

Hi Alexandre Carol,

Thank you for reaching out, and I am sorry for any inconvenience.

Everything seems to be working fine on our end. However, please try the following if before head not works:

Ensure that the code is placed correctly in the Before </body> section.
Screenshot: https://prnt.sc/WOc0G-LdUkqR

If the issue persists, you can download the free Phoca Site plugin. This plugin allows you to add custom code to the <head> section and Google Analytics (UA ID).

Let me know if you need any further assistance.

Best regards.

Log in to reply.