title: Analytics UTM Tags - Data not recording
body: <p>I created a helper module in Rails that creates a hash of parameters that are passed to <code>link_to</code> rails helpers. These <code>utm</code> parameters are being used in emails sent out by the Rails app. The problem is that Google Analytics is not picking up any data when I've been testing. I realize there is a delay in processing and I'm also using the GA debugger to look at the beacons it's actually sending out and I have a staging server and staging Google Analytics that I am testing all of this on. Does anyone see anything with the approach below that would cause GA to not pick up any visits under the "campaigns" report? Does the order of the <code>utm</code> tags actually matter? I realize <code>utm_campaign</code>, <code>utm_source</code> and <code>utm_medium</code> are all required and ensured they are in every link. </p>
  
  <p>For example, this is what one of the links looks like. However, GA is not picking up any data. </p>
  
  <pre><code>http://example.com/?utm_campaign=welcome&amp;utm_medium=email&amp;utm_source=abc
  </code></pre>
  
  <p>I compare this link that that the <code>link_to</code> method has created with to what the <a href="https://support.google.com/analytics/answer/1033867?hl=en" rel="nofollow">Google UTM Link Builder</a> outputs and the only difference is the order of the parameters. Does the order matter? </p>
  
  <pre><code>http://example.com/?utm_source=abc&amp;utm_medium=email&amp;utm_campaign=welcome
  </code></pre>
  
  <p>Here is the helper module and an example of it's usage with a <code>link_to</code>. </p>
  
  <pre><code># mailer_helper.rb
  
  require 'uri'
  
  module MailerHelper
  
    def self.tracking_param_hash(utm_source, utm_medium, utm_campaign, params = {})
      { utm_source: utm_source,
        utm_medium: utm_medium,
        utm_campaign: utm_campaign
        }.merge(params)
    end
  
    def self.email_tracking_params(utm_campaign, options = {})
      tracking_param_hash("abc", "email", utm_campaign, options)
    end
  
  ...
  
  end
  
  # example usage in email view
  
  email_params = MailerHelper::email_tracking_params("set-password", reset_password_token: @token)
  
  link_to 'Set my password', edit_password_url(@resource, email_params)
  
  # rendered link in email
  http://example.com/users/password/edit?reset_password_token=YEt9PJgQsxb3WpJQ7OEXH3YDT8JZMD&amp;utm_campaign=reset-password&amp;utm_medium=email&amp;utm_source=abc
  </code></pre>