Analytics
2.6K members online now
2.6K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Google Analytics Interrupting js in Wordpress theme

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Error on Chrome Console: google_analytics_auto.js:2 Uncaught SyntaxError: Unexpected token < modules.min.js:2 Uncaught TypeEr

Site: http://centerstagesocial.com/?page_id=247

Screen Shot: http://www.screencast.com/t/UZZxO1rqgtb

Symptoms: Wordpress theme interactive elements interupted and not appearing. 

 

Have contacted theme developer who said to contact Hostgator who said to contact google who said, "we'll call you back" Smiley Sad 

1 Expert replyverified_user

Google Analytics Interrupting js in Wordpress theme

Top Contributor
# 2
Top Contributor

Hi,

 

http://centerstagesocial.com/google_analytics_auto.js doesn't seem to exist, you are seeing your website source code in the console.

I'd suggest installing the tracking code using a wordpress plugin.

 

Let me know if you have questions.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Google Analytics Interrupting js in Wordpress theme

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Would you suggest any particular WordPress plugin over another?

Google Analytics Interrupting js in Wordpress theme

Top Contributor
# 4
Top Contributor

For eg. this one https://wordpress.org/plugins/googleanalytics/

It simply adds the tracking code to the site, you only need to enter your UA-ID.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Google Analytics Interrupting js in Wordpress theme

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Ok, I installed google analytics plugin and set up my analytics code. The plugin is active and appears to be running but I still have the error. 

Google Analytics Interrupting js in Wordpress theme

Top Contributor
# 6
Top Contributor

You just need to remove the call to the non existing script in order to resolve the error:

 

<script src='/google_analytics_auto.js'></script>


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital