SOLVED

GTM not working on secure marketo LP's

Go to solution
Justine_Barthol
Level 2

Hi - we have secure marketo landing pages (https) that we added GTM to in order to track pageviews and conversion buttons through floodlight tags with our ad agency. The GTM code is hard-coded on the marketo page and I am getting a page error when testing that says "scripts from unauthenticated sources" and also the two script (screenshot attached) are throwing errors. Any ideas on how to fix this?? Thanks!

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

OK, nothing to do with secure/insecure.

The GTM embed version you're using must be placed just inside the opening <body>. It depends on the body already existing in the DOM.

View solution in original post

4 REPLIES 4
Justine_Barthol
Level 2
SanfordWhiteman
Level 10 - Community Moderator

OK, nothing to do with secure/insecure.

The GTM embed version you're using must be placed just inside the opening <body>. It depends on the body already existing in the DOM.

Justine_Barthol
Level 2

Thank you so much! It is working now

SanfordWhiteman
Level 10 - Community Moderator

Pls remove the attachment and paste the image inline. Not all Community users can see attachments, making them very confusing.

You must supply your URL.