title: Form submit after GTM dataLayer push
body: <p>I am using GTM's Enhanced Ecommerce to report events via pushes to the <code>dataLayer</code> variable.</p>
  
  <p>I have a situation where I need to push an event and immediately submit a form in the event callback. Google in theory provides the <code>eventCallback</code> mechanism for this, but consider the following code:</p>
  
  <pre><code>&lt;script&gt;
  dataLayer.push({
    'ecommerce': {
      'currencyCode': 'EUR',
      'impressions': [
       {
         'name': 'Donut Friday Scented T-Shirt',
         'id': '67890',
         'price': '33.75',
         'brand': 'Google',
         'category': 'Apparel',
         'variant': 'Black',
         'list': 'Search Results',
         'position': 2
       }]
    }
  },{
      'eventCallback': function() {
          document.location = productObj.url; // works
          document.getElementById('form-id').submit(); // fails (!?!)
      }
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Notes:</p>
  
  <ol>
  <li>There no Javascript errors on the page</li>
  <li>The form <code>#form-id</code> exists (not a matter of typos)</li>
  </ol>
  
  <p>Bottom line: how do I go about causing the form to submit after the push? Or is this not possible?</p>