Javascript Redirect with Google Analytics

后端 未结 9 678
暗喜
暗喜 2020-11-28 22:30

I need help figuring out how to successfully redirect while including Analytics code.

  • I have a subdomain setup http://buuf.fractalsystems.org
  • The subd
9条回答
  •  攒了一身酷
    2020-11-28 22:58

    Meta refresh is generally discouraged because of usability concerns (especially with a short, or no delay), but as a fallback for clients with no javascript I think it's perfectly valid in this case.

    If you combine the synchronous ga.js call with a meta refresh you get the best of both worlds: an almost instant, tracked redirect if JS is enabled; a delayed but still effective redirect if not (and a hard link in the body just in case all else fails).

    
    
        
        
        
        
        
        
    
    
        
        

    Redirecting you to https://market.android.com/developer?pub=Fractal%20Systems

提交回复
热议问题