Get track js url

@return  string
197693
public function getTrackJsUrl()
    {
        $storeId = $this->getMagentoStoreId();
        //Get cdn url
        $cdnUrl = $this->configHelper->getCdnUrl($storeId);

        return $cdnUrl.'/track.js';
    }
653817
function getBasePath()
    {
        $filename = basename($this->getServer()->get('SCRIPT_FILENAME', ''));
        $baseUrl  = $this->getBaseUrl();

        // Empty base url detected
        if ($baseUrl === '')
            return '';

        // basename() matches the script filename; return the directory
        if (basename($baseUrl) === $filename)
            return str_replace('\\', '/', dirname($baseUrl));

        // Base path is identical to base URL
        return rtrim($baseUrl, '/');
    }
1093814
private function getVisitorId()
    {
        $tracker = $this->getVisitorTracker();
        $data    = $tracker->checkData($this->visitorData, [
            'user_id'     => $this->getUserId(),
            'device_id'   => $this->getDeviceId(),
            'client_ip'   => $this->request->getClientIp(),
            'geoip_id'    => $this->getGeoIpId(),
            'agent_id'    => $this->getAgentId(),
            'referer_id'  => $this->getRefererId(),
            'cookie_id'   => $this->getCookieId(),
            'language_id' => $this->getLanguageId(),
            'is_robot'    => $this->isRobot(),
            'user_agent'  => $this->getUserAgentTracker()->getUserAgentParser()->getOriginalUserAgent(),
        ]);

        $this->mergeVisitorData($data);

        return $tracker->track($this->visitorData);
    }
1068254
private function _getUrl()
    {
        $url = $_GET['url'] ?? 'index';
        $url = rtrim($url, '/');
//        $url = filter_var($url, FILTER_SANITIZE_URL);
        $this->_url = explode('/', $url);
    }
647545
protected function getLinks()
	{
		$html = '';

		if (is_array($this->window['first'])) {
			$html .= $this->getUrlLinks($this->window['first']);
		}

		if (is_array($this->window['slider'])) {
			$html .= $this->getDots();
			$html .= $this->getUrlLinks($this->window['slider']);
		}

		if (is_array($this->window['last'])) {
			$html .= $this->getDots();
			$html .= $this->getUrlLinks($this->window['last']);
		}

		return $html;
	}
1257819
public function getJsBundleUrl()
    {
        $url = $this->getJsCacheUrl();

        if (!$url) {
            $url = $this->getJsCachePath();

            if (!$this->isRelativePath($url)) {
                throw new \RuntimeException('If you do not provide a js cache url, js cache path must be a relative local path...');
            }

            $url = '/' . str_replace(DIRECTORY_SEPARATOR, '/', $url);
        }

        $name = $this->getName();

        if (null === $name) {
            $name = sprintf('bundle_%s', $this->getJsFileList()->getHash());
        } elseif (strpos($name, '%s') !== false) {
            $name = sprintf($name, $this->getJsFileList()->getHash());
        }

        return sprintf(
            "%s/%s.js",
            $url,
            $name
        );
    }
680716
protected function validateUrl()
    {
        return (
            preg_match('~spotify\.com/(?:track|album)/(?:[^/]+)(?:/[^/]*)?$~i', $this->url) ||
            preg_match('~spotify\.com/user/(?:[^/]+)/playlist/(?:[^/]+)/?$~i', $this->url) ||
            preg_match('~spoti\.fi/(?:[^/]+)$~i', $this->url)
        );
    }
571619
public function getTrackingId()
    {
        $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
        $charactersLength = strlen($characters);
        $trackingId = '';
        for ($i = 0; $i < 10; $i++) {
            $trackingId .= $characters[rand(0, $charactersLength - 1)];
        }
        return $trackingId;
    }
1272934
public function GetExportURLList()
    {
        $sReturn = '';
        if (isset($this->oTableRow) && $this->oTableRow instanceof TdbShop) {
            /* @var $oShop TdbShop */
            $oShop = $this->oTableRow;
            $oPortalList = $oShop->GetFieldCmsPortalList();
            $systemPageService = $this->getSystemPageService();
            while ($oPortal = $oPortalList->Next()) {
                $sExportPageURL = $systemPageService->getLinkToSystemPageRelative('productexport', array(), $oPortal);
                if (strstr($sExportPageURL, 'javascript:alert')) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_page_missing')).'</div>';
                    continue;
                }
                $sExportPageId = $oPortal->GetSystemPageId('productexport');
                $sSpotName = $this->getExportModuleSpotName($sExportPageId);
                if ('' == $sSpotName) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_module_missing')).'</div>';
                    continue;
                }
                $aViewList = $this->getViewNameList($sExportPageId);
                if (0 === count($aViewList)) {
                    $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_export_views_missing')).'</div>';
                    continue;
                }
                $sReturn .= '<div><h5>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.headline', array('%portalName%' => $oPortal->GetName()))).'</h5></div>';
                foreach ($aViewList as $sView) {
                    $sURL = $sExportPageURL.'sModuleSpotName/'.$sSpotName.'/view/'.$sView.'/key/'.$oShop->fieldExportKey;
                    $sReturn .= '<div><b>'.$sView.' -></b> <a href="'.$sURL.'" title="export" target="_blank">'.$sURL.'</a>';
                }
            }
        } else {
            $sReturn = $sReturn = '<div>'.TGlobal::OutHTML(TGlobal::Translate('chameleon_system_shop_product_export.field_show_export_url.error_invalid_field_owner')).'</div>';
        }

        return $sReturn;
    }
1298183
function getJumpURL() {
        $guild = ($this->channel instanceof \CharlotteDunois\Yasmin\Models\TextChannel ? $this->guild->id : '@me');
        return 'https://canary.discordapp.com/channels/'.$guild.'/'.$this->channel->getId().'/'.$this->id;
    }
471950
public function track()
    {
        if ($this->track === null) {
            $this->track = $this->config()->defaultTrack();
        }
        return $this->track;
    }
913064
public function getGoogleTracking()
    {
        /** @var \Ekyna\Bundle\GoogleBundle\Model\TrackingCode $trackingCode */
        $trackingCode = $this->settingManager->getParameter('google.tracking_code');
        if (!$this->debug && 0 < strlen($trackingCode->getPropertyId())) {
            $domain = $trackingCode->getDomain();
            if (0 === strlen($domain)) {
                $domain = 'auto';
            }
            if (in_array($trackingCode->getDomain(), ['none', 'auto'])) {
                $domain = sprintf("'%s'", $domain);
            } else {
                $domain = sprintf("{'cookieDomain': '%s'}", $domain);
            }
            return sprintf(self::GA_TRACKING_CODE, $trackingCode->getPropertyId(), $domain);
        }
        return '';
    }
273508
public function currentPath()
    {
        $requestURI = $this->serverVar('REQUEST_URI');
        $sciptName  = $this->serverVar('SCRIPT_NAME');
        return rtrim(parse_url($requestURI? : $sciptName, PHP_URL_PATH), '/');
    }
483713
public function getCurrentRound()
    {
        $isStop = false;
        $today  = new \Zend_Date();
        $tokens = $this->getTokens();
        $stop   = $this->util->getReceptionCodeLibrary()->getStopString();

        foreach ($tokens as $token) {
            $validUntil = $token->getValidUntil();

            if (! empty($validUntil) && $validUntil->isEarlier($today)) {
                continue;
            }

            if ($token->isCompleted()) {
                continue;
            }

            $code = $token->getReceptionCode();
            if (! $code->isSuccess()) {
                if ($code->getCode() === $stop) {
                    $isStop = true;
                }
                continue;
            }

            return $token->getRoundDescription();
        }
        if ($isStop) {
            return $this->translate->_('Track stopped');
        }

        return $this->translate->_('Track completed');
    }
664727
static function getReporticoUrlPath()
    {
        $sessionClass = ReporticoSession();

        //$found = ReporticoUtility::findFileToInclude($newpath, $newpath, $reltoinclude);
        $newpath = __DIR__;
        $newpath = ReporticoUtility::getRelativePath(str_replace("/", "\\", realpath($newpath)), dirname(realpath($_SERVER["SCRIPT_FILENAME"])));
        $above = dirname($_SERVER["SCRIPT_NAME"]);
        if ($above == "/") {
            $above = "";
        }

        $url_path = $above . "/" . $sessionClass::sessionRequestItem('reporticourl', dirname($newpath));

        // If reportico source files are installed in root directory or in some other
        // scenarios such as an invalid linkbaseurl parameter the dirname of the
        // the reportico files returns just a slash (backslash on windows) so
        // return a true path
        if ($url_path == "/" || $url_path == "\\") {
            $url_path = "/";
        } else {
            $url_path = $url_path . "/";
        }

        return $url_path;
    }
168298
protected function getReturnUrl()
    {
        $controllerKey = \OxidEsales\Eshop\Core\Registry::getControllerClassNameResolver()->getIdByClassName(get_class());
        return $this->getSession()->processUrl($this->getBaseUrl() . "&cl=" . $controllerKey . "&fnc=getExpressCheckoutDetails");
    }
972855
public function getShipmentTrackingUrl()
    {
        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        if ($this->_sShipTrackUrl === null) {
            $sParcelService = $oConfig->getConfigParam('sParcelService');
            $sTrackingCode = $this->getTrackCode();
            if ($sParcelService && $sTrackingCode) {
                $this->_sShipTrackUrl = str_replace("##ID##", $sTrackingCode, $sParcelService);
            }
        }

        return $this->_sShipTrackUrl;
    }