DISQUS

Stay N' Alive: Google Analytics for Facebook Apps

  • Ankur · 2 years ago

    Hmm.. interesting observation. I wonder if you can add adsense code this way

  • Adam · 2 years ago

    What URL did you give to google? For example, I gave apps.google.com/liarliar as the URL.

  • Adam · 2 years ago

    Typo -- that should have been apps.facebook.com/liarliar

  • uncle_jesse · 2 years ago

    You can't add your facebook url - it has to be the url your facebook canvas page is pointing to. My url is http://grandcentral.jessestay.com - my facebook callback page points to that, and that's what gets loaded in the iframe. Google can also read that, as there is no authentication required, so I just put the above code in my footer for that page.

  • Adam · 2 years ago

    Ah ok thanks.

  • uncle_jesse · 2 years ago

    I don't think adsense code would work that way - it may be readable outside Google, but facebook completely ignores what's between those tags. Facebook needs to render the javascript for you, or it will generate an error.


    One way you could get around it possibly is if you could figure out a way to read the output of the javascript for the ads, and convert it to flash. Flash/SWF works just fine in Facebook (with some limits on the profile pages).

  • Chris Nolan.ca · 2 years ago

    What I did, was just make a new index.html, put the code it it, hit the page, let google return the hit -- that 'activated' me. Now I've gone back to normal.