Question about Google Analytics Tracking (w/ Rails)

前端 未结 5 1622
深忆病人
深忆病人 2021-02-10 21:17

I\'ve got google analytics setup on a rails project, and I\'ve got \"A single domain (default)\" selected for the tracking options.

I\'ve copied and pasted the js code i

5条回答
  •  耶瑟儿~
    2021-02-10 21:46

    This tutorial shows you how to set it up. I don't know why there's a gem for this. Just put the code in a partial and render it in your application layout if rails.env.production?

    http://aihuiong.com/post/452550136/google-analytics-and-rails-in-3-steps-and-less-than-5

提交回复
热议问题