Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- jQuery(function($) {
- $( '.single_add_to_cart_button' ).click( function() {
- ga( 'ec:addProduct', {'id': '11447-1483-BILET-EARLY-BIRD-BUCUREȘTI','name': 'Bilet București','quantity': $( 'input.qty' ).val() ? $( 'input.qty' ).val() : '1'} );
- ga( 'ec:setAction', 'add' );
- ga( 'send', 'event', 'UX bilet bucurest', 'click bilet bucuresti', 'add to cart bilet bucuresti' );
- });
- ga( 'ec:addProduct', {
- 'id': '11447-1483-BILET-EARLY-BIRD-BUCUREȘTI',
- 'name': 'Bilet București',
- 'category': 'Bilete',
- 'price': '290',
- } );
- ga( 'ec:setAction', 'detail' );
- $( '.add_to_cart_button:not(.product_type_variable, .product_type_grouped)' ).click( function() {
- ga( 'ec:addProduct', {'id': ($(this).data('product_sku')) ? ($(this).data('product_sku')) : ('#' + $(this).data('product_id')),'quantity': $(this).data('quantity')} );
- ga( 'ec:setAction', 'add' );
- ga( 'send', 'event', 'UX bilet bucuresti', 'click bilet bucuresti', 'add to cart bilet bucuresti' );
- });
- ga( 'send', 'pageview' );
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement