Added some tracking variables from facebook in the function to clean up URLs.
This commit is contained in:
parent
d001e19035
commit
135a403cec
1 changed files with 1 additions and 0 deletions
|
@ -1125,6 +1125,7 @@ function original_url($url, $depth=1, $fetchbody = false) {
|
||||||
foreach ($querydata AS $param=>$value)
|
foreach ($querydata AS $param=>$value)
|
||||||
if (in_array($param, array("utm_source", "utm_medium", "utm_term", "utm_content", "utm_campaign",
|
if (in_array($param, array("utm_source", "utm_medium", "utm_term", "utm_content", "utm_campaign",
|
||||||
"wt_mc", "pk_campaign", "pk_kwd", "mc_cid", "mc_eid",
|
"wt_mc", "pk_campaign", "pk_kwd", "mc_cid", "mc_eid",
|
||||||
|
"fb_action_ids", "fb_action_types", "fb_ref",
|
||||||
"woo_campaign", "woo_source", "woo_medium", "woo_content", "woo_term"))) {
|
"woo_campaign", "woo_source", "woo_medium", "woo_content", "woo_term"))) {
|
||||||
$pair = $param."=".$value;
|
$pair = $param."=".$value;
|
||||||
$url = str_replace($pair, "", $url);
|
$url = str_replace($pair, "", $url);
|
||||||
|
|
Loading…
Reference in a new issue