Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mpserellis

    (@mpserellis)

    Please note: I made a mistake with the “Page that is failing” link in the post above. The destination of the link is correct the text displayed is not. I had some issues there and must have copied the wrong text. Sorry.

    I can confirm that if I disable the SweetCaptcha plugin then the Tag Assistant reports all OK. Looking further into the analytics debug it says:

    “Tracking script already loaded. Abandoning initialization.”

    The page seems to load and run the SweetCaptcha analytics code first which loads the tracking script then it appears to run the snippet in the head which is generated by the All In One SEO Pack plugin and fails.

    If anyone can point me in a direction to resolve this I would be very grateful.

    Thread Starter mpserellis

    (@mpserellis)

    Right, I have implemented a workaround therefore the failing page url given above will no longer report an error.

    “All In One SEO Pack” plugin provides a filter when creating the analytics code snippet and so I was able to change the code so that it only executed after the page had loaded and made it use whatever was set as the GoogleAnalyticsObject (i.e. window[GoogleAnalyticsObject]), on pages with SweetCaptcha that was the sweetcaptchalyticsObj, on other pages that was ga.

    I don’t pretend to know how the analytics script works but this workaround made the Tag Assistant extension happy so I think Google should be happy. I also don’t really know who should change their code so I will mark this topic as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SweetCaptcha analytics possibly affecting google analytics’ is closed to new replies.