Hi peeps,
I need a little help if poss, because most of the website is flash, I am trying to place the google adwords conversion tracking code snippet into a function in the head, so that i can then call that fuction from the flash document and in turn generate lead if someone sends the request more info form, however as you will see from the code below, the second piece of javascript google supply has the url to the script on their server but I don;t know how to encapsulate this also into the function, as my knowledge of javascript only stretches to having a function inside of the javascript tags, I could i suppose place the url into the top /first piece of javascript, but again i'm guessing this would still be outside of my function, is there maybe a way of calling the url of that piece of script from inside the function???
<!-- Google Code for Lead Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
function googleAdword(){
var google_conversion_id = **********;
var google_conversion_language = "en_GB";
var google_conversion_format = "1";
var google_conversion_color = "666666";
if (0) {
var google_conversion_value = 0;
}
var google_conversion_label = "Lead";
//-->
}
</script>
<script language="JavaScript" src="</script>
I need a little help if poss, because most of the website is flash, I am trying to place the google adwords conversion tracking code snippet into a function in the head, so that i can then call that fuction from the flash document and in turn generate lead if someone sends the request more info form, however as you will see from the code below, the second piece of javascript google supply has the url to the script on their server but I don;t know how to encapsulate this also into the function, as my knowledge of javascript only stretches to having a function inside of the javascript tags, I could i suppose place the url into the top /first piece of javascript, but again i'm guessing this would still be outside of my function, is there maybe a way of calling the url of that piece of script from inside the function???
<!-- Google Code for Lead Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
function googleAdword(){
var google_conversion_id = **********;
var google_conversion_language = "en_GB";
var google_conversion_format = "1";
var google_conversion_color = "666666";
if (0) {
var google_conversion_value = 0;
}
var google_conversion_label = "Lead";
//-->
}
</script>
<script language="JavaScript" src="</script>