Okay
  Public Ticket #3505165
PHP is NOT allowed in your code (disabled by your theme or a plugin)
Closed

Comments

  • Daniel started the conversation

    Hello,

    I've been trying to install Google Tag Manager to be able to use Google Analytics as well as Google Search Console. However, whenever I go to https://tagassistant.google.com/, it always shows that No tags found and Google Analytics does not show any visitors when I enter my website.

    I am currently using the plugin https://www.satollo.net/plugins/header-footer to insert the Google Tag Manager into the <head> and <body> of my page. After inserting the Google Tag Manager and saving the changes, it shows me the notification 'PHP is NOT allowed in your code (disabled by your theme or a plugin)'

    Is the Salient theme prevent the 'head and footer' plugin from inserting the Google Tag Manager? And is there anything I can do to prevent that?

    Attached files:  PHP is NOT allowed in your code.jpg

  •  8,939
    Tahir replied

    Hey Daniel ,

    Do you have a Security Plugin installed as Salient does not have such restriction code in it ?. 

    Also you can add the Google JS code in the Salient Theme Options panel -> General Settings -> CSS/Script related Tab.

    Thanks.


    ThemeNectar Support Team