The ROI Revolution Blog

Handling Email Referrals in Google Analytics

January 24, 2011

If you've spent any time looking through your traffic sources in Google Analytics, particularly your referral sources, you may have noticed a lot of your traffic coming various mail sources:

mail_sources_1.png

Clearly it's not terribly useful to see your traffic broken out this way. At the very least, you would want to consolidate all of those mail.yahoo.com sources.

But if you think about it, it probably doesn't matter a whole lot which email service provider a visitor happened to be using when they clicked to your site. Perhaps it'd be better if we just consolidate all of those email sources into one entry. Not only would this significantly clean up reports, but it would also allow you to see the overall impact of traffic coming from email to your site.

The easiest way to handle this is by using filters:

mail_sources_2.png

While this is called a custom advanced filter, it's fairly straightforward. If you noticed in the first screenshot, all of traffic coming from email had "mail" somewhere in the source and "referral" as the medium. So this filter takes all of that traffic and changes the source of that traffic to webmail.

Also note that we set "Field B Required" to "Yes" and "Override Output Field" to "Yes". Both of these settings are necessary in order for this filter to work. The first setting ensures that we only change data for visits that fit the requirement we set in Field B, while the second one ensures that all visits that meet the filter requirements will have their source overridden with "webmail".

Once you've applied this filter to your reports, your email visits going forward will be consolidated into a single entry:

webmail / referral

Now if you tend to look at your traffic sources by medium, you'll notice that even after this filter, webmail traffic is still included with the rest of your referral traffic:

mail_sources_3.png

If you're OK with this, that's fine, but it is possible to separate your email traffic out by adding a second filter in addition to the first filter:

mail_sources_6.png

This is similar to our previous filter, but here we specify that we want to filter on visits with a source of "webmail" and change the medium of those visits to "webmail". Filters build on each other, so it's important that this filter come after the previous filter, otherwise it won't find any visits with "webmail" as the source.

After you make this change, your report on mediums should look more like the following:

mail_sources_5.png

This makes it much easier to differentiate between true site referrals and traffic that's coming from email.

Here are a couple final considerations:

1. It's possible to use advanced filters to break out webmail traffic by source. That is, you could have yahoo / webmail, aol / webmail, etc. The filters for this are much more complicated, however, and you may have trouble finding a good reason for knowing that an email visit came from aol instead of yahoo. But if you decide you need help with this we can help you via one of our Google Analytics technical support plans.

2. Getting a lot of webmail traffic may also be a sign that you aren't properly tagging your emails. If these are emails that you are sending out, especially from some type of autoresponder, then you should consider tagging these in some way. Click here to find out how we usually tag these emails.

As always, feel free to ask questions in the comments about this topic or let us know if you found this technique useful and/or how you used it.

Google Analytics for Online Advertisers
Here at ROI Revolution, we consider Google Analytics tracking essential for paid search, so it's included in our PPC Campaign Management service.

Comments

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

kelley said:

Forgive the noob question, but what's the difference between the webmail medium and the email medium?

January 25, 2011 12:24 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Kelley: Here we tend to use the medium "email" for tagged emails (autoresponders, etc.), and "webmail" to identify untagged emails that we separated out from referrals. These can potentially have very different behavior: one is a formal email or newsletter that you sent to someone, and the other is a more informal email that they might have received from a friend, etc. This is just the naming convention we use, but you can use whatever naming convention makes the most sense to you.

January 25, 2011 8:41 AM

hyderalis said:

Thanks Jeremy, I was searching for this kind of post from past several days & finally i found it here. Traffic from mail looks shabby in GA.

I'll definitely try it & will reply you if I got stuck with some error.

Thanks.

January 27, 2011 4:59 AM

Tommy said:

I created both the filters exactly as in the post, and applied them in the correct order on the profile, but webmail is still showing up under Referral medium. Any ideas?

January 28, 2011 9:27 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: Filters only affect data going forward, so any existing data will still look as before. Also, sometimes the filter takes a little bit to kick in, so you may have a few hours worth of data that's still not filtered correctly before it takes effect.

January 28, 2011 10:28 AM

Tommy said:

It's been days since I implemented (Jan 25th). All the webmail is still coming in as referral traffic. So. the first filter is working fine, but the second one is not. Any other ideas?

January 31, 2011 9:58 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Tommy: The second filter was wrong. The second filter field was supposed to be Campaign Medium, not Referral. Try it again with the new version.

January 31, 2011 11:04 AM

Tommy said:

Working! Thanks! Now I have ammunition to convince those responsible for email campaigns to put better tracking in their links.

February 1, 2011 2:02 PM

Ryan said:

What about gmail? Will that show up as "Google". I don't get any of my visitors using gmail surely not?

May 3, 2011 12:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Ryan: By default, gmail referrals will show up as mail.google.com referrals. With the filters in place, they will either show up as webmail / referral or webmail / webmail. It also possible to use filters to get it to show up as google / webmail, but that's a bit more advanced.

May 4, 2011 8:09 AM

Cameron said:

What about websites that have the term 'mail' in their domain name?

June 29, 2011 4:04 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Cameron: If you have websites with mail in the domain that are a significant source of referral traffic to your site, then you might have to come up with a more sophisticated set of filters. For example, instead of immediately overwriting the source with webmail, you could overwrite the medium with webmail first, then add another filter that changes the medium from webmail back to referral if the source matches a pipe-delimited list of domains that you don't want changed to webmail. Then the third filter would just change the source to webmail if the medium is webmail. If you have more complicated rules than this, it may even be necessary to write your values to a custom field prior to overwriting source or medium.

June 29, 2011 5:30 PM

Scott Offord said:

To me it is harder to sift through various segments when there are custom Mediums. The new Beta Google Analytics interface allows you to see four segments at one time, so Paid Search, Non-Paid Search, Referral, and Direct can all be viewed in one graph, for example, but if you start messing with a 5th medium, then it's harder to see all your traffic types at one time.

Your thoughts?

July 12, 2011 11:51 AM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Scott: If you're worried about segmenting your mediums so that they don't fall easily into 4 groups, then I would suggest just using the first filter that changes the source of all email referrals to webmail. That way, you're still consolidating the sources of your email traffic, which can often 20 or more forms of mail.yahoo.com, but you still only have 4 primary mediums.

July 12, 2011 2:49 PM

Al said:

Just a quick question about filters. If I am seeing something like newsletter.sitename.com and newsletter.sitename.com:80 in my referring sites report. I was hoping that I could combine them into one url to ease my reporting in GA.

Could you suggest a way to do this, I cannot figure out how to filter out that port number using the search and replace filter and the referral field.

August 26, 2011 11:31 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Al: As a general rule, I use Advanced filters instead of the search and replace filters. In this case, you could do something like this:

Field A: Campaign Source
Extract A: (.*):80$
Field B: Campaign Medium
Extract B: referral
Output to: Campaign Source
Constructor: $A1
Field A Required: Yes
Field B Required: Yes
Override Output Field: Yes

August 29, 2011 7:33 AM

Luke said:

Hello, I'm in a similar situation and don't know if this filter can also work.

I've two similar referral that are showed on Traffic Sources Overview something like:

access.com
access.net

I want to join the visits of this two referral in one only source, so in the report that i show to my client only one general source will be showed, something like:

access-net-com/ referral

Is this possible with this filter? If yes could you explain how to?

Thanks to all,

ps. Sorry for my English.

May 27, 2012 3:22 PM

Jeremy Aube, Director of Engineering Author Profile Page said:

@Luke: Something like this would probably work:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.(com|net)$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access-net-com
Field A Required: Yes
Field B Required: Yes

It might be better, however, to just have the filter change access.net to access.com. Referral sources tend to be domain names, so something like access-net-com is going to look a bit weird showing up there. So the following filter would probably make more sense:

Filter Name: Combine access
Filter Type: Custom -> Advanced
Field A: Campaign Source
Extract A: ^access\.net$
Field B: Campaign Medium
Extract B: ^referral$
Output To: Campaign Source
Constructor: access.com
Field A Required: Yes
Field B Required: Yes

May 29, 2012 10:18 AM

Post Your Comments

© 2002-2014 ROI Revolution, Inc. All rights reserved.