...
Here is an example on how you can add Custom Event Parameters to Product Basket event.<script>
function
Code Block | ||||
---|---|---|---|---|
| ||||
<script> function OnVisilabsLoaded(){ |
...
var vl = new Visilabs(); |
...
vl.AddParameter( |
...
"OM. |
...
pbid", |
...
"basket_ |
...
id"); |
...
vl.AddParameter( |
...
"OM. |
...
pb", |
...
"product_ |
...
code1"); |
...
vl.AddParameter( |
...
"OM: |
...
pu","quantity1"); |
...
vl.AddParameter( |
...
"OM. |
...
ppr","revenue1"); |
...
// additional custom parameters |
...
vl.AddParameter( |
...
"OM. |
...
cep1", |
...
"coupon_ |
...
code"); |
...
vl.AddParameter( |
...
"OM. |
...
cep2","options"); |
...
vl.Collect(); |
...
} |
...
</script> |
Note |
---|
Please make sure that Custom Event Parameters are enabled for your website/mobile app by contacting support. |