Plugin Directory

Changeset 2181646


Ignore:
Timestamp:
10/28/2019 04:56:40 PM (6 years ago)
Author:
clickervolt
Message:

1.144

  • Fixed conversions not recorded when conversion amount is 0 (like email subscribers for example)
Location:
clickervolt/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • clickervolt/trunk/clickervolt.php

    r2181413 r2181646  
    55 * Plugin URI:  https://clickervolt.com/
    66 * Description: Advanced click tracking, link cloaking and affiliate campaigns management made easy.
    7  * Version:     1.143
     7 * Version:     1.144
    88 * Author:      ClickerVolt.com
    99 * License:     GPLv3
  • clickervolt/trunk/db/db.php

    r2181413 r2181646  
    1111class DB
    1212{
    13     const VERSION = 1.143;
     13    const VERSION = 1.144;
    1414
    1515    const OPTION_VERSION = 'clickervolt-version';
  • clickervolt/trunk/pixel/actionHandler.php

    r2165181 r2181646  
    1515    const URL_PARAM_ACTION_NAME = 'name';
    1616    const URL_PARAM_ACTION_REVENUE = 'amount';
    17 
    18     const URL_PARAM_ACTION_TYPE_OLD = 'action_type';
    19     const URL_PARAM_ACTION_NAME_OLD = 'action_name';
    20     const URL_PARAM_ACTION_REVENUE_OLD = 'action_revenue';
    2117
    2218    /**
  • clickervolt/trunk/pixel/do.php

    r2165181 r2181646  
    55require_once __DIR__ . '/actionHandler.php';
    66require_once __DIR__ . '/../redirect/session/sessionClick.php';
    7 require_once __DIR__ . '/../utils/arrayVars.php';
    8 
    97
    108function processPixel()
    119{
     10    $info = [
     11        ActionHandler::URL_PARAM_SLUG => empty($_GET[ActionHandler::URL_PARAM_SLUG]) ? '' : $_GET[ActionHandler::URL_PARAM_SLUG],
    1212
    13     $info = [
    14         ActionHandler::URL_PARAM_SLUG => ArrayVars::queryGet(ActionHandler::URL_PARAM_SLUG, ''),
    15 
    16         ActionHandler::URL_PARAM_ACTION_TYPE => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_TYPE, ''),
    17         ActionHandler::URL_PARAM_ACTION_NAME => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_NAME, ''),
    18         ActionHandler::URL_PARAM_ACTION_REVENUE => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_REVENUE, 0.0),
    19 
    20         ActionHandler::URL_PARAM_ACTION_TYPE_OLD => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_TYPE_OLD, ''),
    21         ActionHandler::URL_PARAM_ACTION_NAME_OLD => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_NAME_OLD, ''),
    22         ActionHandler::URL_PARAM_ACTION_REVENUE_OLD => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_REVENUE_OLD, 0.0),
     13        ActionHandler::URL_PARAM_ACTION_TYPE => empty($_GET[ActionHandler::URL_PARAM_ACTION_TYPE]) ? '' : $_GET[ActionHandler::URL_PARAM_ACTION_TYPE],
     14        ActionHandler::URL_PARAM_ACTION_NAME => empty($_GET[ActionHandler::URL_PARAM_ACTION_NAME]) ? '' : $_GET[ActionHandler::URL_PARAM_ACTION_NAME],
     15        ActionHandler::URL_PARAM_ACTION_REVENUE => empty($_GET[ActionHandler::URL_PARAM_ACTION_REVENUE]) ? 0.0 : $_GET[ActionHandler::URL_PARAM_ACTION_REVENUE],
    2316    ];
    2417
     
    4235        $actionHandler->addAction([
    4336            'clickId' => $info[ActionHandler::URL_PARAM_CLICK_ID],
    44             'actionType' => !empty($info[ActionHandler::URL_PARAM_ACTION_TYPE]) ? $info[ActionHandler::URL_PARAM_ACTION_TYPE] : $info[ActionHandler::URL_PARAM_ACTION_TYPE_OLD],
    45             'actionName' => !empty($info[ActionHandler::URL_PARAM_ACTION_NAME]) ? $info[ActionHandler::URL_PARAM_ACTION_NAME] : $info[ActionHandler::URL_PARAM_ACTION_NAME_OLD],
    46             'actionRevenue' => !empty($info[ActionHandler::URL_PARAM_ACTION_REVENUE]) ? $info[ActionHandler::URL_PARAM_ACTION_REVENUE] : $info[ActionHandler::URL_PARAM_ACTION_REVENUE_OLD],
     37            'actionType' => $info[ActionHandler::URL_PARAM_ACTION_TYPE],
     38            'actionName' => $info[ActionHandler::URL_PARAM_ACTION_NAME],
     39            'actionRevenue' => $info[ActionHandler::URL_PARAM_ACTION_REVENUE],
    4740            'clickTimestamp' => null,
    4841            'actionTimestamp' => time(),
  • clickervolt/trunk/readme.txt

    r2181413 r2181646  
    272272
    273273== Changelog ==
     274= 1.144 =
     275* Fixed conversions not recorded when conversion amount is 0 (like email subscribers for example)
     276
    274277= 1.143 =
    275278* Fixed issue with Cheetah Browser wrongly detected as Liebao
  • clickervolt/trunk/utils/arrayVars.php

    r2165181 r2181646  
    55class ArrayVars
    66{
    7 
    87    /**
    98     *
     
    1110    static function queryGet($varKey, $default = null)
    1211    {
    13 
    1412        return self::get($_GET, $varKey, $default);
    1513    }
     
    2018    static function get(&$array, $varKey, $default = null)
    2119    {
    22 
    2320        return array_key_exists($varKey, $array) ? $array[$varKey] : $default;
    2421    }
     
    3633    static function getFromPath($array, $path, $default = null)
    3734    {
    38 
    3935        $val = $default;
    4036
     
    6662    static function setFromPath(&$array, $path, $value)
    6763    {
    68 
    6964        $keys = explode('/', $path);
    7065        $nbKeys = count($keys);
Note: See TracChangeset for help on using the changeset viewer.