• I have been experimenting a problem when trying to implement the jQuery plugin “Scroll Depth” through Google Tag Manager.

    My context is as follows:
    – Tags implemented in my web through Google Tag Manager.
    – My web is a wordpress site.
    – “Scroll Depth” plugin version: 1.0
    – “Use Google Libraries” WP plugin (Allows your site to use common javascript libraries from Google’s AJAX Libraries CDN, rather than from WordPress’s own copies).

    Description of the problem:

    – The “Scroll Depth” tag (customized HTML tag) fires OK (checked through Google Tag Manager “Preview and Debug”).
    – At the left side of the screen (in the Summary): “ScrollDistance” event is not present when I scroll down the webpage (25%, 50%, etc.).

    Conclusion: maybe the tag is fired OK but the script is not working?

    Is there anything different in the plugin implemention process or in the plugin script considering that my web is a wordpress site?

    I have tried older versions of the plugin “WP Scroll Depth”: version 0.4 and version 0.5. Using these old versions I was able to see the “ScrollDistance” event in GTM “Preview and Debug” at the left side of the screen (Summary) when I scroll down the webpage. I also can see the corresponding Data Layer with the values for eventLabel (25%, 50%, etc.). And I can see the variables too with their values.

    I tried plugin version 0.9. It didn’t work.

    So: versions 0.4 and 0.5 OK; versions 0.9 and 1.0 don’t work.

    Please could you help me about the problem explained above implementing “Scroll Depth” plugin? Is it anything related to jQuery or WordPress or the theme OnePress?

    This is the link of “Scroll Depth” jQuery plugin:
    http://scrolldepth.parsnip.io

    And this is the link where you can see the 1.0 plugin script:
    https://raw.githubusercontent.com/robflaherty/jquery-scrolldepth/master/jquery.scrolldepth.min.js

    Thank you in advance.

    Vicenç

The topic ‘A problem implementing jQuery plugin “Scroll Depth” through Google Tag Manager.’ is closed to new replies.