Setting up website tracking on VirtueMart

In order for the Browse Abandonment campaign to work, you will need to make sure that web tracking is installed and activated in your VirtueMart store.

  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 || [];
    push(['setStoreKey', 'YOUR-STORE-ID']);
    <script>(function(d, t) {
      var g = d.createElement(t),
      s = d.getElementsByTagName(t)[0];
      g.src = '';
      s.parentNode.insertBefore(g, s);
    }(document, 'script'));
     var _rmData = _rmData || [];
     _rmData.push(["setCustomer", 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 || [];
    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.

Have more questions? Submit a request


Please sign in to leave a comment.