Quantcast
Channel: Topliners : All Content - All Communities
Viewing all articles
Browse latest Browse all 2909

Problem in eloqua asynchronous page tracking..Can you help?

$
0
0

Hi community,

 

     Am am working in eloqua 10 asynchronous page tracking scripts.

I have followed the Eloqua Asynchronous Tracking Scripts (with Support for First-Party Cookies : Open Beta Program, Summer '14) .

and integrated that code to my external website's page to track the page and to populate the details of a particular contact in that page. The first part is working and am getting tracking information from eloqua.

But the second thing seems to be not working ie the contact details not populated in the page.Given below is the code that i have tried

 

<html>

<body>

<script type="text/javascript" LANGUAGE='JavaScript'>

        var _elqQ = _elqQ || [];

        _elqQ.push(['elqSetSiteId', '123456789']);// suppose this is my site id ,not the actual one

        _elqQ.push(['elqTrackPageView']);

 

        (function () {

            function async_load() {

                var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true;

                s.src = 'http://img.en25.com/i/elqCfg.min.js';

                var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);

            }

            if (window.addEventListener) window.addEventListener('DOMContentLoaded', async_load, false);

            else if (window.attachEvent) window.attachEvent('onload', async_load);

        })();

    </script>

<SCRIPT TYPE='text/javascript' LANGUAGE='JavaScript'><!--//

 

function CreateRow(label, value)

{

    var p = document.createElement('p');

    var b = document.createElement('b');

    p.appendChild(b);

    b.appendChild(document.createTextNode(label));

    p.appendChild(document.createTextNode(value));

    document.getElementById('contactinfo').appendChild(p);

}

 

function SetElqContent()

{ alert('SetElqContent');

    if (this.GetElqContentPersonalizationValue)

    {

      CreateRow('General: ', GetElqContentPersonalizationValue(''));

      CreateRow('Email Address: ', GetElqContentPersonalizationValue('C_EmailAddress'));

      CreateRow('First Name: ', GetElqContentPersonalizationValue('C_FirstName'));

      CreateRow('Last Name: ', GetElqContentPersonalizationValue('C_LastName'));

      CreateRow('Title: ', GetElqContentPersonalizationValue('C_Title'));

      CreateRow('Company: ', GetElqContentPersonalizationValue('C_Company'));

      CreateRow('Business Phone: ', GetElqContentPersonalizationValue('C_BusPhone'));

      CreateRow('Address: ', GetElqContentPersonalizationValue('C_Address1'));

      CreateRow('City: ', GetElqContentPersonalizationValue('C_City'));

      CreateRow('Salesperson: ', GetElqContentPersonalizationValue('C_Salesperson'));

  } else

  {

      CreateRow('Personalization functions not found','');

  }

}

//--></SCRIPT>

 

<SCRIPT TYPE='text/javascript' LANGUAGE='JavaScript'><!--//

    _elqQ.push(['elqDataLookup', escape('ee8064e78750439db75280586860f863'),'<C_EmailAddress>mymail@gmail.com</C_EmailAddress>']);//this email address is present in eloqua contact

//--></SCRIPT>

 

<div id="contactinfo">

</div>

 

</body>

</html>

 

 

As per the eloqua documentation after loading this page the call back function SetElqContent get executed and the div is populated with specific contact details returned.

But haven't get any contact details associated with the given email(mymail@gmail.com) in the datalookupvalue .

Do you have any idea on this problem? Is anything wrong from my understanding or in the code that i have tried?

 

Any help will be appreciable.Eloqua Support,Eloqua Administrator,Leigh Burke

 

Hi

T.J. Fields,Fred Sakr do have any idea regarding the same?


Viewing all articles
Browse latest Browse all 2909

Trending Articles