WordPress.org

Ready to get started?Download WordPress

Forums

Background Manager
Google Analytics not tracking Display event (16 posts)

  1. jacobsisson149
    Member
    Posted 10 months ago #

    I followed all of the instructions on how to link Google Analytics to the background manager, and it will track the "clicks" event but will not track the "Display" event. All of the background images have a clickable URL associated with them. The Track Background Links check box is checked off, and the Category name is set to "Background." Is there something I am missing to get the Display action to register?

    My site is: http://www.behindthebarriers.tv

    Thanks!

    http://wordpress.org/plugins/background-manager/

  2. myatu
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,

    I've just checked your website, and it does send an event to Google Analytics. They won't immediately show up in your regular event (Behaviour -> Events -> Overview), but they should show up on the live events (Real-time -> Events). The events will have the name "Background Manager" by default, and will show "Display" and "Click" as separate events).

  3. jacobsisson149
    Member
    Posted 10 months ago #

    I can see the click event, but no trace of any display events. As far as I can tell, I've followed all the steps that should activate the display tracking, but it still isn't there. Background display events aren't showing up in real-time either. Is there a specific screen shot I should send you to give you a look at my settings?

    Thanks!

  4. myatu
    Member
    Plugin Author

    Posted 10 months ago #

    I've just had a look at the source code, and it looks that Google Analytics is loaded twice (code is at the top and bottom of the page).

    The code at the top does not look familiar, and looks like it is trying to load it asynchronous (so might be loaded after Background Manager is loaded).

  5. jacobsisson149
    Member
    Posted 10 months ago #

    I removed one of the instances of the Google Analytics, but that doesn't seem to have any bearing over whether the code is picking up the display event. If I understand correctly, each image needs to have a click-through URL associated with it for a display event to register, and the check box has to be checked off on the settings page, but that's it, correct? Are there other settings that I have missed that will enable the display event?

  6. myatu
    Member
    Plugin Author

    Posted 10 months ago #

    The "display" event is triggered as soon as the image is loaded. If this happens before the Google Analytics code has been loaded, then you will miss that event. Looking at the load order, Google Analytics is actually loaded very late by the browser, which might be the reason why you see the "click" event, but the associated "display" event.

  7. myatu
    Member
    Plugin Author

    Posted 10 months ago #

    PS. You're doing everything else right though (and you'll need at least one instance of the Google Analytics javascript code on your website).

  8. jacobsisson149
    Member
    Posted 10 months ago #

    Thanks! I moved the analytics code up the page, so hopefully that's the solution. You've been extremely helpful and I'm very grateful!

  9. jacobsisson149
    Member
    Posted 10 months ago #

    Unfortunately, the display event is still not showing. Do you want to take a look at some of my settings to see where the issue could lie? If so, what information would you need to see?

  10. myatu
    Member
    Plugin Author

    Posted 9 months ago #

    I'm not seeing it track at all at the moment (no track events fired)?

    The console does give an error regarding diigolet:

    Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains

    But that should not affect it the Google tracking, unless you've set Google Analytics to track one particular domain but are trying to use it to track another.

  11. jacobsisson149
    Member
    Posted 9 months ago #

    I repositioned the google tracking code, but it still seems to not be registering even the click events. I have the new style tracking code on the site, could that be why it's not picking up the click or display event at this point? I tried using the legacy code a while back, but didn't see any change in the tracking of displays. Any thoughts on if I have something configured wrong at the background image level?

  12. myatu
    Member
    Plugin Author

    Posted 9 months ago #

    Hi,

    It wouldn't yet be compatible with the new Universal Analytics, no. There have been quite some changes with that, but I will look into adding support for it.

  13. jacobsisson149
    Member
    Posted 9 months ago #

    I now have a separate analytics profile set up with the legacy code that is tracking background clicks. I still don't see display events, which leads me to believe there must be something wrong with my settings. Do you have any insight there? Which link URL is required - the one on the individual image or the overall link for the image set?

  14. myatu
    Member
    Plugin Author

    Posted 9 months ago #

    I can't see the display event fire either, though click events do fire correctly. I doubt that this is something with your settings though, but more about the order of Background Manager and Google Analytics doing things (as both have to happen in a particular order, but also as early as possible on the page load). I'll consider this a bug on my end, that'll need further looking into.

  15. jacobsisson149
    Member
    Posted 9 months ago #

    Hi I was wondering if you had any update on these issues? I'm happy to let you log in and see if there's anything amiss with the theme.

  16. myatu
    Member
    Plugin Author

    Posted 9 months ago #

    Sorry, I haven't had the time to fully debug the issue you're experiencing yet, no. Its a fine balance between paid work and working on the plugins ;)

Reply

You must log in to post.

About this Plugin

About this Topic