Subversion Repositories SmartDukaan

Rev

Rev 12530 | Rev 12552 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12530 Rev 12541
Line 222... Line 222...
222
	          'category': 'Digital',       // Category or variation
222
	          'category': 'Digital',       // Category or variation
223
	          'price': '$order.getTotalAmount()', // unit price - required
223
	          'price': '$order.getTotalAmount()', // unit price - required
224
	          'quantity': '1'                   // Quantity
224
	          'quantity': '1'                   // Quantity
225
	        });
225
	        });
226
	        ga('ecommerce:send');      // Send transaction and item data to Google Analytics.
226
	        ga('ecommerce:send');      // Send transaction and item data to Google Analytics.
227
    }
227
  
228
 
228
 
229
      (function() {
229
      (function() {
230
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
230
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
231
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
231
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
232
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
232
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);