Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Яндекс в Search Activity (3.4.3)

Опубликовано:

У меня сейчас в админке на странице Search Activity только переходы по поисковым запросам с гугла.

Можно ли добавить туда яндекс, чтобы видеть переходы с него?

Рекомендованные сообщения

Опубликовано:

Можно.

Открыть admin\sources\base\ipsRegistry.php

 

Найти

	array( 'name' => 'Google', 'match' => '/http\:\/\/www\.google/', 'parser' => 'parseGoogleUrl' ),

Ниже добавить

	array( 'name' => 'Yandex', 'match' => '/http\:\/\/yandex\./', 'parser' => 'parseYandexUrl' ),

 

Найти

protected function parseBingUrl($url)

Выше добавить

protected function parseYandexUrl($url)
{
	$matches = array();
	if(preg_match('/text=([^&]+)/', $url, $matches))
	{
		if(isset($matches[1]))
		{
			$keywords = $matches[1];
			$keywords = urldecode($keywords);
			$keywords = str_replace('+', ' ', $keywords);
			$keywords = str_replace('%20', ' ', $keywords);
			return $keywords;
		}
	}

	return null;
}

Опубликовано:
  • Автор

Спасибо, заработало :)

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.