Sending Data to SessionCam

As mentioned in the Heap docs, the userIdcan only be used with anonymous users and the identitywith identified users, please view this link for more information: https://docs.heap.io/docs/using-identify

Here is some example code that will set a Custom Variable called ‘Heap User Id’. This will either be the value you have set for identified users or if this doesn’t exist it will be the value for anonymous users

Sample Code

Add this code after your SessionCam tag and your Heap tag to send the Heap User Id/identity as a Custom Variable in SessionCam