Home > Apache > How to track traffic from redirected domains using Google Analytics
Bookmark and Share

How to track traffic from redirected domains using Google Analytics

Posted on July 27, 2018 | Filed in Apache, SEO, The Web

Redirecting a bunch of domains and want to track the traffic from each domain using Google Analytics?

The solution is simple.

First go here:
https://ga-dev-tools.appspot.com/campaign-url-builder/

And create a URL to your destination URL with UTM tags.

Example:

https://www.destination-url.com/?utm_source=MyDomainName&utm_medium=domain&utm_campaign=MyDomain

Now redirect traffic from the domain to this URL either using your domain registration provider’s URL redirection service or using an .htaccess redirect statement like:

RewriteEngine On
RewriteRule ^(.*)$ https://www.destination-url.com/?utm_source=MyDomainName&utm_medium=domain&utm_campaign=MyDomain [R=301]

To test you can visit the redirected domain and immediately see the tracked result in Google Analytics.

First look at ACQUISITION > Campaigns > All Campaigns

Then change the date range to only your current date.

The Campaign name selected in the URL building above will show up.

Leave a Reply

Contact Us

Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001

[email protected]

Search Blog