• Resolved margr

    (@mar1984)


    Hi! I read your documentation page Tracking with Google Analytics Dashboard for WP, but I didn’t find why it’s failing.

    I’m inserting some custom ads:

    <a href="https://www.fujifilm.eu/es?utm_source=footer-fuji-ad&utm_medium=banner&utm_campaign=fuji" target="_blank"><img width="800" height="663" src="xlogoFUJIFILMX.jpg" alt="" title="logoFUJIFILMX" onload="pagespeed.CriticalImages.checkImageForCriticality(this);" class="retina-off"></a>

    When I click on ad, no page opens. The console log shows this error:

    ReferenceError: Can't find variable: loadPage

    Line of error:

    ga('send',{'hitType':'event','eventCategory':'External Affiliate Link','eventAction':'clicked','eventLabel':href,'hitCallback':loadPage});

    Should I implement the loadPage function myself?
    This is part of my configuration:
    ?

    I also enable hitCallback to increase event tracking accuracy option. Although neither enable/disabled works.

    Could you help me?
    Thanks in advance.

    P.S. My page is hidden by maintenance. If you need it, I can create a user for you. Excuse my English.

    • This topic was modified 6 years, 11 months ago by margr.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    ga('send',{'hitType':'event','eventCategory':'External Affiliate Link','eventAction':'clicked','eventLabel':href,'hitCallback':loadPage});

    Are you using any other Google Analytics tracking plugins? The above line it’s not generated by GADWP’s latest version. GADWP uses gadwpRedirect as the callback function for hits, on its latest version.

    You may want to disable all other tracking plugins and check if the error persists.

    Thread Starter margr

    (@mar1984)

    Thank you very much, I solved it.
    Sorry for inconvenience.

    Regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem tracking links’ is closed to new replies.