Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • aaronb 97 posts 116 karma points
    Apr 14, 2011 @ 16:18
    aaronb
    0

    umbracoRedirect - will referring page show in analytics?

    I've set up a redirect to allow a short URL to be used in advertising materials - e.g. domainname.com/advert

    I used the built-in umbracoRedirect property. What I need to know is whether the referring page will show up in the google analytics report, or whether umbraco does this 'behind the scenes'.

    If not, is there a simple way I can measure what percentage of hits to a certain page came from this new, short url vs. the main, longer url?

     

  • Rich Green 2246 posts 4008 karma points
    Apr 14, 2011 @ 17:38
    Rich Green
    0

    Hey,

    umbracoRedirect makes a 302 redirect  http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracoredirect

    So I guess your question actually relates to whether a 302 redirect passes the referal in google analytics, something I couldn't find a definitive answer for.

    You could add some code to do a redirect and tag the url with an analytics tag http://www.google.co.uk/support/googleanalytics/bin/answer.py?answer=55518

    Rich

  • aaronb 97 posts 116 karma points
    Apr 14, 2011 @ 18:23
    aaronb
    0

    Thanks Rich,

    As far as I can tell, a 302 doesn't look like it'll show the referrer as my page with umbracoRedirect on it. That link tagging seems like it'll do the trick, I just need to figure out how to add that as a redirect vs. using umbracoRedirect. Actually, I wonder if we can just do that on the server but redirect it to the tagged url...

    Really appreciate the help, thanks again.

     

  • Rich Green 2246 posts 4008 karma points
    Apr 14, 2011 @ 18:43
    Rich Green
    0

    If it's for one unique page you can set up a url rewrite 

    Something like (not tested and don't know the effects of a permanent redirect)

     <add name="CampaignRedirect"
             redirectMode="Permanent"
             redirect="Domain"
             ignoreCase="true"
             rewriteUrlParameter="IncludeQueryStringForRewrite"
             virtualUrl="http://domainname.com/advert"
             destinationUrl="http://domainname.com/advert.actualpage.aspx?querytrackinghere" />

    Rich

  • Rich Green 2246 posts 4008 karma points
    Apr 15, 2011 @ 11:50
Please Sign in or register to post replies

Write your reply to:

Draft