I might worrying way too much here, but here it goes...

I have set up google analytic campaign tracking URLs using the [google campaign link builder](http://support.google.com/analytics/bin/answer.py?hl=en&answer=1033867).

Which is great, but I have like 20 different tracking urls, and more to come.

These URLs are really ugly and I'm not a fan of the visitor seeing this long tracking url on there first visit to my site.

So this is my idea/theory that I want to put on my **wordpress** site. If anyone would be kind enough to help with the php writing part of it, I would be very grateful. Or any advice if the idea is a bad one.

For example, these are just some of my URL's

<http://example.com/?utm_source=Company&utm_medium=MPU&utm_campaign=Promo>

<http://example.com/?utm_source=Company&utm_medium=Leaderboard&utm_campaign=Promo>

<http://example.com/?utm_source=Company&utm_medium=Take%2BOver&utm_campaign=Promo>

I would like to instantly redirect all of the above urls too...

<http://example.com/>

Using php in my header.php or functions.php

Is there some how this can be written so I can simply add new tracking urls in an array/case perhaps.

Any suggestions would be great thanks!

---

Please don't laugh as this - but at a guess this is what I'm trying to do...

```
$landing = $_SERVER['REQUEST_URI'];

$campaigns = array(
"http://example.com/?utm_source=Company&utm_medium=MPU&utm_campaign=Promo",
"http://example.com/?utm_source=Company&utm_medium=Leaderboard&utm_campaign=Promo",
"http://example.com/?utm_source=Company&utm_medium=Take%2BOver&utm_campaign=Promo"
);

if ( $campaigns == $landing ) {

header( 'Location: http://example.com/' ) ;

}

```