Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 869aeef

Browse files
author
Hannes Schippmann
committed
Feature: added "setUserId" documentation to Advanced guide
1 parent 7660e4a commit 869aeef

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Use list notation, and following prefixes:
1212

1313
### NEXT RELEASE
1414

15+
- Feature: added "setUserId" documentation to Advanced guide. (hs)
1516
- Feature: updated snippet to v3.1.0
1617
- Minor: added productImageUrl to addWidget section in upgrade guide. (hs)
1718

source/integration-guide/advanced.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,20 @@ setWidgetOverlayColor(rgba, ieColor)
169169
vs.setWidgetOverlayColor("rgba(255,255,0,0.5)", "50FFFF00");
170170

171171

172+
setUserId(userId)
173+
**userId** - String, identifying the current user of the retailers online
174+
store. It has to be a unique identifier that matches the one used on the
175+
order confirmation page. Setting the userId during integration enables
176+
Virtusize to show the personal purchase history to a user on a new device
177+
even before purchasing something at the store from this device.
178+
179+
**Example:**
180+
181+
::
182+
183+
vs.setUserId("UID_1234");
184+
185+
172186
ready(callback)
173187
**callback** - Function that is called when the integration script has
174188
loaded. These functions will be called after all the other functions of the

0 commit comments

Comments
 (0)