Skip to main content

IQ Option

ga('require', 'ec'); UA-67838709-1 Hello, AMP Analytics

Google

Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.

ga('ecommerce:addItem', { 'id': '1234', // Transaction ID. Required. 'name': 'Fluffy Pink Bunnies', // Product name. Required. 'sku': 'DD23444', // SKU/code. 'category': 'Party Toys', // Category or variation. 'price': '11.99', // Unit price. 'quantity': '1' // Quantity. }); function() { var ecommerceData = { 'ecommerce': { 'purchase': { 'actionField': {'id': 'T12345'}, 'products': [ // List of productFieldObjects ], ... // Rest of the code should follow the data layer syntax. } }; return ecommerceData; } ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); ga('ec:addImpression', { 'id': 'P12345', // Product details are provided in an impressionFieldObject. 'name': 'Android Warhol T-Shirt', 'category': 'Apparel/T-Shirts', 'brand': 'Google', 'variant': 'black', 'list': 'Search Results', 'position': 1 // 'position' indicates the product position in the list. }); ga('ec:addImpression', { 'id': 'P67890', 'name': 'YouTube Organic T-Shirt', 'category': 'Apparel/T-Shirts', 'brand': 'YouTube', 'variant': 'gray', 'list': 'Search Results', 'position': 2 }); ga('send', 'pageview'); // Send product impressions with initial pageview. // Called when a link to a product is clicked. function onProductClick() { ga('ec:addProduct', { 'id': 'P12345', 'name': 'Android Warhol T-Shirt', 'category': 'Apparel', 'brand': 'Google', 'variant': 'black', 'position': 1 }); ga('ec:setAction', 'click', {list: 'Search Results'}); // Send click with an event, then send user to product page. ga('send', 'event', 'UX', 'click', 'Results', { hitCallback: function() { document.location = '/product_details?id=P12345'; } }); } Android Warhol T-Shirt ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); /** * Called when the user begins the checkout process. * @param {Array} cart An array representing the user's shopping cart. */ function checkout(cart) { for(var i = 0; i < cart.length; i++) { var product = cart[i]; ga('ec:addProduct', { 'id': product.id, 'name': product.name, 'category': product.category, 'brand': product.brand, 'variant': product.variant, 'price': product.price, 'quantity': product.qty }); } } // In the case of checkout actions, an additional actionFieldObject can // specify a checkout step and option. ga('ec:setAction','checkout', { 'step': 1, // A value of 1 indicates this action is first checkout step. 'option': 'Visa' // Used to specify additional info about a checkout stage, e.g. payment method. }); ga('send', 'pageview'); // Pageview for payment.html Measure checkout step 2: ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); /** * Called when the user begins the checkout process. * @param {Array} cart An array representing the user's shopping cart. */ function checkout(cart) { for(var i = 0; i < cart.length; i++) { var product = cart[i]; ga('ec:addProduct', { 'id': product.id, 'name': product.name, 'category': product.category, 'brand': product.brand, 'variant': product.variant, 'price': product.price, 'quantity': product.qty }); } } ga('ec:setAction','checkout', {'step': 2}); ga('send', 'pageview'); // Pageview for shipping.html // Called when user has completed shipping options. function onShippingComplete(stepNumber, shippingOption) { ga('ec:setAction', 'checkout_option', { 'step': stepNumber, 'option': shippingOption }); ga('send', 'event', 'Checkout', 'Option', { hitCallback: function() { // Advance to next page. } }); } ga('create', 'UA-XXXXX-Y', 'auto'); ga('require', 'linkid'); ga('send', 'pageview'); ga('create', 'UA-XXXXX-Y', 'auto'); ga('require', 'linkid', { 'cookieName': '_ela', 'duration': 45, 'levels': 5 }); ga('send', 'pageview');

Comments

Popular posts from this blog

Win Lamborghini from InstaForex

The best broker in Asia www.instaforex.com Win Lamborghini from InstaForex Dear Traders, We want to remind you that we have been holding an unprecedented campaign with a  Lamborghini Huracan  as the main prize. The draw of the legendary sports car of the most prestigious brand has been running from December 26, 2016 and will end on December 20, 2019. Currency market leader InstaForex gives you a chance to win this luxury auto. Register for the campaign  and seize the chance to get the main prize. Lamborghini Huracan will be given to a random winner, who will be determined with the help of Lamborghini number. All you have to do is deposit at least $1,000 to your trading account and apply to join the campaign. You can register up to 100 accounts: the more accounts you have, the bigger your winning chance is. We will name the winner on December 20, 2019 at 23:59 when the exchange rates of five major currency pairs will be fixed. Take part in t...