AdWords
2K members online now
2K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

Google Tag Assistant Error - Missing "noscript" tag

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭
've read the FAQs and searched the help center. 
 
Hello people I have been trying to implement a conversion tracker on Google adwords for mobile calls triggered by onclick.
 
I have copied the code exactly from the adwords interface and pasted it in between the body tags.
 
I then installed Tag Assistant to verify the tags/snippets for me and it tells me that that there is a critical error and that there is a missing noscript tag. Note that in the code provided by Google adwords there were no "noscript" tags in the code at all so I added my own where i thought they should be but still i get the error.
 
I added a noscript tag at the beginning of the entire script and then the end in a second attempt to get rid of the error and that did get rid of the error but now tag assistant only finds 1 tag (google analytics) and not the conversion tracking tag so i presume that way is not correct either.
 
The code is now on the index page of   http://bit.ly/1f47ohF  exactly as below and tag assistant says critical error missing noscript tag
 
Any ideas please? Thankyou
<script type="text/javascript">
  /* <![CDATA[ */
  goog_snippet_vars = function() {
    var w = window;
    w.google_conversion_id = 1004545168;
    w.google_conversion_label = "M6qPCOjU8QcQkMmA3wM";
    w.google_conversion_value = 0;
    w.google_remarketing_only = false;
  }
  // DO NOT CHANGE THE CODE BELOW.
  goog_report_conversion = function(url) {
    goog_snippet_vars();
    window.google_conversion_format = "3";
    window.google_is_call = true;
    var opt = new Object();
    opt.onload_callback = function() {
    if (typeof(url) != 'undefined') {
      window.location = url;
    }
  }
  var conv_handler = window['google_trackConversion'];
  if (typeof(conv_handler) == 'function') {
    conv_handler(opt);
  }
}
/* ]]> */
</script>
<noscript>
<script type="text/javascript"
  src="//www.googleadservices.com/pagead/conversion_async.js">
</script>
</noscript>

 

 

1 Expert replyverified_user

Re: Google Tag Assistant Error - Missing "noscript" tag

Top Contributor Alumni
# 2
Top Contributor Alumni
Hi Dean,
So you're trying to count users who click your call button on mobile devices?
Do you currently have mobile click to call extensions to your AdWords Campaigns? If not, I suggest setting this up and then you can count these as conversions.
https://www.google.com/ads/innovations/ctc.html
http://adwords.blogspot.com/2013/11/say-hello-to-calls-as-conversions-in.html
This can help you track calls directly from your Paid Search Ads.

For on site behavior, I'm not a coder, but I don't think what you're trying to do is possible with AdWords Conversion Tracking. AdWords Conversion Tracking works when a page loads, not on-click. If you want to track on-click actions, you may consider Google Analytics Event Tracking.
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
Then, you can import Events into AdWords as Conversions.
https://support.google.com/analytics/answer/1034306?hl=en

Re: Google Tag Assistant Error - Missing "noscript" tag

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hello Vkore thanks for your reply,

I have already set up a conversion in adwords using the call-to-site feature in tools/conversions.

I have also included the onclick code and the conversion snippet to the html provided in the adwords documentation here >

https://support.google.com/adwords/answer/1722054?hl=en

My problem is the code provided in that documentation is still unverified in the conversion table in adwords no doubt due to the missing noscript tag error displayed in the Google tag assistant.

The code on the site is the same as code in documentation so do no know why Googles own tool says its wrong. I Have followed the documentation, specifically the part (track conversions on a mobile site with phone number)

So i guess the answer im looking for is why does google tag assistant say there is a missing noscript tag and what is the solution.

Re: Google Tag Assistant Error - Missing "noscript" tag

Top Contributor Alumni
# 4
Top Contributor Alumni
Hi Dean,
Thanks for the clarification and follow-up. Apologies, I've never implemented this kind of racking before, but after reading up on it, it seems that you did it correctly. Can you try not using Tag Assistant and see if you still get the error?

I did find a Forum for Tag Assistant - https://plus.google.com/u/0/communities/105448214237192581344

You may find some luck putting your question there.

Re: Google Tag Assistant Error - Missing "noscript" tag

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Okay thanks Vkore I have submitted the same question to the Tag assistant community now

https://plus.google.com/113466659428137949647/posts/Cnm9FiQ2jGE

Re: Google Tag Assistant Error - Missing "noscript" tag

Top Contributor
# 6
Top Contributor

Hi Dean,

That code is not correctly formed. You have the noscript tags surrounding the script tag that loads the js file that records the conversion. At best, it's confusing. At worst, no conversions will be recorded.

The noscript tag does not necessarily need to be adjacent to the script tags for the same function, but you can't nest script tags inside the noscript tags. Usuallly, the noscript contains an image tag that accomplishes recording of the conversion without using Javascript. I apologize, I'm not up-to-date on the asynch version of conversion tracking, but try something like this instead:


<script type="text/javascript">
  /* <![CDATA[ */
  goog_snippet_vars = function() {
    var w = window;
    w.google_conversion_id = 1004545168;
    w.google_conversion_label = "M6qPCOjU8QcQkMmA3wM";
    w.google_conversion_value = 0;
    w.google_remarketing_only = false;
  }
  // DO NOT CHANGE THE CODE BELOW.
  goog_report_conversion = function(url) {
    goog_snippet_vars();
    window.google_conversion_format = "3";
    window.google_is_call = true;
    var opt = new Object();
    opt.onload_callback = function() {
    if (typeof(url) != 'undefined') {
      window.location = url;
    }
  }
  var conv_handler = window['google_trackConversion'];
  if (typeof(conv_handler) == 'function') {
    conv_handler(opt);
  }
}
/* ]]> */
</script>
<script type="text/javascript"
  src="//www.googleadservices.com/pagead/conversion_async.js">
</script>
<img height="1" width="1" border="0" src="https://www.googleadservices.com/pagead/conversion/1004545168/?value=0&labelM6qPCOjU8QcQkMmA3wM&scri...
<noscript>

</noscript>

That should take are of the problem.

 

Best of Luck!

 

Pete

petebardo -- Deadhead doing AdWords

Re: Google Tag Assistant Error - Missing "noscript" tag

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭
Hello Pete thanks for your reply, i replaced the code with your version and get the same error ie missing no script tag ...

bummer Smiley Sad its baffling!

thanks though Pete

Re: Google Tag Assistant Error - Missing "noscript" tag

Top Contributor
# 8
Top Contributor

Sorry about that, Dean. A little error in what I posted. The img tag needs to be inside the noscript block. Try this:

 

<script type="text/javascript">
  /* <![CDATA[ */
  goog_snippet_vars = function() {
    var w = window;
    w.google_conversion_id = 1004545168;
    w.google_conversion_label = "M6qPCOjU8QcQkMmA3wM";
    w.google_conversion_value = 0;
    w.google_remarketing_only = false;
  }
  // DO NOT CHANGE THE CODE BELOW.
  goog_report_conversion = function(url) {
    goog_snippet_vars();
    window.google_conversion_format = "3";
    window.google_is_call = true;
    var opt = new Object();
    opt.onload_callback = function() {
    if (typeof(url) != 'undefined') {
      window.location = url;
    }
  }
  var conv_handler = window['google_trackConversion'];
  if (typeof(conv_handler) == 'function') {
    conv_handler(opt);
  }
}
/* ]]> */
</script>
<script type="text/javascript"
  src="//www.googleadservices.com/pagead/conversion_async.js">
</script>
<noscript>
<img height="1" width="1" border="0" src="https://www.google.com/ads/conversion/1004545168/?value=0&labelM6qPCOjU8QcQkMmA3wM=&script=0"/>
</noscript>

petebardo -- Deadhead doing AdWords