public function __construct()
 {
     // Setup the required variables for the Google analytics module
     parent::__construct();
     $this->_name = GetLang('GoogleAnalyticsName');
     $this->_image = "googleanalytics_logo.gif";
     $this->_description = GetLang('GoogleAnalyticsDesc');
     $this->_help = sprintf(GetLang('GoogleAnalyticsHelp'), $GLOBALS['ShopPath'], $GLOBALS['StoreName']);
     $this->_height = 0;
 }
예제 #2
0
		public function __construct()
		{

			// Setup the required variables for the Google analytics module
			parent::__construct();

			// http://www.google.com/support/analytics/bin/answer.py?answer=148375
			// 2. Enter everything after the domain name (this is commonly called the Request URI) in the Goal URL box. For example, if your goal page is www.domain.com/whitepaperdownload, enter "/whitepaperdownload" into the Goal URL box. Reaching this page marks a successful conversion.

			// get only the path portion of our store url -- don't use '/finishorder.php' as this is not compatible with ISC sub-directory installs
			$goalURL = $GLOBALS['ShopPath'] . '/finishorder.php';
			$goalURL = parse_url($goalURL);
			$goalURL = $goalURL['path'];

			$this->_name = GetLang('GoogleAnalyticsName');
			$this->_image = "googleanalytics_logo.gif";
			$this->_description = GetLang('GoogleAnalyticsDesc');
			$this->_help = sprintf(GetLang('GoogleAnalyticsHelp'), $goalURL, $GLOBALS['StoreName']);
			$this->_height = 0;
		}