This update removes UTM tags from urls generated from IU News feeds and IU Calendar feeds.
Manual updates are only needed if you have localized the following two files:
- /_php/feeds/events-item.php
- /_php/feeds/news-item.php
This update removes UTM tags from urls generated from IU News feeds and IU Calendar feeds.
Manual updates are only needed if you have localized the following two files:
On your local WCMS site, navigate to /_php/feeds/events-item.php
If the content of this file has only the following line:
<?php include('1.2.x/feeds/events-item.php');
Then you can skip this step.
Otherwise, locate the following string which should be around line 89:
private function constructUTM($mode)
Empty the content of the method, and it should look like:
private function constructUtm($mode)
{
return;
}
Save the change by submitting it.
On your local WCMS site, navigate to /_php/feeds/news-item.php
If the content of this file has only the following line:
<?php include('1.2.x/feeds/news-item.php');
Then you can skip this step.
Otherwise, locate the following string which should be around line 46:
if(!substr_count($this->url, $_SERVER['SERVER_NAME']))
Delete the following code:
if(!substr_count($this->url, $_SERVER['SERVER_NAME'])){
if(substr_count($this->url, '?')){
$this->url .= '&';
} else {
$this->url .= '?';
}
$this->url .= 'utm_source=' .$this->utm_source;
$this->url .= '&utm_medium=' . $this->utm_medium;
$this->url .= '&utm_campaign=' . $this->utm_campaign;
$this->url .= '&utm_term=' . $this->utm_term;
$this->url .= '&utm_content=' . $this->utm_content;
}
Save the change by submitting it.
Publish these two files.