Problem Adding Google Analytics Script To Decora Template - Question | JoomShaper

Problem Adding Google Analytics Script To Decora Template

AC

Alexandre Carol

Template 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

0
1 Answers
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 1 year ago #176531

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.

0