Faraz
Faraz

Reputation: 1

How to insert HTML code via Tag Manager - non developer

I am not a developer so please bear with me. I am trying to install the Google Tag Manager plugin on my website that runs on Craft CRM.

The plugin is asking me to do two things:

Copy the code below and paste it into you layout as high as possible in the section of the page:

{{ craft.googleTagManager.headSection() }}

You must also paste this code immediately after the opening tag :

{{ craft.googleTagManager.bodySection() }}

I tried creating a Custom HTML in Google Tag Manager and I get the following error:

Unknown variable “ craft.googleTagManager.headSection() ” found in a tag. Edit the tag and remove the reference to the unknown variable.

Any help is really appreciated

Upvotes: 0

Views: 174

Answers (1)

XTOTHEL
XTOTHEL

Reputation: 5208

You are mistaken on the instructions. You need to copy and paste that code for craft CMS, not doing it in GTM.

Upvotes: 1

Related Questions