Hi there awesome people!
I'm interesting in the marketing tracking functionality that Open Cart provides. I'm running the latest version of OC.
If you go to Marketing -> Marketing Tracking it will let you add a new "trigger" that you can track and it looks like below:
http://www.mysite.com/path-to-something?tracking=5835a32c6f110
I'm interested in renaming the "tracking" variable to "t" or "ref" or something else than "tracking". Is this an easy change? Is there an option I may have overlooked while configuring OC?
Thank you so much for your help!
Eddie
You can modify file catalog/controller/startup/startup.php using ocmod. I am considering t instead of tracking
You need to modify following lines of code:
Replace by:
You need to modify following lines of code:
Code: Select all
if (isset($this->request->get['tracking'])) {
setcookie('tracking', $this->request->get['tracking'], time() + 3600 * 24 * 1000, '/');
$this->db->query("UPDATE `" . DB_PREFIX . "marketing` SET clicks = (clicks + 1) WHERE code = '" . $this->db->escape($this->request->get['tracking']) . "'");
}
Code: Select all
if (isset($this->request->get['t'])) {
setcookie('tracking', $this->request->get['t'], time() + 3600 * 24 * 1000, '/');
$this->db->query("UPDATE `" . DB_PREFIX . "marketing` SET clicks = (clicks + 1) WHERE code = '" . $this->db->escape($this->request->get['t']) . "'");
}
XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart
OCmod is virtual file modification system so that you don't need to modify core file directly.
Please check https://github.com/opencart/opencart/wi ... ion-System
Please check https://github.com/opencart/opencart/wi ... ion-System
XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart
Who is online
Users browsing this forum: No registered users and 6 guests