WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] Universal Analytics not working (38 posts)

  1. allivant
    Member
    Posted 6 months ago #

    I've upgraded my tracking to Universal from the Analytics account. When I try to validate the code I get the following error: "Your Analytics tracking code does not include the necessary support for the Demographics and Interest reports". I've unchecked it in the plugin settings and saved then rechecked and resaved. I don't think there is any code I have to update or add right?

    http://wordpress.org/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 6 months ago #

    Hi allivant,

    This isn't strictly an All in One issue, but as far as I can tell what you're trying to do Isn't supported by Google yet for the Universal tracking code. I'd suggest switching back to using the classic Google Analytics tracking, or failing that, try skipping validation and see whether or not it works at all.

  3. allivant
    Member
    Posted 6 months ago #

    it tracks just fine, just doesn't have the new features that universal does. is it something that is going to be tackled to support in All in One?

  4. Peter Baylies
    Member
    Plugin Author

    Posted 6 months ago #

    Hi allivant,

    We do plan on supporting this once it is possible to do so.

  5. guyshomenet
    Member
    Posted 6 months ago #

    I'll add to the discussion.

    Been using SEO Pack for a long time. Decided to move one site to Universal Analytics (to get the demographic info). Added Google Analytics ID and checked "Use Universal Analytics".

    Examining the page source code shows none of what Google specifies as necessary, namely:

    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';

    Going to uncheck the option as I'm not seeing the Classic ga.js code either.

  6. antoinemenini
    Member
    Posted 5 months ago #

    I have exactly the same problem : I checked "Use Universal Analytics" and nothing happened.

  7. guyshomenet
    Member
    Posted 5 months ago #

    Doubling down. Several updates later, and this is still not working. Do not use UA because there will be no tracking inside Google Analytics ... nada, nothing.

    Tried to contact the company who makes this plugin and they basically wanted me to subscribe for support before telling me if this was broken or not. I was temped to buy the pro version before, but not openly reporting bugs or features is a very bad sign.

  8. Peter Baylies
    Member
    Plugin Author

    Posted 5 months ago #

    Hi guyshomenet,

    This is not a bug; as I explained above, this is a feature that Google does not yet support in their Universal Analytics code. Do not use Universal Analytics for this until they do, there is nothing we can do about it. You are free to report actual bugs both here and via our contact form.

  9. guyshomenet
    Member
    Posted 5 months ago #

    Well Peter, I'm in and out of GA all day long and Google details the required code and migration steps. So recapping (for the broader WP audience):

    1) Google has it documented.

    2) There is an exposed hook in All-in-One for it.

    3) The hook produces no results.

    Given #2 and #3, at very least I suggest All-in-One remove the option. If it doesn't work (for any reason) don't present it to users.

    That being said, having been a systems programmer and having worked on the periphery of the of the Google ecosystem, I seriously doubt it is a Google failure. They tend not to publish pages of detailed documentation for a service they do not offer.

  10. Peter Baylies
    Member
    Plugin Author

    Posted 5 months ago #

    Hi guyshomenet,

    In that case, kindly point me to the documentation for how to set up demographics and Interest reports for Universal Analytics. If Google has updated this from the Beta, I'd like to know about it, and we will implement it when they do.

  11. antoinemenini
    Member
    Posted 5 months ago #

    Hi Peter,
    I think you can find everything here

  12. Peter Baylies
    Member
    Plugin Author

    Posted 5 months ago #

    Hi antoinemenini,

    You're correct; I'll quote from that page:

    Universal Analytics does not currently support the the dc.js JavaScript and related features (Remarketing, Google Display Network Impression Reporting, DoubleClick Campaign Manager Integration, and the Google Analytics Demographics and Interests Reports). If you use any of these features, upgrade to Universal Analytics after dc.js is supported.

  13. guyshomenet
    Member
    Posted 5 months ago #

    Via the same page, I had focused on the analytics.js library.

    https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs

    "The analytics.js library is the latest JavaScript library for Google Analytics designed to take advantage of _all_ the new features of the Universal Analytics platform."

  14. Peter Baylies
    Member
    Plugin Author

    Posted 4 months ago #

    Great news, guyshomenet. Given this new information, kindly show me where on that page they talk about how to set up demographics and Interest reports for Universal Analytics, as opposed to the bit I quoted where they explicitly say they don't support it yet.

  15. guyshomenet
    Member
    Posted 4 months ago #

    If I am reading the revised Google pages correctly, even the dc.js hooks are supported as of this mornings out-of-beta announcement.

    What, if anything, needs to happen to the all-in-one code to make UA work?

    http://analytics.blogspot.com/2014/04/universal-analytics-out-of-beta-into.html

  16. Peter Baylies
    Member
    Plugin Author

    Posted 4 months ago #

    Hi guyshomenet,

    It's a fairly simple change to the code, and will be supported in the next release, which we plan to have out this week.

  17. dr.user
    Member
    Posted 4 months ago #

    Also waiting for the Google UA to be updated in this plugin. ;)

  18. Peter Baylies
    Member
    Plugin Author

    Posted 4 months ago #

    Hi dr.user,

    This is done, as of 2.1.5 -- update if you haven't yet!

  19. dr.user
    Member
    Posted 4 months ago #

    My bad... Auto update glitch. I'll await GA to update on this site. Thanks!

  20. dr.user
    Member
    Posted 4 months ago #

    Is there something missing for the Demographics and Interests though?

    I just checked another site that did catch the update update with UA however still shows the following:

    Your Demographics and Interest Reports have been enabled, but your Analytics tracking code does not include the necessary support to show them. Learn more about the simple, one-line, one-time change to your tracking code to add this support.

  21. Peter Baylies
    Member
    Plugin Author

    Posted 4 months ago #

    Hi dr.user,

    What's your site? Make sure you check the box that says '"Display Advertising" Tracking'.

  22. dr.user
    Member
    Posted 4 months ago #

    O.K... I've checked that box off:
    "Display Advertising"(Support for Doubleclick Display Advertising tracking)

    I'll wait now to see if GA will update over the next few days.

    Thanks.

  23. guyshomenet
    Member
    Posted 4 months ago #

    Maybe I'm missing something obvious, but with 2.1.5 GA insists tracking code changes need to be made (I have reentered my GA ID, enabled UA and Display Advertising Tracking).

    I can confirm the analytics.js script appears in the source.

    See http://www.guysmith.org for the test case.

  24. Peter Baylies
    Member
    Plugin Author

    Posted 4 months ago #

    Hi guyshomenet,

    Thanks for that; if you can tell me what that tracking code change is, I'd be happy to look into it. It looks correct to me as per this documentation that Google has for it.

  25. guyshomenet
    Member
    Posted 4 months ago #

    @Peter, it looks like this may have been induced by the problem Google was having yesterday. Before Google Analytics rejected validation, but today it worked. Go figure.

    Thanks for responding. Looking forward to the new data.

  26. Peter Baylies
    Member
    Plugin Author

    Posted 4 months ago #

    Awesome, thanks for the feedback; yes, it looks like they've been busily updating things lately.

  27. dr.user
    Member
    Posted 4 months ago #

    This is what my GA says to change: one-line, one-time change to your tracking code (BOLDED)

    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    ga('create', 'UA-XXXXXX-XX', 'example.com');
    ga('require', 'displayfeatures');
    ga('send', 'pageview');

    Thanks.

  28. Peter Baylies
    Member
    Plugin Author

    Posted 4 months ago #

    Hi dr.user,

    See above, the bolded part is what should get added when you check the box that says ""Display Advertising"(Support for Doubleclick Display Advertising tracking)", assuming you have the latest release of the plugin as well.

  29. dr.user
    Member
    Posted 4 months ago #

    Yeah still a no go... Completely removed and reinstalled the plugin and still receive this from GA:

    "Your Analytics tracking code does not include the necessary support for the Demographics and Interest reports."

    Is this located in the "aioseop_class.php"? Where and what can I manually edit to correct? I realize manually correcting the issue will need to be redone in future updates.

    As well when removing the plugin via WordPress does it clear all the information from the DB?

    Thanks.

  30. Peter Baylies
    Member
    Plugin Author

    Posted 4 months ago #

    Hi dr.user,

    This should work, so I don't know what you'd manually edit. What is the url of your site? Make sure you have entered your tracking code, selected the appropriate type of tracking, and have checked the box that says ""Display Advertising"(Support for Doubleclick Display Advertising tracking)". Removing the plugin via WordPress does not clear any information from the DB.

Reply »

You must log in to post.

About this Plugin

About this Topic