Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, from what I understand, you have a page that will be inserted inside an iframe to a second page, but we need to know if the page that will host the iframe is the same domain as the calling page:</p> <ul> <li>If the page called by the iframe in the same domain of the calling page:</li> </ul> <p>In this case, you can insert the block of JavaScript Google Analytics, as both the iframe on the main page, and we have the measurement data from the main site, the iframe.</p> <ul> <li>If the page that calls the iframe belongs to a different domain:</li> </ul> <p>Some of the features that are measured are in frames within the site. These iframes indicate the domain, for example, site.com.br. Whenever a page in one domain has a frame to a different domain prevents the browser cookies that are stored inside the Iframe, which in the case would prevent the measurement.</p> <p>Cookies are nothing more than small text files that are stored by your browser on the machine. Most of our cookies are session cookies that are automatically deleted from your hard disk in the closing of the window. Persistent cookies also are used by websites to facilitate identification of your computer in the next visit you make to the site. Inactivation of the cookies can be made in your browser however, this will preclude all the functions available on the site.</p> <p>To allow the recording of cookies should add P3P headers in HTTP server that serves pages. This header causes no change in display mode or operation of the pages. Just instruct your browser to allow to record cookies of third, however, it has a bigger role in Internet Explorer. If you do not set, you can receive data from other browsers (Google Chrome, Firefox, Opera, etc. ..), but Internet Explorer still has a widespread use of the mass of the population.</p> <p>Imagine that we have four distinct domains:</p> <pre><code>www.site1.com www.site2.com www.site3.com www.site4.com </code></pre> <p>These four pages will receive the iframe tag:</p> <ul> <li><code>&lt;iframe Src="http://www.meusite.com.br/anuncio.php"&gt;</code></li> </ul> <p>The anuncio.php page need to have a call header p3p for accept the third party cookies.</p> <p>To add the header p3p use the code below (should be added to all pages that belong to the same domain)</p> <p>ASP.Net</p> <p><code>HttpContext.Current.Response.AddHeader ("p3p", "CP = \" "PSA CONE NOI ONL OUR BUS \" "")</code></p> <p>PHP</p> <p><code>header ('P3P: CP = "NOI PSA CONE ONL OUR BUS"');</code></p> <p>JSP</p> <p><code>response.setHeader ("P3P", "CP =" NOI PSA CONE ONL OUR BUS '")</code></p> <p>ColdFusion</p> <p><code>&lt;cfheader name="P3P" value="CP='PSA CONo OUR ONL NOI BUS'" /&gt;</code></p> <p>I hope to have helped:)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload