title: Google Analytics: Can I use custom dimension name instead of index when sending data?
body: <p>According to Google's <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets" rel="nofollow">documentation</a>, when sending data for custom dimensions or metrics, I have to use their index to identify them, like this:</p>
  
  <pre><code>ga('send', 'pageview', {
    'dimension15':  'My Custom Dimension'
  });
  </code></pre>
  
  <p>or</p>
  
  <pre><code>ga('set', 'dimension5', 'custom data');
  </code></pre>
  
  <p>I need to know if it's possible to send the data by using the dimension's name (i.e.: "MyDimension") instead of the index. I need to do this in a code that is used by multiple customers, and some already have other custom dimensions defined, while other customers don't. If I were able to target the custom dimension names, I wouldn't have to complicate myself with using different dimension indexes for each customer.</p>