Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting Google Adwords-Remarketing working in 2.2/STS


fleeced

Recommended Posts

Posted

We have a patched MS2 store that works great, we wish to introduce remarketing as part of our Adwords campaign and we are stuggling with the addition of the new piece of tracking code alongside our Google Analytics.

 

We use the following contribution alongside our STS which works fine,

osCommerce Google Analytics module v.1.2.2 for STS http://addons.oscommerce.com/info/3756

 

I am aware there is a Dynamic Remarketing contribution. http://addons.oscommerce.com/info/8853

 

 

The main analytics code goes in sts_display_output.php. This is it:

 

// Added for Google Analytics

if ($request_type == 'SSL') {

$template['headcontent'] .= '<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">' . "\n";

$template['headcontent'] .= '</script>' . "\n";

$template['headcontent'] .= '<script type="text/javascript">' . "\n";

$template['headcontent'] .= '_uacct="UA-xxxxxx-x";' . "\n";

$template['headcontent'] .= 'urchinTracker();' . "\n";

$template['headcontent'] .= '</script>' . "\n";

} else {

$template['headcontent'] .= '<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">' . "\n";

$template['headcontent'] .= '</script>' . "\n";

$template['headcontent'] .= '<script type="text/javascript">' . "\n";

$template['headcontent'] .= '_uacct="UA-xxxxxx-x";' . "\n";

$template['headcontent'] .= 'urchinTracker();' . "\n";

$template['headcontent'] .= '</script>' . "\n";

}

 

 

I need to incorporate ot add the remarketing code. Any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...