Author Topic: Remarkety changes for virtuemart  (Read 228 times)

roman5527

  • Jr. Member
  • **
  • Posts: 69
Remarkety changes for virtuemart
« on: July 26, 2017, 16:05:44 pm »
Hi, i use Remarkety services.

I need some changes  :


1. Customer identify code
Once the customer has logged in, you can notify Remarkety using the following JavaScript snippet:
Replace the sample email address with the real email address of the logged in customer.

Code: [Select]
[code]<script>
        var _rmData = _rmData || [];
        _rmData.push(["setCustomer", "email@sample.com"]);
        </script>
[/code]


2. Product View
To notify Remarkety about a customer who viewd a specific product you can use the following JavaScript snippet:
Replace the values of productId, productCategories, and productCategoriesIds with real values


Code: [Select]
<script>
        var _rmData = _rmData || [];
        _rmData.push(['productView', {
            productId: "XXXX",
            productCategories: ["Category1", "Category2"],
            productCategoriesIds: ["11101","11102"],
        }]);
        </script>


How do I do that?

Thanks