Results 1 to 10 of 10

Google adsense not showing correctly in analytics

This is a discussion on Google adsense not showing correctly in analytics within the General Discussion forums, part of the LiveStats for Google Analytics category; Google analytics account not showing correct adsense earnings. It is showing adsense revenue correctly for non vbulletin pages. In my ...

  1. #1
    Member Array
    Real Name
    Ilavarasi
    Join Date
    Mar 2010
    Location
    Coimbatore
    Posts
    42
    Liked
    0 times

    Google adsense not showing correctly in analytics

    Google analytics account not showing correct adsense earnings. It is showing adsense revenue correctly for non vbulletin pages. In my page source of Vbulletin forums i am seeing that
    HTML Code:
    <script type="text/javascript">
    //<![CDATA[
    window.google_analytics_uacct = "UA-xxxxxxx-x";
    //]]>
    </script>
    But in the non vbulletin pages these codes are not showing in page source.
    I can't fine the above code in vbulletin templates. can somebody guide me to find it.
    non vb pages .

    thanks in advance.

  2. #2
    vBSEO Staff Array Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    675 times
    Blog Entries
    2
    That code is supposed to be there. It is optional for the main (ua-xxxx-1) account, but will not hurt tracking.

    Make sure your account is configured correctly
    https://www.google.com/adsense/suppo...?answer=141997
    Brian Cummiskey / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member Array
    Real Name
    Ilavarasi
    Join Date
    Mar 2010
    Location
    Coimbatore
    Posts
    42
    Liked
    0 times
    Thanks for your reply.

    I think account is configured correctly. Because "adsense earning for non vbulleting pages are showing correctly in analytics page". I had searched for the above code in vbulletin template but can't find the code.

  4. #4
    Member Array
    Real Name
    Ilavarasi
    Join Date
    Mar 2010
    Location
    Coimbatore
    Posts
    42
    Liked
    0 times
    Anybody is there to answer me. I had searched for the code but cannot find it.


    Dont know why the line is commented.
    //<![CDATA[
    window.google_analytics_uacct = "UA-xxxxxxx-x";
    //]]>

  5. #5
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Hello,

    if you have non-empty cookie domain defined in vB admincp options, you migh tneed to update functions_vbseo.php file:
    find:
    PHP Code:
    window.google_analytics_uacct "'.VBSEO_ANALYTICS_CODE.'"
    add below:
    PHP Code:
    window.google_analytics_domain_name="'.addslashes($vboptions['cookiedomain']).'"
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Member Array
    Real Name
    Ilavarasi
    Join Date
    Mar 2010
    Location
    Coimbatore
    Posts
    42
    Liked
    0 times
    Thanks for ur reply now i had updated the functions_vbseo.php file. Now the code look like the below

    <script type="text/javascript">
    //<![CDATA[
    window.google_analytics_uacct = "UA-xxxxxxx-x";
    window.google_analytics_domain_name=".penmai.com";
    //]]>
    </script>

    The comment line doesn't change, and what is the "//<![CDATA[" this not the code given by google. Then why it is inserted there.

  7. #7
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    That looks ok. CDATA is for the enclosure of javascript code.
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #8
    Member Array
    Real Name
    Ilavarasi
    Join Date
    Mar 2010
    Location
    Coimbatore
    Posts
    42
    Liked
    0 times
    Thanks once again. Is this will show the adsense revenue in google analytics.

  9. #9
    Senior Member Array webmastersitesi's Avatar
    Join Date
    Oct 2007
    Posts
    521
    Liked
    16 times
    Blog Entries
    3
    You can make this setting in analytics account.

  10. #10
    Junior Member Array
    Real Name
    mike
    Join Date
    Oct 2008
    Posts
    5
    Liked
    0 times
    I had a problem with analytics and adsense data not showing. Then I realized that before I started using vbseo I had analytics code in my headinclude_bottom template.... removed that and it started working.

Similar Threads

  1. Bug Report Google Analytics not showing in control Panel?
    By mickknutson in forum General Discussion
    Replies: 1
    Last Post: 07-19-2010, 12:46 PM
  2. Google Analytics showing up in Who's Online?
    By melbo in forum General Discussion
    Replies: 2
    Last Post: 03-06-2010, 02:12 AM
  3. Please help with Google Analytics and Adsense
    By jaryx in forum Troubleshooting
    Replies: 7
    Last Post: 09-30-2009, 07:32 AM
  4. Installed Google Analytics, nothing showing up
    By sovaward in forum Analysis: Traffic & SERPS
    Replies: 3
    Last Post: 07-25-2008, 05:11 PM
  5. google analytics not showing any hits
    By JustinBrand in forum Analysis: Traffic & SERPS
    Replies: 12
    Last Post: 05-22-2007, 02:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •