F
fisindia.pruhawaii
Hi All,
I am facing an issue these days to execute Google Adwords tracking code during partial post back from ASP.NET.
Here below is the sample google tracking code which I want to be executed:
<!-- Google Code for execution -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxx;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxx";
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display: inline;">
<img height="1" width="1" style="border-style: none;" alt="" src="http://www.googleadservices.com/pag...0&label=xxxxxxxx&guid=ON&script=0" />
</div>
</noscript>
Now the ScriptManager code through which I want this to be executed is :
ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "ScriptName", script, false);
Now it does not allow me to do following two things:
1. Won't allow me to add HTML style comments section like <!-- -->
2. The NoScript area is not permitted.
Can somebody help me how to get it through, may be not through ScriptManager and some other way.
Note: Doing full postback is not an option for me.
Thanks in advance
Amit Arora
I am facing an issue these days to execute Google Adwords tracking code during partial post back from ASP.NET.
Here below is the sample google tracking code which I want to be executed:
<!-- Google Code for execution -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxx;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxx";
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display: inline;">
<img height="1" width="1" style="border-style: none;" alt="" src="http://www.googleadservices.com/pag...0&label=xxxxxxxx&guid=ON&script=0" />
</div>
</noscript>
Now the ScriptManager code through which I want this to be executed is :
ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "ScriptName", script, false);
Now it does not allow me to do following two things:
1. Won't allow me to add HTML style comments section like <!-- -->
2. The NoScript area is not permitted.
Can somebody help me how to get it through, may be not through ScriptManager and some other way.
Note: Doing full postback is not an option for me.
Thanks in advance
Amit Arora