title: Dynamic Tag Management - Storing
body: <p>We're in the process of moving to DTM implementation. We have several variables that are being defined on page. I understand I can make these variables available in DTM through data elements. Can I simply set up a data elem</p>
  
  <p>So set data elements</p>
  
  <pre><code>%prop1% = s.prop1
  %prop2% = s.prop2
  etc
  </code></pre>
  
  <p>And then under global rules set</p>
  
  <pre><code>s.prop1 = %s.prop1%
  s.prop2 = %s.prop2% 
  etc
  </code></pre>
  
  <p>for every single evar, sprop, event, product so they populate whenever they are set on a particular page. Good idea or terrible idea? It seems like a pretty bulky approach which raises some alarm bells. Another option would be to write something that pushes everything to the datalayer, but that seems like essentially the same approach with a redundant step when they can be grabbed directly.</p>
  
  <p>Basically I want DTM to access any and all variables that are currently being set with on-page code, and my understanding is that in order to do that they must be stored in a data element first. Does anyone have any insight into this? </p>