Tracking events in an iframe of other domain


#1

I am showing a survey deployed by SurveyMonkey on my website.Now the situation is like this:

As soon as i land on my website a survey from Survey Monkey pops up in a popup window.Now the problem is that snowplow tracker is deployed on html page of my website and i can clearly see that in page source but survey popup has it’s separate html.When i checked page source of survey popup, there is no script present on it. This leads me to a problem. I cannot track events happening on survey like form tracking , link clicks and page views etc. Could you tell me how can i track events happening on this survey popup?

If you want to see how the survey is popping at your end for testing.Just paste this script anywhere on your html page.Here is the script given by SurveyMonkey to display survey in a popup.

 <script>(function(t,e,s,o){var n,c,l;t.SMCX=t.SMCX||[],e.getElementById(o)||(n=e.getElementsByTagName(s),c=n[n.length-1],l=e.createElement(s),l.type="text/javascript",l.async=!0,l.id=o,l.src=["https:"===location.protocol?"https://":"http://","widget.surveymonkey.com/collect/website/js/tRaiETqnLgj758hTBazgdzZBkMIL9WXVJMRQ828edfgWIkRAm3EojHjIMGWCaaNG.js"].join(""),c.parentNode.insertBefore(l,c))})(window,document,"script","smcx-sdk");</script> 

P.S: I can clearly see GET requests by snowplow on my server whenever any event happens on my website.So snowplow has been configured properly but no GET request hits on my server my whenever any event happens inside survey popup.

Thanks in advance.


#2

@Amandeep_Singh, this pop-up appears to be a separate HTML document. It does not include the tracking code. You would need to have that code added to the body of the survey at Survey Monkey side (if they allow doing that).


#3

Yeah even i was thinking the same.Thanks for replying.