You are viewing limited content. For full access, please sign in.

Question

Question

Adding google tag manager code to body section of a form

asked on December 5, 2019

We have a customer that would like to use Google Tag Manager and have been asked to insert this code immediately after the opening of the body tag.

How would we accomplish this??


<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-ABGHXZ"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

 

0 0

Replies

replied on August 11, 2020

Doug,

 Copy and paste the following code into the "CSS and JavaScript" section of the Form Designer. Save it and then preview the form using your browsers developer tool as it will show you the dynamically created HTML (regular view source won't).

$(document).ready(function() {
  $("body").prepend('<!-- Google Tag Manager (noscript) --><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-ABGHXZ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- End Google Tag Manager (noscript) -->');
});

Hope this helps!

Wesley Funderberg

0 0
replied on August 11, 2020

I will Test. Thank You!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.