Avatar of Angela123
Angela123

asked on 

JavaScript Object Expected Error

Hi
I am getting an object exprcetd error with the attched code.  The only line I have added is:

dcsMultiTrack('DCS.dcsuri','/CTA','WT.ti','CTA: Apply Online', 'WT.z_cta', 'Apply Online');

This is a line of code that will track the amount of people that click on my button.

The code works fine when you comment out the line above? Any help would be appreciated.
<script language="JavaScript">
var GsChildWin;
 
function ABCD_JSopenUrl( sUrl, iWidth, iHeight, sParamaters )
{
	if ( GsChildWin ) { GsChildWin.close(); }
 
	if ( sParamaters ) { sParamaters = sParamaters + "," };
 
	GsChildWin = window.open( sUrl, '', sParamaters + "width=" + iWidth + ",height=" + iHeight + ", top=" + ( ( screen.availheight - iHeight ) / 2 ) + ", left=" + ( ( screen.availwidth  - iWidth  ) / 2 ) );
 
}
 
function ABCD_ApplyOnline( sPageName, iWidth, iHeight, sParameters )
{	
ABCD_JSopenUrl(getURL( sPageName ), iWidth, iHeight, sParameters );
dcsMultiTrack('DCS.dcsuri','/CTA','WT.ti','CTA: Apply Online', 'WT.z_cta', 'Apply Online');
 
}
</script>

Open in new window

JavaScript

Avatar of undefined
Last Comment
TimCottee

8/22/2022 - Mon