Web Tracking for VirtueMart Browse Abandonment

Browse abandonment campaign allows you to send emails with product recommendations based on what customers have recently viewed in your store.

Browse abandonment emails can be very effective. This type of email have high contribution to your purchase funnel and can drive additional revenue. However, since the nature of these emails is very personal, you should be sensitive and not overuse this powerful tool.

The new Browsing Abandonment campaign is now available to VirtuMart store owners.
To get this campaign up and running, you will need to setup a "web tracking code" in your VirtueMart admin. This is an easy 2 minutes setup

  1. Find your store ID from Remarkety->settings->API keys
  2. Find the file index.php file of your active Joomla template. From Joomla admin go to Extensions->templates->templates->[your template name]->index.php
  3. Just before the closing </body> add (don’t forget to insert your store ID):

     var _rmData = _rmData || [];
     _rmData.push(['setStoreKey', 'YOUR-STORE-ID']);
    <script>(function(d, t) {
      var g = d.createElement(t),
      s = d.getElementsByTagName(t)[0];
      g.src = 'https://d3ryumxhbd2uw7.cloudfront.net/webtracking/track.js';
      s.parentNode.insertBefore(g, s);
    }(document, 'script'));
     var _rmData = _rmData || [];
     _rmData.push(["setCustomer", "<?php echo JFactory::getUser()->email; ?>"]);
  4. In Joomla find the file /components/com_virtuemart/views/productdetails/tmpl/default.php
  5. Just before the line (somewhere at the beginning of the file):

    echo shopFunctionsF::renderVmSubLayout('askrecomjs',array('product'=>$this->product));


    vmJsApi::addJScript ( 'rm_webtrack_product', 'var _rmData = _rmData || [];
    _rmData.push(["productView", {
                productId: "' . $this->product->id . '",
                productCategories: ["' . $this->product->category_name . '"],
                productCategoriesIds: ["' . $this->product->virtuemart_category_id . '"],


     6. Now, in Remarkety go to settings->web tracking. You should see a message saying that                 web tracking is installed.

Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.