V
vedioad
Our client has a flash-driven website, and they proivde API connection
which allows third-party tracking code to be initiated when events
occur in a Flash or DHTML based environement.
Client's HTML code includes a javascript file as
<script language="JavaScript" src="https://client.xxxx.com/
callback.js"></script>
on this callback JS file, the third party tracking script is
registered on 'conpage1' action, and ROI function will be called when
conpage1 action happens.
Dispatcher.register('conpage1', 'ROI');
function ROI()
{
var microsoft_adcenterconversion_domainid = xxxxx;
var microsoft_adcenterconversion_cp = 5050;
var head = document.getElementsByTagName('body')[0];
var objMsn = document.createElement('script');
objMsn.setAttribute('type','text/javascript')
objMsn.setAttribute('src','https://0.r.msn.com/scripts/
msn_adcenterconversion.js')
head.appendChild(objMsn)
var MsnImage= new Image();
MsnImage.src = "https://xxxxx.r.msn.com/?type=1&cp=1";
}
The code between ROI() function is customerized MSN Tracking code in
order to fit the flash site. However, the customized code will make
the browser frozen. If I test the site with Firefox with firebug
debugger enabled, I can see the browser keep waiting for r.msn.com...
Here is the default MSN Conversion Tracking code:
<SCRIPT>
microsoft_adcenterconversion_domainid = xxxxx;
microsoft_adcenterconversion_cp = 5050;
</script>
<SCRIPT SRC="https://0.r.msn.com/scripts/
microsoft_adcenterconversion.js"></SCRIPT>
<NOSCRIPT><IMG width=1 height=1 SRC="https://xxxxx.r.msn.com/?
type=1&cp=1"/></NOSCRIPT>
Did I do anything wrong?
Any suggestion is appreciated.
Cathy
which allows third-party tracking code to be initiated when events
occur in a Flash or DHTML based environement.
Client's HTML code includes a javascript file as
<script language="JavaScript" src="https://client.xxxx.com/
callback.js"></script>
on this callback JS file, the third party tracking script is
registered on 'conpage1' action, and ROI function will be called when
conpage1 action happens.
Dispatcher.register('conpage1', 'ROI');
function ROI()
{
var microsoft_adcenterconversion_domainid = xxxxx;
var microsoft_adcenterconversion_cp = 5050;
var head = document.getElementsByTagName('body')[0];
var objMsn = document.createElement('script');
objMsn.setAttribute('type','text/javascript')
objMsn.setAttribute('src','https://0.r.msn.com/scripts/
msn_adcenterconversion.js')
head.appendChild(objMsn)
var MsnImage= new Image();
MsnImage.src = "https://xxxxx.r.msn.com/?type=1&cp=1";
}
The code between ROI() function is customerized MSN Tracking code in
order to fit the flash site. However, the customized code will make
the browser frozen. If I test the site with Firefox with firebug
debugger enabled, I can see the browser keep waiting for r.msn.com...
Here is the default MSN Conversion Tracking code:
<SCRIPT>
microsoft_adcenterconversion_domainid = xxxxx;
microsoft_adcenterconversion_cp = 5050;
</script>
<SCRIPT SRC="https://0.r.msn.com/scripts/
microsoft_adcenterconversion.js"></SCRIPT>
<NOSCRIPT><IMG width=1 height=1 SRC="https://xxxxx.r.msn.com/?
type=1&cp=1"/></NOSCRIPT>
Did I do anything wrong?
Any suggestion is appreciated.
Cathy