Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-83076923-11', 'auto');
- ga('send', 'pageview');
- ga('require', 'ecommerce', 'ecommerce.js'); // Load the ecommerce plug-in.
- ga('ecommerce:addTransaction', {
- 'id': '15698',
- 'affiliation': 'odjeca',
- 'revenue': '999.15',
- 'shipping': '555.00',
- 'tax': '525.00'
- });
- ga('ecommerce:addItem', {
- 'id': '15698',
- 'name': 'Neki proizvod',
- 'sku': '42344234',
- 'category': 'test',
- 'price': '5000.95',
- 'quantity': '1'
- });
- ga('ecommerce:send');
- </script>
- </head>
- <body>
- test
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement