301 redirect and Google Analytics

TheCrow

Junior Member
Joined
Aug 23, 2016
Messages
199
Reaction score
128
Hello!

I've bumped into a problem that I'm not to sure how to solve. Hopefully you guys could help me out!

I recently made a bot that automatically creates customized posts on my blog. The posts include customizes links to my subdomain which is only used for redirects.

Now to the example.

Post url: www.blog.com/this-is-a-post
This post has several links to the subdomain with UTM tags in it.

Subdomain link: go.blog.com/final-destination?utm_term=customized_tag
This link is doing a 301 redirect to the final destination

As the 301 redirect is done before the Google Analytics code is loaded, the visit and UTM tags won't show up in the Google Analytics dashboard.

I need those visit and UTM tags to be showed in Google Analytics and I can't find a simple solution on Google.

Trusting you guys on this one! :)
 
This is a tough one... URL parameters persistence is only possible on Server Side, so if you don't have a way to Store those parameters into a Session, then it's impossible to track the parameters if the redirects occur. Unless you update the link triggering the campaign, I don't see any other way around.

Hope this helps,
 
Back
Top