title: Qualtrics Embeds read by iFrame for GA
body: <p>Thanks for taking a look at this.  My task at hand is to put a html page in qualtrics, as an iframe (is the current thinking), and from that to see if I can get user data through event tracking to be sent to Google Analytics. So far, I understand how to send events to GA, and I'm working on the Custom Dimensions, but I have to wait a day to see if that's worked.</p>
  
  <p>What I need though, is a unique ID, which I generate with qualtric's random number generator php.  I need this unique ID to be sent to Google Analytics so that I can identify who's doing what on the embedded page.  So I've looked at the Qualtrics javascript stuff, and I can get qualtrics itself to generate the id through javascript:</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  var user = '${e://Field/user}';
  document.write (user);
  &lt;/script&gt;
  </code></pre>
  
  <p>This works to just display the number in Qualtrics, but I know I'm missing a huge step, because implementing the same thing in an embedded webpage won't work - will it?  I've tried, without success, and I've even used the </p>
  
  <pre><code>Qualtrics.SurveyEngine.addOnload(function()
  {});
  </code></pre>
  
  <p>without success. </p>
  
  <p>If you have any suggestions, that would keep the user in Qualtrics, but pass the embedded data for a unique individual's user events on an embedded webpage to GA, I'm all ears.  Any reconceptualizing is cool to.  </p>
  
  <p>I'm just trying to figure out who is doing what on my embedded pages (iframed webpages) in Qualtrics.</p>
  
  <p>Maybe this source will help:  <a href="http://ut1.qualtrics.com/WRAPI/QuestionAPI/classes/Qualtrics%20JavaScript%20Question%20API.html" rel="nofollow">http://ut1.qualtrics.com/WRAPI/QuestionAPI/classes/Qualtrics%20JavaScript%20Question%20API.html</a></p>
  
  <p>Thank you very much for any advice or direction.</p>