?
Solved

noscript thowing an error on a js file

Posted on 2013-05-12
2
Medium Priority
?
234 Views
Last Modified: 2016-02-24
I have a code I got from google analytics to put on my site.
I want to put it in an external js file.
It has this at the begining  and it's throwing an error.
 <!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-7XRT"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager -->

How am I supposed this on a js file?
0
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Assisted Solution

by:Shaun Kline
Shaun Kline earned 1000 total points
ID: 39160310
The code is for an HTML file, or a file that generates HTML, such as ASP or ASP.NET. If you are using ASP.NET with a master page, add it there.
0
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 1000 total points
ID: 39160342
The code belongs outside of a js file.  It should be in your html.
0

Featured Post

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
One event, two days, a great line-up of speakers, and 48% female presence. Still have no idea what I’m talking about?
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question