خرید بک لینک

Vote count: 0

Let's pretend I have a website that is hosted on app.com. My website is published on another website hosted on platform.com throught an iframe.

<html class="platform.com">
    <body>
         <iframe src="app.com">
              //ga init code
              ga("create", "UA-0000000", {
                   cookieDomain: "auto",
                   storage: "none",
                   userId: options.userId,
                   clientId: options.userId
              });
         </iframe>
    </body>
</html>

The problem is that I can see requests dispatching to google-analytics.com/collect, but no data is actually submitted to Google Analytics reports. I see that issue is related to the current domain and the request source domain mismatch, but I can't figure out what I can actually do to solve this.

As you understand, I have no access to the platform.com code, all I can manipulate is the code inside iframe.

I used these sources:

About GA cross-domain tracking

About GA cookies

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 18 فروردين 1395 ساعت: 17:42

صفحه بندی