badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

How do I add Google Tag Manager to head and body

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53118
    mail25
    Participant

    Can you tell me what is the best way to add google tag manager code to the head and the body without using a plug-in.

    #53131

    Hi mail25,

    The best way is to use plugin because while updating to new new version your customized code will not be lost. If you don’t like to use plugin then it needs code customization. We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and edit the code.

    http://codex.wordpress.org/Child_Themes

    Copy all files from header.php and add your code before </head> tag in child theme header.php. If you are unable to fix it then you need to hire a developer to fix it.

    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.