E37 Installation Guide

E37 Installation Guide

  • 1 mth ago
  • 17

Install the helloretail partner JavaScript and Cart Tracking

For helloretail to work on your E37 webshop, you'll have to add the partner JavaScript. Please follow these simple steps to do this.

  1. Log in to your E37 admin panel
  2. Navigate to Kontrollpanelen > Webbplats > Allmänt > Script:  
     
  3. Tick the box Aktivera JavaScript-objekt på klienten and copy/paste your helloretail partner JavaScript into the Script för spårning field:
    <script type="text/javascript">
        (function() {
            var aws = document.createElement('script');
            aws.type = 'text/javascript';
            if (typeof(aws.async) != "undefined") { aws.async = true; }
            aws.src = (window.location.protocol == 'https:' ? 'https://d1pna5l3xsntoj.cloudfront.net' : 'http://cdn.addwish.com') + '/scripts/company/awAddGift.js#YOUR_PARTNER_ID';
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(aws, s);
        })();
        _awev=(window._awev||[]);_awev.push(["bind", "crawl_completed", function(){
            try {
                var productNumbers = [];
                var cartContents = [];
                for(var i = 0; i < TC.Cart.Articles.length; i++) {
                    productNumbers.push(TC.Cart.Articles[i].ID);
                    cartContents.push(encodeURIComponent(TC.Cart.Articles[i].VariantID) + ":" + TC.Cart.Articles[i].Quantity);
                }
                var cartUrl = ADDWISH_PARTNER_NS.$("link[rel=home]").prop("href") +
                    "/checkout?cart=" + cartContents.join(",");
    
                ADDWISH_PARTNER_NS.api.cart.setCart({
                    total: TC.Cart.SumInclVAT,
                    url: cartUrl,
                    productNumbers: productNumbers
                });
            } catch(e) {
                if (typeof(ADDWISH_PARTNER_NS) != 'undefined') {
                    ADDWISH_PARTNER_NS.log(e);
                }
            }
        }]);
    </script>
    
    Important: Once you have pasted it you should replace YOUR_PARTNER_ID with your own helloretail ID. You can find this by logging into your account.

     

Remember to Save your changes.

Share your Product feed with helloretail

For helloretail to know all the products in your webshop, please share your product feed with helloretail.

  1. Log in to your E37 admin panel
  2. Navigate to E-HANDEL > Exportfiler
     
  3. Next to the Keybroker Product Feed, click the link Visa fil
     
  4. Share this product feed URL with helloretail.

 

Install the helloretail conversion span

 

To track conversion and sales performance with helloretail as well as improve your algorithms for on-site recommendations, you'll have to add the helloretail conversion span. Please follow these simple steps to do this.

  1. Log in to your E37 admin panel
  2. Navigate to Kontrollpanelen > Webbplats > Allmänt > Script
     
  3. In the field Script för omvandlingsspårning i kassan:

    Paste the following code:
    <script type="text/javascript">
        var awConversionSpan = document.createElement("span");
        awConversionSpan.setAttribute("class", "addwish-conversion");
        if(TC.Order){
            awConversionSpan.setAttribute("data-ordernumber", TC.Order.ID);
        }
        awConversionSpan.setAttribute("data-total", TC.Cart.SumInclVAT);
        awConversionSpan.setAttribute("data-email", "@write(User.Email)");
        for (i = 0; i < TC.Cart.Articles.length; i++) {
            var awProduct = document.createElement("span");
            awProduct.setAttribute("class", "addwish-product");
            awProduct.setAttribute("data-productnumber", TC.Cart.Articles[i].ID);
            awProduct.setAttribute("data-quantity", TC.Cart.Articles[i].Quantity);
            awConversionSpan.appendChild(awProduct);
        }
        document.getElementsByTagName('body')[0].appendChild(awConversionSpan);
    </script>


 

Remember to Save your changes.

Create a blank page for search results

You’ll need to create a new page, for helloretail to be able to display the search results to the user. Here’s a simple guide on how to do this.

  1. Log in to your E37 admin panel
  2. Navigate to WEBBPLATS > Sidor
     
  3. Choose to Add new page ("Ny sida")
     
  4. Provide a name for this new page, e.g. call it Search results:
     

    Remember to Save ("Spara")
  5. Once this new page has been added, click the page in the page list to Edit
     
  6. When editing the page, it's important to Hide the page. You do this under Status by selecting "Dold"
     

    Remember to Save ("Spara") your changes
  7. Finally, share this new page with helloretail – for helloretail to finalize the setup of dynamic search.
Follow
  • 1 mth agoLast active
  • 17Views
  • 1 Following