This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Функция из ссылки извлекает ютм и отдает массив | |
<?php | |
$requestUrl = 'https://site.ru/?utm_source=yandex&utm_medium=cpc&utm_campaign=context&utm_content=kupit_corobku&utm_term=%D0%BA%D1%83%D0%BF%D0%B8%D1%82%D1%8C+%D0%BA%D0%BE%D1%80%D0%BE%D0%B1%D0%BA%D0%B8+%D0%B4%D0%BB%D1%8F+%D0%BE%D0%B1%D1%83%D0%B2%D0%B8'; | |
function getUTM($url) { | |
$params = []; | |
$utm = []; | |
$params_tmp = parse_url($url); | |
$params_tmp = explode('&', $params_tmp['query']); | |
foreach($params_tmp as $param) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<link rel="icon" href="/favicon.ico" type="image/x-icon"> | |
<link rel="stylesheet" href="/css/custom.css"> | |
<script src="/js/custom.js"></script> | |
</head> |