on 01-25-2024 04:02 PM
Before implementing any updates in Invoca, it's crucial to consider the following steps that require the involvement of a Heap Technical Resource:
Collaborate with your Heap Technical Resource to enable the Invoca Tag to retrieve the Heap Session ID and User ID from the dataLayer. In this particular use case, the Tag can extract the Heap Session ID using the heap.getSessionId()
function and the Heap User ID from the heap.userId
variable.
Work closely with your Heap Technical/Developer Resource to configure your Heap platform to accept two additional parameters in the Track server-side API: user_id & session_id. These parameters need to be dynamically passed in the API call.
Both of these tasks must be completed before any configuration can be implemented in Invoca.
Once these prerequisites are met, follow these steps:
Create two new Marketing Data Fields:
Generate a new draft of your Invoca Tag to extract values from the dataLayer. Consult your Heap Technical Resource for the appropriate commands, which might be heap.getSessionId()
for heap_getSessionId
and heap.userId
for heap_userId
. Confirm with your Heap Technical Resource before saving and pushing the draft live. Test the new functionality by clicking on the Test button in your draft tag by adding your website URL with ?invoca_rev=draft
at the end of your URL and call the phone number on the website to make sure the data was accurately captured.
After successfully reading and appending the Heap User ID and Session ID to the call, create a custom webhook to transmit this data to Heap.
Test the functionality by navigating to your website, calling an Invoca number, and confirming that the Heap IDs are captured and passed through the new custom webhook.