Eloqua Webforms - GUID not passed; no Eloqua page visit recorded

Created on 17 September 2021, over 3 years ago
Updated 25 April 2024, 8 months ago

Problem/Motivation

The Eloqua integration works and data is passed from Drupal webform to Eloqua form. Although all the Eloqua tracking scripts are in place, when a new visitor submits the webform, the page visit is not tracked in Eloqua. This is done via GUID.
We have also added the GUID function to retrieve and map the value to a hidden field; since the submission is done via API, the GUID might not be passed correctly. Is there a workaround for this?

Drupal.behaviors.eloquaApiForm = {
  attach: function(context) {
    var elqCustomerLoaded = setInterval(function () {
      if (typeof GetElqCustomerGUID !== 'function') {
        var elqLoaded = setInterval(function() {
          if (typeof _elqQ !== 'undefined') {
            _elqQ.push(['elqGetCustomerGUID']);
            clearInterval(elqLoaded);
          }
        }, 500);
      }
      else {
        document.querySelector("input[name='elqcustomerguid']").value = GetElqCustomerGUID();
        clearInterval(elqCustomerLoaded);
      }
    }, 500);
  }
};

Steps to reproduce

Use a clean browser and submit the form; the submission will be recorded in Eloqua as a form submission, but the page hosting the form will not be recorded as a page visit.
As if the visitor GUID is not being passed to be mapped to newly created contact.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom CostinVieru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024