Signin  Pricing  Examples  Support

Libraries > ArboroGoogleAnalytics.js

ArboroGoogleAnalytics.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://game-legends.com/engine/Shopware/Plugins/Community/Frontend/ArboroGoogleAnalytics/Views/frontend/_resources/javascript/ArboroGoogleAnalytics.js

Function Explorer


Libraries on game-legends.com


ArboroGoogleAnalytics.js

cookie-bar.js

jquery.swag_live_shopping.js

bootstrap.min.js

jquery.1.9.min.js

jquery-ui-1.10.3.custom.min.js

respond.min.js

scripts.js

shopware-responsive.min.js



Explore More


ds-sleight.js

cookies.js

translate.js

prototype.js

ArboroGoogleAnalytics.js
				
//<![CDATA[
function ArboroGoogleAnalyticsAddToCart(product) {
    ArboroGoogleAnalytics('ec:addProduct', {
        'id': product.id,
        'name': product.name,
        'brand': product.brand,
        'variant': product.variant,
        'price': product.price,
        'quantity': product.quantity
    });
    ArboroGoogleAnalytics('ec:setAction', 'add');
    ArboroGoogleAnalytics('send', 'event', 'UX', 'click', 'add to cart');
}

function ArboroGoogleAnalyticsClickOnProduct(product, url) {
    ArboroGoogleAnalytics('ec:addProduct', {
        'id': product.id,
        'name': product.name,
        'category': product.category,
        'brand': product.brand,
        'position': product.position
    });
    ArboroGoogleAnalytics('ec:setAction', 'click', {list: product.list});

    ArboroGoogleAnalytics('send', 'event', 'UX', 'click', product.list, {
        'hitCallback': function () {
            document.location = url;
        }
    });
}

jQuery(document).ready(function ($) {
    jQuery('.artbox .inner a.artbox_thumb, .artbox .inner a.more').click(function (e) {
        var id = $(this).closest('.inner').find('input.ArboroGoogleAnalyticsProductOrderNr').val();
        var product = productList[id];
        if (ArboroGoogleAnalytics.loaded && product) {
            e.preventDefault();
            ArboroGoogleAnalyticsClickOnProduct(product, $(this).attr('href'));
        }
    });
});
//]]>


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z