# Google Conversion Tracking in AS2?

**URL:** <https://forum.kirupa.com/t/google-conversion-tracking-in-as2/305091>\
**Category:** flash\
**Created:** [February 19, 2010, 12:43am UTC](https://forum.kirupa.com/t/google-conversion-tracking-in-as2/305091 "2010-02-19T00:43:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichGags](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/richgags/32/685_2.png) [@RichGags](https://forum.kirupa.com/u/RichGags)\
**Post date:** [February 19, 2010, 12:43am UTC](https://forum.kirupa.com/t/google-conversion-tracking-in-as2/305091/1 "2010-02-19T00:43:18Z")

</div>

I have a Flash AS2 site with a contact form. The contact form calls mymail.php and sends me an email with the users input. The php sends a confirmation back to the flash file.

I have a Google Adwords campaign. I would like to use their conversion tool to see which of their referrals got to my flash contact page. They give me a bunch of javascript code that can be used with php but it is supposed to get put between the body tags.

Any ideas how I could call this piece of code from Flash AS2?

Sample Code (To be installed inbetween the BODY tags)

```auto
<!-- Google Code for Purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1234567890;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "666666";
var google_conversion_label = "Purchase";
//-->
if (1) {
var google_conversion_value = 1
}
</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/1234567890/?value=1.0&label=Pur
chase&script=0">
</noscript>

```

Thanks!  
Rich
