Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Shaun Wong
Shaun Wong
14,489 Points

Javascript text rotator scope issue

Hi, I'm having a problem,

on my website i have a text rotator http://shaunsnetwork.com/

here is the code I'm using for the text rotator, it works fine. http://codepen.io/AmruthPillai/pen/axvqB/

it was working fine on my WordPress site until I installed Google Analytics the text rotator started to animate too fast now.

I can disable this plugin https://wordpress.org/plugins/wd-google-analytics/ and it will work again however it's important.

is there a way I can use the code pen code and add more specificity or make the scope smaller since I believe the whatever js files google analytics is using it seems to be conflicting.