How to insert the from code to the website with the help of Google Tag Manager?

If you are using Google Tag Manager, you can add the code with the help of it. Use it in the following cases:

  1. You want to remove the scripts associated with tracking and marketing and keep them together.
  2. You do not have access to the site's source code.

In order to insert the code for subscribtion form using GTM, create the tag "Custom HTML tag".

You should also replace info in'insert here your id value' by the code that you generated earlier:

Here is the code to insert into the GTM tag:


     var head=document.getElementsByTagName('head')[0];

     var script=document.createElement('script');


     script.src='//';'insert here your id value'



Other useful articles

Popular in Our Blog

User Rating: 4 / 5 (6)

Rate this article about "How to insert the form code to the website with the help of Google Tag Manager"

Try SendPulse today for free