Forums

Google Analytics not showing referring source (10 posts)

  1. armored
    Member
    Posted 3 years ago #

    Hi,

    I have WP 2.5.1 with Aaron's Google Analytics plug-in (http://wordpress.org/extend/plugins/wp-google-analytics/#post-5266).

    Everything seems to be working except of the referring source. I have links to this blog placed on other sites but the referring source always show up as being my blog and not these other sites.

    Any idea what might went wrong would be greatly appreciated!

    Many thanks in advance for your time and help!

  2. moshu
    Member
    Posted 3 years ago #

    Why do you need any plugin for placing the analytics code in a WP file? Paste the code G. gives you in the footer and it should work. It works for me...

  3. armored
    Member
    Posted 3 years ago #

    I'm afraid this is not a plug-in issue but more a WP setting I'm unable to find. I'm using the plug-in because this give me more options.

    Thanks for replying thou :)

  4. whooami
    Member
    Posted 3 years ago #

    thats not the result of any WP setting. WP doesnt do magic goobly goop when it comes to determining, or more importantly, setting the referer -- thats a PHP predefined variable and as such a host thing more than likely.

    Unless that plugin you are using is using register globals to determine the referer, and then somehow passing the data to the google code (in which case it ought to be shitcanned or rewritten). Until you do the normal thing, and put the google code in the "right" way, you wont ever know.

  5. armored
    Member
    Posted 3 years ago #

    Until you do the normal thing, and put the google code in the "right" way, you wont ever know.

    I'm sorry but I don't see what you mean... what "right place"?

  6. armored
    Member
    Posted 3 years ago #

    Any further idea? Thanks!

  7. armored
    Member
    Posted 3 years ago #

    Sorry for bumping it but I really need help with this... Thanks!

  8. Pinoy.ca
    Member
    Posted 3 years ago #

    First, are you using the code Google gave you, i.e.,

    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-xxxxxx-x");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

    Second, would you please compare the Google Analytics code you pasted in the plugin's admin area and what appears on the HTML source code of the pages of your blog? If there's a difference then the plugin is breaking the GA code. Ask Aaron to fix it.

    Let me know here what you discover.

    In the future, to ask for support on one particular plugin, start the topic on the plugin's page, e.g., "Write a new topic" on http://wordpress.org/extend/plugins/wp-google-analytics/ .

  9. armored
    Member
    Posted 3 years ago #

    Thanks for the tips! I never noticed there is a plug-in specific forum. Thanks for that too! :)

    I checked again and the code is the same in the page source as it is in the admin panel.

  10. Aaron D. Campbell
    Member
    Posted 3 years ago #

    I must have missed this thread somehow. Anyway, the plugin set to it's simplest settings, just adds the Google Analytics code to the footer of your blog. Some of the more advanced settings ignore certain user types (in conjunction with role-manager, you can ignore/watch any user), track 404s in a friendly way (so you can find them and fix them), and even rewrite outgoing links to log them as well. However, it never touches the referrer. Are you positive that you have traffic coming from those links? If you are testing it by clicking them yourself, are you ignoring your user level?

Topic Closed

This topic has been closed to new replies.

About this Topic