Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for seiko

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 22:33
  • Posts: 5
  • Profile Views: 4321
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
Is it not available?

Clicked 'purchase now' link but it returned an error message:

Error: Sorry, but the Product you've requested wasn't found!

Thanks,

- Seiko
Can't purchase Googl ...
emo
Hi there,

My client also reported me that e-commerce tracking code is not working.

Can you provide the code to use new GA script instead of the old one?
(I know there is new script in the file).
I'd like to test it to see if it works.

Thanks,

- Seiko
Organic Ecommerse da ...
emo
Jan,

Thanks so much for your answer.
Now I understand why the old script is used.

Thanks again!

- Seiko
undefined variable $ ...
emo
Hi,

I've checked the plugin config values in the database.
It didn't change at all after I resaved the config values.

 
uaCode=UA-xxxxxxx
trackEcommerce=1
trackConversions=0
conversionCode=
uaScript=
 


I've checked the code and it doesn't make sense to me.
Insdie the getCode function, there is a part that testing with old ga code, if '$this->purchace' value is false.

Here:
 
function getCode()
{
// load needed ORDER information
if ($this->purchase) $this->loadOrderData();
$vmTracking = ($this->purchase && $this->_params->get('trackEcommerce', 1)) ? $this->getVMTrackCode() : '';
$cTrack = $this->purchase && $this->_params->get('trackConversions', 1);
// = sprintf($this->_params->get('uaScript', $this->uaScript), $this->_params->get('uaCode', ''), $vmTracking);
 
$code = '';
 
// place to add conversion tracking code
if ($cTrack) {
$code .= "<div id=\"awtracking\"></div>\n";
}
 
if (!$this->purchase) {
// standard tracking code
$uaScript = $this->_params->get('uaScript', $this->uaScript);
if (strlen(trim($uaScript)) == 0) $uaScript = $this->uaScript;
 
$code .= sprintf($uaScript, $this->_params->get('uaCode', ''));
}
//if ($this->purchase) {
// test with old code
else {
$code .= $this->uaScriptOld;
 
// generate GA tracking
$code .= "<script type=\"text/javascript\">\n";
 
$code .= " try {\n";
$code .= " function GATrack() {\n";
//$code .= $vmTracking . "\n";
 
$code .= sprintf(" var pageTracker = _gat._getTracker(\"%s\");\n", $this->_params->get('uaCode', ''));
$code .= " pageTracker._trackPageview();\n";
$code .= $vmTracking = ($this->purchase && $this->_params->get('trackEcommerce', 1)) ? $this->getVMTrackCodeOld() : '';
//$code .= " alert('click!'); return false;\n";
 
$code .= sprintf($this->_params->get('uaScriptOld', $this->uaScriptOld), $track);
 
// if conversion tracking
if ($cTrack) {
$code .= " document.getElementById('awtracking').innerHTML = GATrackCode;\n";
}
//$code .= " alert('clicked!'); return false;\n";
$code .= " }\n";
 
// generate conversion tracking
if ($cTrack) {
$cCode = $this->_params->get('conversionCode', '');
$cCode = str_replace(array("\r\n", "\n", "script"), array(" ", " ", "scr' + ' ipt"), $cCode);
$code .= " var GATrackCode = '" . str_replace('%s', $this->totals['order_total'], $cCode) . "';\n";
}
// map code generation to button click
$code .= " document.adminForm.formSubmit.addEventListener('click', GATrack, true);\n";
$code .= " } catch(err) {}\n";
$code .= "</script>\n";
}
 
return $code;
}
 
 


Thanks for your help.

- Seiko
undefined variable $ ...
emo
Hi,

I've installed new version (1.2.0) and got the following error message right after input credit card info and clicked final button.
The site is 'Joomla 1.5.22/Virtuemart 1.1.6'.

-----

Notice: Undefined variable: track in /home/xxx/public_html/plugins/system/gacode.php on line 129

Warning: sprintf() [function.sprintf]: Too few arguments in /home/xxxx/public_Notice: Undefined variable: track in /home/xxxx/public_html/plugins/system/gacode.php on line 129

Warning: sprintf() [function.sprintf]: Too few arguments in /home/xxxx/public_html/plugins/system/gacode.php on line 129html/plugins/system/gacode.php on line 129
xxxx Products

Notice: Undefined variable: track in /home/xxxx/public_html/plugins/system/gacode.php on line 129

Warning: sprintf() [function.sprintf]: Too few arguments in /home/xxxx/public_html/plugins/system/gacode.php on line 129

-----

I appreciate any help.
Thanks,

- Seiko
undefined variable $ ...
More
User Login Empty