How to Update an HTML Element with Visitor Data

Updated:

Leverage the below syntax to use Demandbase visitor data within an experiment (Documentation).

 

For Optimizely, it should look something like this:
$("#element").html("Hello " + window['optimizely'].data.thirdParty.demandbase.company_name)

 

For Optimizely X, it should look something like this:
$("#element").html("Hello " + optimizely.get('visitor')['vendor.demandbase'].company_name)

Was this article helpful?
0 out of 0 found this helpful