Wierd function code appears at bottom of site after installing GTM
-
When I installed the Head & Footer code and added css styles to individual pages, everything works fine. When I add the Google Tag Manager code to the head section of the site-wide page, and then click on any external link that is set to target=”_blank”, I see a code at the bottom of the page. It starts with “function() { var filepath?…” like it hasn’t been wrapped in <script> tags. It only happens when I click on an external link. When I remove the target=”_blank” it doesn’t happen. I’ve tried changing themes, deactivating all plugins and then reactivating only the header footer plugin thinking maybe another plugin is creating this issue. I’ve also tried adding the GTM code to another GTM management plugin. Nothing seems to fix this issue except to make external links open in a same window which is not ideal. It seems like the issue appears with the combination of the GTM code (no matter where it is added) and opening an external link. You can see this happening when you go to the site home page I indicated and in the blue “Get Started Online” row, click on the last link in the “Choose an Option” dropdown. That will open a new window. Close it and then scroll down the home page and you will see the code. Anyone have any ideas?
The page I need help with: [log in to see the link]
- The topic ‘Wierd function code appears at bottom of site after installing GTM’ is closed to new replies.