Various virtual pageview implementation methods for Google Analytics
<script>
// Event - include only if you want to log event or use an event-based goal
ga('send', 'event', 'Link', 'Click', 'Add to Cart');
// Virtual pageview for GTM implementation
dataLayer.push('send', 'pageview', '/add-to-cart');
// Virtual pageview for standard universal analytics implementation
ga('send', 'pageview', '/add-to-cart');
</script>