Direct Calls from Iframe | Community
Skip to main content
Level 2
December 22, 2016
Solved

Direct Calls from Iframe

  • December 22, 2016
  • 3 replies
  • 2005 views

Hi all - 

I have a webpage that has an iframe on it. I have a form on the iframe'd page. Using direct call rules, i have a string passed to Adobe Analytics each time the form is submitted. 

The problem is, i have a tracking code on the parent page, but the Direct Call rule that is being fired is not getting attributed to the campaign code. 

I have the marketing cloud service setup. How can i resolve this issue?

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParitMittal

Hi Leep,

Also , To  Successfully track the iframe page You just need to add the same DTM Header & Footer code (that you have on parent page) to iframe page/form and yes, there will be multiple server calls and you'll need to suppress one by adding this to your tool custom code:

var isInIframe = (parent !== window)
if(isInIframe ){
return false; //this will prevent the Adobe Analytics tool to send a pageview image request
}else{
return true; //this will allow the Adobe Analytics tool to send a pageview image request
}

Thanks & Regards

Parit Mittal

3 replies

jantzen_b
Adobe Employee
Adobe Employee
December 28, 2016

Hi Leep,

There is a few things we need to verify in this case.

1) Can you see Analytics beacons being fired from both the page and the iframe?
2) If you are seeing those beacons, do they contain the same 'mid' parameter?
3) If you can see the Analytics beacon being sent from the iframe, does that beacon contain the tracking code?

 

Once we know the answer to these questions, we can figure out where we need go next.

 

Cheers,

Jantzen

ParitMittal
ParitMittalAccepted solution
Level 10
January 2, 2017

Hi Leep,

Also , To  Successfully track the iframe page You just need to add the same DTM Header & Footer code (that you have on parent page) to iframe page/form and yes, there will be multiple server calls and you'll need to suppress one by adding this to your tool custom code:

var isInIframe = (parent !== window)
if(isInIframe ){
return false; //this will prevent the Adobe Analytics tool to send a pageview image request
}else{
return true; //this will allow the Adobe Analytics tool to send a pageview image request
}

Thanks & Regards

Parit Mittal

ParitMittal
Level 10
January 6, 2017

Hi ,

Is the above issue resolved or is there anything else that we can help you with ?

Thanks & Regards

Parit Mittal