title: Will this count as two pageviews in GA, and do I need the second pageview?
body: <p>I'm having a hard time finding clear documentation on how to handle this situation and what best practise is.</p>
  <p><strong>Question:</strong><br>
  How off is my implementation and what steps should I take to fix it? Will it count as two pageviews? Do I need the second pageview?</p>
  <p><strong>Implementation</strong><br>
  I my head</p>
  <pre><code>&lt;script&gt;
    // analytics.js
  
    ga('create', 'UA-XXXXXXXX-XX', 'auto');
    ga('require', 'ec');
    ga('set', 'dimension1', 'somevalue')
    ga('set', 'dimension2', 'somevalue')
    ga('send', 'pageview');
  &lt;/script&gt;
  </code></pre>
  <p>on pageload in checkout</p>
  <pre><code>for (var i = 0; i &lt; cart.products.length; i++) {
    var product = cart.products[i];
  
    const gaProductObject = {
      'id': product.id,
      'name': product.name,
      'category': product.category
      'price': product.price,
      'quantity': product.quantity,
      'brand': product.brand
    }
    
    ga('ec:addProduct', gaProductObject)
  }
  
  if (this.user.isAuthenticated) {
    ga('ec:setAction', 'checkout', {
      'step': 2,
      'option': null
    })
  } else {
    ga('ec:setAction', 'checkout', {
      'step': 1,
      'option': null
    })
  }
  
  ga('set', 'dimension1', this.user.market)
  ga('set', 'dimension2', this.user.language)
  ga('send', 'event', 'checkout', 'view')
  ga('send', 'pageview')
  
  
  </code></pre>
  <p>Using: GA and Enhanced Ecommerce. <br>
  Site: hybrid .NET and Vue. No Virtual Views required page do pageloads on each navigation.</p>
  <p>Thankful for feedback.</p>