• 05 Jan 2023
  • 1 Minute to read
  • Dark


  • Dark

Article Summary


This article describes how to implement Jornaya's javascript within Landingi. Landingi is a landing page builder featuring landing page templates and a drag and drop GUI for custom page design.

Need additional support?

If you have any questions or require additional assistance, please contact


1. Add the leadid_token hidden input element

  1. In the Landingi page editor, Click Edit on your existing form element
  2. Click Form Fields
  3. Add element and select “Hidden”
  4. Leave the “Value” blank and add a Name attribute of leadid_token
    1. When defining the hidden input "name" there may be a delay between when the name is saved and that name updating on the published page.


2. Adding the LeadiDscript element to the page

  1. Drag a new HTML element to the bottom right corner of the page
  2. Edit the HTML element
  3. Add the following code to the “Add custom HTML” popup
    1. Be sure to use the campaign src value from your Jornaya Member Portal account as the Jornaya Campaign Script below is not specific to your campaign/account
    2. To get your Jornaya Campaign Code, please see the following article "How to Get Campaign Code from the Jornaya Portal"

Callback Function

<script type="text/javascript">
function myCallbackFunction(token) {
var field = document.getElementsByName('leadid_token')[0];
if (field) {
field.setAttribute('value', token);

Jornaya Campaign Script

<script id="LeadiDscript" type="text/javascript">
(function() {
var s = document.createElement('script'); = 'LeadiDscript_campaign';
s.type = 'text/javascript';
s.async = true;
s.src = '//';
var LeadiDscript = document.getElementById('LeadiDscript');
LeadiDscript.parentNode.insertBefore(s, LeadiDscript);
<noscript><img src='//' /></noscript>

3. Confirm the Jornaya script is working properly

  1. Save all changes and open the website in a new tab to confirm everything is working properly
  2. Follow the steps list in this article to confirm the integration is working as expected: Create Implementation Testing.

Was this article helpful?

What's Next