AdWords
5.8K members online now
5.8K 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

Adwords Conversion Pixel code paramters and noscript

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have a few adword accounts. The pixel code for all of them are the same, except of course the conversion ID and label.

 

On one site the code would be generated correctly, and on another site, the image would generate twice. One with extra paramters on the src URL, such as "random", "cv", "fst", "num", "url", "ref" and the img would be outside the noscript tag. The second img tag would remain in the noscript tags but the contents would be encoded. Why does this happen, why only on one site?

 

 

----

 

 

As another point, on the sites that do generate the pixel code correctly, the conversions aren't registering. I can't see anything different than the docs except that mine has single quotes as opposed to double quotes and that my javascript lines don't have line breaks between them (they do have semicolons). Would this make a difference? The syntax is valid JS. I can't seem to figure out why it wouldn't be registering.

2 Expert replyverified_user

Re: Adwords Conversion Pixel code paramters and noscript

Top Contributor
# 2
Top Contributor
Hi goingdev,

Does the site that doesn't work use a different CMS? Some of them do not allow adding javascript directly to the page content, you have to use a plugin of some sort.

Does the code render properly on the page?

The noscript image is only for browsers with script disabled. Is the script part setup to show the image?

If you care to share URL's, I can take a look and see I can tell what's going on.

Best of Luck!

Pete
petebardo -- Deadhead doing AdWords

31

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Here's how the code is being generated. Notice how there's 2 img tags, one with extra parameters and one with encoded <div> tags.

 

<script type="text/javascript">/* <![CDATA[ */var google_conversion_id = 12345;var google_conversion_language = 'en';var google_conversion_format = '3';var google_conversion_color = 'ffffff';var google_conversion_label = 'googleconversionLabel';var google_conversion_value = 0;if (11.72) { google_conversion_value = 11.72;}/* ]]> */</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js"></script>
<img height="1" width="1" border="0" alt="" src="https://www.googleadservices.com/pagead/conversion/12345/?random=1402520331887&amp;cv=7&amp;fst=1402...
<noscript>&lt;div style='display:inline;'&gt;&lt;img height='1' width='1' style='border-style:none;' alt='' src='https://www.googleadservices.com/pagead/conversion/12345/?value=11.72&amp;amp;label=googleconversion...

 

 

Re: 31

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
SOLVED

I had the wrong label for the site, and therefore it wasn't registering. I got it working now.

The extra parameters generated didn't seem to matter.

Thanks.

Re: 31

Top Contributor
# 5
Top Contributor
Hi goingdev,

Glad you got that part working. I'd watch carefully for double counting of the conversion. The way this reads, both the script that records the conversion and the image tag that is between the &lt;/script&gt; and the <noscript&gt; tags will load. Google may be able to determine this is the same conversion and not count both.

For the part that is between the noscript tags, the tag appears to be html-encoded. If that is the case, conversions will not record from that image tag, but should record from the image tag that is above the noscript tag. Try disabling Javascript in your browser, then get to the page where this code lives. My bet is that will you see the code for the image tag, not the image. You should also see the image from the tag that is outside the script block.

In other words, it may be working, but it's not quite right.

Pete
petebardo -- Deadhead doing AdWords

Re: 31

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭
Hi,
How you sort the img code twice out? I have the same situation one img inside the noscript and another below?

Re: Adwords Conversion Pixel code paramters and noscript

Community Manager
# 7
Community Manager
This 2014 thread has been closed to new replies.
 
Should anyone have a new or unanswered question related to this topic, please start a new thread with a descriptive subject line, and post a clear, specific and detailed question. 
 
This will improve the visibility of your question as well as help other forum members to understand your question fully, and answer it in a useful and effective way.
 
To start a new thread, please go to the top level of the AdWords Community, and from there, click on the board that is most closely related to your question. After that, you can click on the pink "+" sign in the lower right corner of the screen to start a new topic.
 
Thank you.