Mobile app version of vmapp.org
Login or Join
Candy875

: Tracking a 301 redirect for a campaign onto a 3rd party server So we are running a campaign with a qr code that has some google analytics query strings embedded. We've setup our IIS to do

@Candy875

Posted in: #Analytics #Iis

So we are running a campaign with a qr code that has some google analytics query strings embedded. We've setup our IIS to do a 301 redirect on the folder that sends the user off to a 3rd party CRM.

Do we need to process the query string using some type of backend with google analytics before we redirect? Do I need to remove the 301 redtirect from iis and do the redirect based on my code? What's the best approach for this?

this is my query string format:
www.qrstuff.com/?utm_source=flyer&utm_medium=qrcode&utm_content=apr2011& utm_campaign=spring

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy875

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

You'll probably want to use GA's measurement protocol. Here is the dev guide on that: developers.google.com/analytics/devguides/collection/protocol/v1/devguide
You can keep the redirect setup on IIS to send the 301 response, but before sending the redirect use that protocol to send the hit payload.

10% popularity Vote Up Vote Down


 

@Samaraweera270

It depends what's your goal and who's the GA owner.

If you want to track this UTMs on your side, yes you should send it to GA before redirection. Read about Measurement Protocol

If you want to pass this UTMs to 3rd party server, answer is redirection with querystrings

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme