I'm setting up a Cross-Channel campaign within Google AdWords and it requires me to add JavaScript to the landing page. In this case, it's the product page for one product. How do I add JavaScript, in the header ideally, to just on product page?
I'm setting up a Cross-Channel campaign within Google AdWords and it requires me to add JavaScript to the landing page. In this case, it's the product page for one product. How do I add JavaScript, in the header ideally, to just on product page?
I have not seen the code buy you can try including it in the product description or as this only parses html correctly you could link to the code instead - again within the product description
Zen-Venom Get Bitten
I was under the impression I could not include anything but html in the product description.
Here is the code (modified to protect the innocent):
<!-- Google Code for default Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_type = 'landing';
var google_conversion_id = 9999999999;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
//-->
</script>
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/999999999/extclk?script=0">
</noscript>
I did add it to a test product and it does not give any errors. Will it work from that part of the page?
Did it work for this test product??I did add it to a test product and it does not give any errors. Will it work from that part of the page?
Zen-Venom Get Bitten
I don't know yet. I just added the code to see if the page would load properly.
It loads but I can't say if the script is functioning. It's tied to a PPC campaign but this page is not the one linked too from the ad. I could try it, but I was hoping someone had done this before or knew if adding JavaScript in this way would work.
I just noticed, the script add the 'Google Site Stats' box, so it's right at the end of the product description. This may not work this way.
Any other suggestions as to how I can add this in a less conspicuous way?
Bookmarks