Mobile app version of vmapp.org
Login or Join
Harper822

: How do I build a custom report of referral traffic for a set of domains in google analytics? I am building links for my client's website and need to make a custom report in google analytics

@Harper822

Posted in: #GoogleAnalytics #Referrer #RegularExpression

I am building links for my client's website and need to make a custom report in google analytics to show traffic only of the links i build.

I have tried the following:


Set up custom report
Define metric groups
dimension drilldown: defined "referrer path"
filter


here I used INCLUDE / regex with following synthax:

^(
(/domain1.com) |
(/domain2.com)
)$


I dont get any traffic data at all (which is wrong, when looking at referral data in channels i see visits from these domains.)

How do I do this? Is there a better way? Is my regex wrong?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Harper822

1 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

Yes your regular expression is wrong. / is a literal slash (/). A slash never preceeds the domain name.

You also specify that the referrer is exactly just the domain name. That is never the case. You are looking for a "contains" rule so you should leave off the starts with (^ ) and ends with ($) markers.

You also might want to escape the literal periods in your regex with .. Otherwise a period in regex matches any character.

You need something like:

(domain1.com)|(domain2.com)|(domain3.com)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme