Title: A problem implementing jQuery plugin &#8220;Scroll Depth&#8221; through Google Tag Manager.
Last modified: February 3, 2017

---

# A problem implementing jQuery plugin “Scroll Depth” through Google Tag Manager.

 *  [vm2003](https://wordpress.org/support/users/vm2003/)
 * (@vm2003)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/a-problem-implementing-jquery-plugin-scroll-depth-through-google-tag-manager/)
 * 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](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](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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/onepress/2.3.18/screenshot.png)
 * OnePress
 * [Support Threads](https://wordpress.org/support/theme/onepress/)
 * [Active Topics](https://wordpress.org/support/theme/onepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/onepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/onepress/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [scroll depth](https://wordpress.org/support/topic-tag/scroll-depth/)

 * 0 replies
 * 1 participant
 * Last reply from: [vm2003](https://wordpress.org/support/users/vm2003/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/a-problem-implementing-jquery-plugin-scroll-depth-through-google-tag-manager/)
 * Status: not resolved