Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a way within this module to also send over the Eloqua GUID information while submitting the form to Eloqua?
If so, how can this be achieved?
Comment | File | Size | Author |
---|---|---|---|
#14 | Screen Shot 2014-09-24 at 11.19.38 AM.png | 21.23 KB | drupalninja99 |
Comments
Comment #1
drupalninja99 CreditAttribution: drupalninja99 commentedI thought it did this already? Do you have any documentation you can reference?
Comment #2
aziznana786 CreditAttribution: aziznana786 commentedI am not sure about documentation, but with each form submission - there should be some hidden information that is sent along with the form submit. This information would be pulled from the individuals cookie making use of the Eloqua tracking information on the site. It normally uses a JS to pull the info or specific code as shown below:
Comment #3
drupalninja99 CreditAttribution: drupalninja99 commentedI am pretty sure we have this code already. It puts the GUID in a hidden variable. It's difficult to test though to know if it's working properly.
Comment #4
aziznana786 CreditAttribution: aziznana786 commentedWhat else does it send in the backend when a form is submitted?
I am assuming the following:
elqFormName - from the form itself
elqSiteID - from the configuration
elqCustomerGUID - getting pulled via the module
elqCookieWrite - not sure about this one.
the last one is supposed to have a "0" - is this sent automatically, or do we need to configure on the form.
Is there any way to see the cron post to Eloqua to see what info was passed i.e. if the GUID was passed correctly. I'm currently not getting any tracking.
Thank you!
Comment #5
aziznana786 CreditAttribution: aziznana786 commentedSeems I am still having the same problem.
I have my page tracking, my script for the form and everything intact (forms send to Eloqua fine) - however the GUID is not beign passed over when the form is being submitted. I think it may have to do with the JavaScript for the form to pull teh GUID?
Really need some help with this.
Comment #6
drupalninja99 CreditAttribution: drupalninja99 commentedSo the way it's supposed to work is there is a hidden variable called 'elqCustomerGUID' that gets populated with the customer GUID via javascript when the webform is submitted.
Here is the section of code where this happens:
Now this code was ported from D6. It's very possible there is a bug somewhere and this is hard for me to test. So that has been the holdup thus far.
Comment #7
drupalninja99 CreditAttribution: drupalninja99 commentedThe issue I am seeing is that it doesn't appear GetElqCustomerGUID() is defined. I would think one of our script includes would have this function but something is up with our javascript which leads this code never to get called.
Comment #8
drupalninja99 CreditAttribution: drupalninja99 commentedRelated ticket: https://drupal.org/node/1905500
Comment #9
drupalninja99 CreditAttribution: drupalninja99 commentedFixed in https://drupal.org/node/1905500 thx to an old patch. I will create a new release.
Comment #10
drupalninja99 CreditAttribution: drupalninja99 commentedComment #12
pearl.liang CreditAttribution: pearl.liang commentedHi Jay
Just want to let you know that I test "GUID" feature using a real eloqua account and it doesn't work. GUID value in the hidden field is blank.
Good news is that when I try to paste these codes below from this post (http://topliners.eloqua.com/thread/9388) in the body section of the webform and it works:
var _elqQ = _elqQ || [];
_elqQ.push(["elqSetSiteId", "xxxxxxxxxx"]);
_elqQ.push(["elqTrackPageView"]);
(function() {
function a() {
var b = document.createElement("script");
b.type = "text/javascript";
b.async = !0;
b.src = "//img.en25.com/i/elqCfg.min.js";
var a = document.getElementsByTagName("script")[0];
a.parentNode.insertBefore(b, a)
}
window.addEventListener ? window.addEventListener("DOMContentLoaded", a, !1) : window.attachEvent && window.attachEvent("onload", a)
})();
var timerId = null, timeout = 5;
function WaitUntilCustomerGUIDIsRetrieved() {
if(timerId) {
if(0 == timeout) {
return
}
if("function" === typeof this.GetElqCustomerGUID) {
//do something
return
}
timeout -= 1
}
timerId = setTimeout("WaitUntilCustomerGUIDIsRetrieved()", 500)
}
window.onload = WaitUntilCustomerGUIDIsRetrieved;
_elqQ.push(["elqGetCustomerGUID"]);
Comment #13
drupalninja99 CreditAttribution: drupalninja99 commentedSo my patch didn't work? When I tested it in chrome inspector it looked like it was populating the GUID correctly on form submission.
Comment #14
drupalninja99 CreditAttribution: drupalninja99 commentedI think the js I have is already doing this, see my screenshot. I just tested this again.