Pass UTM TAGS Webflow page to all links such as other subdomains/sites

<script>document.addEventListener('DOMContentLoaded', function(event) {// create urlParams variable (constant) from URLSearchParams class using current windowconst urlParams = new URLSearchParams(;// set UTM medium, source and campaign variables (constants) based on results of URSearchParamsconst utm_medium = urlParams.get('utm_medium') || ""const utm_source = urlParams.get('utm_source') || ""const utm_campaign = urlParams.get('utm_campaign') || ""const utm_term = urlParams.get('utm_term') || ""const utm_content = urlParams.get('utm_content') || ""// get the Outbound button elementlinks = document.querySelectorAll("a");links.forEach(function(outboundLink) { // edit Outbound button element property by appending the URL parameters// idea limit links if outbound matches certain site/domain outboundLink.href += "?utm_medium=" + encodeURIComponent(utm_medium) + "&utm_source=" + encodeURIComponent(utm_source) + "&utm_campaign=" + encodeURIComponent(utm_campaign) + "&utm_term=" + encodeURIComponent(utm_term) + "&utm_content=" + encodeURIComponent(utm_content);}); } );</script>

Based on

Legacy PHP Functions

Just setup a small github repo of some deprecated php function replacements.
I have many websites that I maintain and other old software and always trying to stay on the latest version of PHP. These functions help if you are going from PHP 5 to PHP 7 and PHP 7 to PHP 8

Includes: mysql_* create_function ereg eregi ereg_replace eregi_replace split spliti

Installing Elastic Search 8.0 on CentOS 8 Orcale Linux

A quick guide on setting up Elastic Search

yum install java-1.8.0-openjdk.x86_64
cd /etc/yum.repos.d/
vi elasticsearch.repo
yum install –enablerepo=elasticsearch elasticsearch
systemctl start elasticsearch.service

curl –cacert /etc/elasticsearch/config/certs/http_ca.crt -u elastic hcurl –cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200

yum install kibana
cd /etc/yum.repos.d/
vi kibana.repo
yum install kibana

/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana
/bin/systemctl daemon-reload
/bin/systemctl enable kibana.service

setsebool httpd_can_network_connect 1 -P

systemctl status firewalld

firewall-cmd –new-zone=elastic-access –permanent

firewall-cmd –zone=elastic-access –add-source= –permanent

firewall-cmd –zone=elastic-access –add-port=9200/tcp –permanent

firewall-cmd –zone=elastic-access –add-port=9300/tcp –permanent
firewall-cmd –zone=elastic-access –add-port=5601/tcp –permanent

firewall-cmd –zone=elastic-access –add-port=80/tcp –permanent
firewall-cmd –zone=elastic-access –add-port=443/tcp –permanent

firewall-cmd –reload


netstat -ntlp

yum -y install nginx httpd-tools

cd /etc/nginx/conf.d


nginx -t

service nginx restart